Prototype/ArtilleryWagon: Difference between revisions
(Added prototype type to page) |
(0.18.18: rotating_stopped_sound) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Prototype parent|Prototype/RollingStock}} | |||
An [[artillery wagon]]. | |||
{{Prototype TOC|artillery-wagon}} | |||
== Mandatory properties == | == Mandatory properties == | ||
This prototype inherits all the properties from [[Prototype/RollingStock]]. | This prototype inherits all the properties from [[Prototype/RollingStock]]. | ||
{{Prototype property|gun|[[Types/string|string]]}} | |||
Name of a [[Prototype/Gun]]. | Name of a [[Prototype/Gun]]. | ||
{{Prototype property|inventory_size|[[Types/ItemStackIndex|ItemStackIndex]]}} | |||
Must be > 0. | Must be > 0. | ||
{{Prototype property|ammo_stack_limit|[[Types/ItemCountType|ItemCountType]]}} | |||
Must be > 0. | Must be > 0. | ||
{{Prototype property|turret_rotation_speed|[[Types/double|double]]}} | |||
{{Prototype property|manual_range_modifier|[[Types/double|double]]}} | |||
Must be > 0. | Must be > 0. | ||
== Optional properties == | == Optional properties == | ||
{{Prototype property|disable_automatic_firing|[[Types/bool|bool]]|false|optional=true}} | |||
{{Prototype property|cannon_base_pictures|[[Types/RotatedSprite|RotatedSprite]]|optional=true}} | |||
{{Prototype property|cannon_barrel_pictures|[[Types/RotatedSprite|RotatedSprite]]|optional=true}} | |||
{{Prototype property|rotating_sound|[[Types/InterruptibleSound|InterruptibleSound]]|optional=true}} | |||
{{Prototype property|rotating_stopped_sound|[[Types/Sound|Sound]]|optional=true}} | |||
{{Prototype property|turn_after_shooting_cooldown|[[Types/uint16|uint16]]|0|optional=true}} | |||
{{Prototype property|cannon_parking_frame_count|[[Types/uint16|uint16]]|0|optional=true}} | |||
{{Prototype property|cannon_parking_speed|[[Types/float|float]]|1|optional=true}} | |||
{{Prototype property|cannon_base_shiftings|[[Types/table|table]] of [[Types/vector|vector]]|optional=true}} | |||
Must match <code>cannon_base_pictures</code> frame count. | Must match <code>cannon_base_pictures</code> frame count. | ||
{{Prototype property|cannon_barrel_recoil_shiftings|[[Types/table|table]] of [[Types/Vector3D|Vector3D]]|optional=true}} | |||
{{Prototype property|cannon_barrel_recoil_shiftings_load_correction_matrix|[[Types/table|table]] of [[Types/Vector3D|Vector3D]]|optional=true}} | |||
Only loaded if <code>cannon_barrel_recoil_shiftings</code> is loaded. | Only loaded if <code>cannon_barrel_recoil_shiftings</code> is loaded. | ||
{{Prototype property|cannon_barrel_light_direction|[[Types/Vector3D|Vector3D]]|optional=true}} | |||
Only loaded if <code>cannon_barrel_recoil_shiftings</code> is loaded. | Only loaded if <code>cannon_barrel_recoil_shiftings</code> is loaded. |
Latest revision as of 12:55, 9 April 2020
Prototype definitions » PrototypeBase » Prototype/Entity » Prototype/EntityWithHealth » Prototype/EntityWithOwner » Prototype/Vehicle » Prototype/RollingStock » Prototype/ArtilleryWagon
An artillery wagon.
Mandatory properties
This prototype inherits all the properties from Prototype/RollingStock.
gun
Type: string
Name of a Prototype/Gun.
inventory_size
Type: ItemStackIndex
Must be > 0.
ammo_stack_limit
Type: ItemCountType
Must be > 0.
turret_rotation_speed
Type: double
manual_range_modifier
Type: double
Must be > 0.
Optional properties
disable_automatic_firing
Type: bool
Default: false
cannon_base_pictures
Type: RotatedSprite
cannon_barrel_pictures
Type: RotatedSprite
rotating_sound
Type: InterruptibleSound
rotating_stopped_sound
Type: Sound
turn_after_shooting_cooldown
Type: uint16
Default: 0
cannon_parking_frame_count
Type: uint16
Default: 0
cannon_parking_speed
Type: float
Default: 1
cannon_base_shiftings
Type: table of vector
Must match cannon_base_pictures
frame count.
cannon_barrel_recoil_shiftings
cannon_barrel_recoil_shiftings_load_correction_matrix
Type: table of Vector3D
Only loaded if cannon_barrel_recoil_shiftings
is loaded.
cannon_barrel_light_direction
Type: Vector3D
Only loaded if cannon_barrel_recoil_shiftings
is loaded.