Types/AttackParameters: Difference between revisions
LazyFridge (talk | contribs) m (→type) |
m (fixed link) |
||
Line 52: | Line 52: | ||
=== sound === | === sound === | ||
'''Type''': [[ | '''Type''': [[Types/table]] | ||
Sound the entity emits when it attacks. | Sound the entity emits when it attacks. |
Revision as of 13:07, 10 September 2017
Basics
Definition of combat actions performed by combat robots, units, turrets and weapons.
Mandatory properties
type
Type: Types/string
Specification of the type. Values are:
"projectile" "beam" "stream"
cooldown
Type: Types/int
Interval between consecutive attacks.
range
Type: Types/double
Distance of attack. Overrides one defined in ammo.
Semi-mandatory properties
Depending on actual type of entity the following might or might not be needed.
ammo_category
Type: Prototype/AmmoCategory
Mandatory for Prototype/Gun and Prototype/AmmoTurret. Describes which ammo should be used in attack.
ammo_type
Type: Types/AmmoType
Mandatory for Prototype/ElectricTurret, Prototype/CombatRobot and Prototype/Unit. Defines the ammo entities of those types use when attacking.
Optional properties
projectile_center
Type: Types/Position
projectile_creation_distance
Type: Types/double
Distance from the attacking entity, at which effects of ammo are applied (source_effects).
damage_modifier
Type: Types/double
Provides damage multiplier forPrototype/Gun and Prototype/AmmoTurret.
sound
Type: Types/table
Sound the entity emits when it attacks. Table fields:
Filename Types/FileName volume Types/double