|Empires Scripting Documentation|
|Scripting Overview | Vehicle Script Overview | Vehicle Handling Script Overview | Weapon Script Overview | Armor Script Overview | Building Script Overview | Infantry Script Overview | Hint Messages | Loading Screen Script Overview | Tutorials|
|Weapon Spread And Kick Documentation|
|STANCE Spread | STANCE SpreadModifier | STANCE SpreadMax | STANCE SpreadIncrement | STANCE SpreadDecrement | Weapon Kick|
This is a modifier that temporarily modifies the spread, based on the player's speed. It takes the current spread of the weapon and increases it. The modifier will be at its full effect once the player has reached his max speed, as defined by sv_maxspeed. Defined as a float.
Important: This modifier does not actually change the inherent spread value. For example, you've fired some bullets and your spread value is 0.12. You move (standing) and the spread modifier changes your spread value to 0.24. In the meanwhile, the SpreadDecrement attribute keeps decreasing the real spread (0.12), and the modifier adapts to this new value. Because the modifier is based on speed and is not influenced by another script variable, it will always increase and diminish spread in the same fashion with every weapon.