Jump to content

weapon spread script


betto212

Recommended Posts

Posted

i did this script for try to balance the weapon spread in another way. so i set the weapon min spread to 0 and attach this script to the weapon but the value not update if the the skill is upgraded... then for adjust the value its required to unload and load again the weapon ... if someone know a way to fix the need of unload and load the weapon to force update the skill

 

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

ScriptName spreadminigun

 

ref myref

ref penalty_35

ref penalty_strength

ref penalty_total

 

 

Begin OnEquip

set myRef to GetContainer

 

 

 

set penalty_35 to ((myref.getav bigguns)*(0.35))

set penalty_strength to ( myref.getav bigguns*(10- myref.getav strength )*(0.015))

 

set penalty_total to (penalty_35 + penalty_strength )

 

myref.DamageAV bigguns penalty_total

 

End

 

 

 

Begin OnUnEquip

 

myref.restoreAV bigguns penalty_total

End

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...