Types/BaseAttackParameters
The abstract base of all attack parameters.
Extensions
Mandatory properties
range
Type: Types/float
cooldown
Type: Types/float
Number of ticks in which it will be possible to shoot again. If < 1, multiple shots can be performed in one tick.
Optional properties
min_range
Type: Types/float
Default: 0
turn_range
Type: Types/float
Default: 1
If this is <= 0, it is set to 1.
fire_penalty
Type: Types/float
Default: 0
min_attack_distance
Type: Types/float
Default: range
damage_modifier
Type: Types/float
Default: 1
warmup
Type: Types/uint32
Default: 0
Number of ticks it takes for the weapon to actually shoot after the order for shooting has been made. This also allows to "adjust" the shooting animation to the effect of shooting.
movement_slow_down_factor
Type: Types/double
Default: 1
movement_slow_down_cooldown
Type: Types/float
Default: cooldown
ammo_type
Type: Types/AmmoType
Can be mandatory.
ammo_category
Type: Types/string
The name of a Prototype/AmmoCategory. Mandatory if ammo_type
is not given, otherwise ignored.
sound
Type: Types/Sound
animation
Type: Types/RotatedAnimation
cyclic_sound
Type: Types/CyclicSound