Definition of actual parameters used in attack.
category | :: AmmoCategoryID | Name of a AmmoCategory. [...] |
Name of a AmmoCategory. [...] | ||
action optional | :: Trigger | Describes actions taken upon attack happening. |
Describes actions taken upon attack happening. | ||
clamp_position optional | :: bool | When true, the gun will be able to shoot even when the target is out of range. [...] |
When true, the gun will be able to shoot even when the target is out of range. [...] | ||
energy_consumption optional | :: Energy | Energy consumption of a single shot, if applicable. |
Energy consumption of a single shot, if applicable. | ||
range_modifier optional | :: double | Affects the |
Affects the | ||
cooldown_modifier optional | :: double | |
consumption_modifier optional | :: float | |
target_type optional | :: "entity" or "position" or "direction" |
|
| ||
source_type optional | :: AmmoSourceType | Only exists (and is then mandatory) if the AmmoItemPrototype::ammo_type this AmmoType is defined on has multiple ammo types. [...] |
Only exists (and is then mandatory) if the AmmoItemPrototype::ammo_type this AmmoType is defined on has multiple ammo types. [...] |
category | :: AmmoCategoryID | Name of a AmmoCategory. [...] |
Name of a AmmoCategory. [...] | ||
action optional | :: Trigger | Describes actions taken upon attack happening. |
Describes actions taken upon attack happening. | ||
clamp_position optional | :: bool | When true, the gun will be able to shoot even when the target is out of range. [...] |
When true, the gun will be able to shoot even when the target is out of range. [...] | ||
consumption_modifier optional | :: float | |
cooldown_modifier optional | :: double | |
energy_consumption optional | :: Energy | Energy consumption of a single shot, if applicable. |
Energy consumption of a single shot, if applicable. | ||
range_modifier optional | :: double | Affects the |
Affects the | ||
source_type optional | :: AmmoSourceType | Only exists (and is then mandatory) if the AmmoItemPrototype::ammo_type this AmmoType is defined on has multiple ammo types. [...] |
Only exists (and is then mandatory) if the AmmoItemPrototype::ammo_type this AmmoType is defined on has multiple ammo types. [...] | ||
target_type optional | :: "entity" or "position" or "direction" |
|
|
Name of a AmmoCategory. Defines whether the attack will be affected by upgrades.
Describes actions taken upon attack happening.
Default: false
When true, the gun will be able to shoot even when the target is out of range. Only applies when target_type
equals "position"
. The gun will fire at the maximum range in the direction of the target position.
Energy consumption of a single shot, if applicable.
Default: 1
Affects the range
value of the shooting gun prototype's BaseAttackParameters to give a modified maximum range. The min_range
value of the gun is unaffected.
This has no effect on artillery turrets and wagons even though the bonus appears in the GUI. Forum thread.
Default: 1
Default: 1
"entity"
or "position"
or "direction"
optional Default: "entity"
"entity"
fires at an entity, "position"
fires directly at a position, "direction"
fires in a direction.
If this is "entity"
, clamp_position
is forced to be false
.
Only exists (and is then mandatory) if the AmmoItemPrototype::ammo_type this AmmoType is defined on has multiple ammo types.
Defines for which kind of entity this ammo type applies. Each entity kind can only be used once per array.