InfWeaponSpreadAndKick.Weapon Kick

From Empires Wiki
Jump to: navigation, search
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



Weapon Kick

Weapon kick is portrayed in the X (vertical) and Y (horizontal) axis. It interpolates between the full and no spread value based on the current spread. It uses 8 variables per stance, defined as floats:

  • [STANCE] Kick_X_FullSpread_Max
  • [STANCE] Kick_X_FullSpread_Min
  • [STANCE] Kick_X_NoSpread_Max
  • [STANCE] Kick_X_NoSpread_Min


  • [STANCE] Kick_Y_FullSpread_Max
  • [STANCE] Kick_Y_FullSpread_Min
  • [STANCE] Kick_Y_NoSpread_Max
  • [STANCE] Kick_Y_NoSpread_Min