AmmoType :: struct
| action optional | :: Trigger | Describes actions taken upon attack happening. |
Describes actions taken upon attack happening. | ||
| clamp_position optional | :: boolean | 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. [...] | ||
| target_filter optional | :: array[EntityID] | List of entities that can be targeted by this ammo type. |
List of entities that can be targeted by this ammo type. | ||


