Prototype/SpiderVehicle: Difference between revisions
(1.0.0) |
(→Optional properties: Add note about disabling spidertron logistics to trash_inventory_size) |
||
(4 intermediate revisions by one other user not shown) | |||
Line 17: | Line 17: | ||
{{Prototype property|height|[[Types/float|float]]}} | {{Prototype property|height|[[Types/float|float]]}} | ||
The height of the spider affects the shooting height and the drawing of the graphics and lights. | |||
{{Prototype property|chunk_exploration_radius|[[Types/uint32|uint32]]}} | {{Prototype property|chunk_exploration_radius|[[Types/uint32|uint32]]}} | ||
Line 25: | Line 26: | ||
{{Prototype property|chain_shooting_cooldown_modifier|[[Types/float|float]]}} | {{Prototype property|chain_shooting_cooldown_modifier|[[Types/float|float]]}} | ||
This is applied whenever the spider shoots (manual and automatic targeting), <code>automatic_weapon_cycling</code> is true and the next gun in line (which is then selected) has ammo.<br> | |||
When all of the above is the case, the chain_shooting_cooldown_modifier is a multiplier on the remaining shooting cooldown: <code><nowiki>cooldown = (remaining_cooldown × chain_shooting_cooldown_modifier)</nowiki></code>. chain_shooting_cooldown_modifier is intended to be in the range of 0 to 1. This means that setting chain_shooting_cooldown_modifier to 0 reduces the remaining shooting cooldown to 0 while a chain_shooting_cooldown_modifier of 1 does not affect the remaining shooting cooldown at all. | |||
== Optional properties == | == Optional properties == | ||
{{Prototype property|torso_rotation_speed|[[Types/float|float]]|1|optional=true}} | {{Prototype property|torso_rotation_speed|[[Types/float|float]]|1|optional=true}} | ||
The orientation of the torso of the spider affects the shooting direction and the drawing of the graphics and lights. | |||
{{Prototype property|torso_bob_speed|[[Types/float|float]]|1|optional=true}} | |||
Cannot be negative. | |||
{{Prototype property|trash_inventory_size|[[Types/ItemStackIndex|ItemStackIndex]]|0|optional=true}} | |||
If set to 0 then the spider will not have a '''Logistics''' tab. | |||
{{Prototype property|guns|[[Types/table|table]] of [[Types/string|string]]s of prototype names|optional=true}} | {{Prototype property|guns|[[Types/table|table]] of [[Types/string|string]]s of prototype names|optional=true}} | ||
The guns this spider vehicle uses. | The guns this spider vehicle uses. |
Latest revision as of 23:32, 27 November 2022
Prototype definitions » PrototypeBase » Prototype/Entity » Prototype/EntityWithHealth » Prototype/EntityWithOwner » Prototype/Vehicle » Prototype/SpiderVehicle
The spidertron.
Mandatory properties
This prototype inherits all the properties from Prototype/Vehicle.
burner or energy_source
Type: EnergySource
Must be a burner energy source when using "burner", otherwise it can also be a void energy source.
inventory_size
Type: ItemStackIndex
graphics_set
Type: SpiderVehicleGraphicsSet
spider_engine
Type: SpiderEnginePrototype
height
Type: float
The height of the spider affects the shooting height and the drawing of the graphics and lights.
chunk_exploration_radius
Type: uint32
movement_energy_consumption
Type: Energy
automatic_weapon_cycling
Type: bool
chain_shooting_cooldown_modifier
Type: float
This is applied whenever the spider shoots (manual and automatic targeting), automatic_weapon_cycling
is true and the next gun in line (which is then selected) has ammo.
When all of the above is the case, the chain_shooting_cooldown_modifier is a multiplier on the remaining shooting cooldown: cooldown = (remaining_cooldown × chain_shooting_cooldown_modifier)
. chain_shooting_cooldown_modifier is intended to be in the range of 0 to 1. This means that setting chain_shooting_cooldown_modifier to 0 reduces the remaining shooting cooldown to 0 while a chain_shooting_cooldown_modifier of 1 does not affect the remaining shooting cooldown at all.
Optional properties
torso_rotation_speed
Type: float
Default: 1
The orientation of the torso of the spider affects the shooting direction and the drawing of the graphics and lights.
torso_bob_speed
Type: float
Default: 1
Cannot be negative.
trash_inventory_size
Type: ItemStackIndex
Default: 0
If set to 0 then the spider will not have a Logistics tab.
guns
Type: table of strings of prototype names
The guns this spider vehicle uses.