InfantryScripts: Difference between revisions

From Empires Wiki
Jump to navigation Jump to search
mNo edit summary
(Added Weapon Sounds & Sprites)
 
Line 26: Line 26:
*Prone
*Prone
{{InfWeaponSpreadAndKick}}
{{InfWeaponSpreadAndKick}}
==Weapon Sounds & Sprites==
{{InfWeaponSoundsAndSprites}}


[[Category:Scripting]]
[[Category:Scripting]]

Latest revision as of 19:49, 9 September 2009

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



Overview

This is a glossary of all the attributes that can be used in a weapon script.

You place comments in a script file by putting a "//" in front of the comment.

The attributes on this page are in certain categories:

  • Weapon Characteristics - Attributes regarding weapon behaviour.
  • Weapon Data - Attributes that are used to handle coding stuff.
  • Weapon Spread & Kick - Attributes regarding the spread and the kick of the weapon.
  • Weapon Sounds & Sprites

Weapon Characteristics

Damage
Minimal Damage
Bullets
Cycle Time
Burst Shots
Burst Cycle Time
Falloff
Falloff Base
Melee Damage
Melee Cycle Time
Can Fire When Tired

Explosion Specifics

Explosion Sprite
Velocity
Turning Speed
Explosion Force
Explosion Radius

Grenade Specifics

Grenade Timer

Engineer Kit Specifics

Heal Amount
Repair Amount
Heal Modifier
Repair Modifier

Weapon Data

Printname
Viewmodel
Playermodel
Anim Prefix
Bucket
Bucket Position
Clip Size
Clip2 Size
Primary Ammo
Secondary Ammo
Weight
Item Flags
Built Right-Handed
Allow Flipping
Melee Weapon

Weapon Spread & Kick

There are four valid stances. Replace STANCE in the attributes with one of these:

  • Jumping
  • Standing
  • Ducking
  • Prone

STANCE Spread
STANCE SpreadModifier
STANCE SpreadMax
STANCE SpreadIncrement
STANCE SpreadDecrement
Weapon Kick

Weapon Sounds & Sprites

Single Shot
Weapon
Weapon_s
Ammo
Crosshair
Autoaim
Modelbounds