Prototype/SpiderVehicle: Difference between revisions
(1.1.69: torso_bob_speed added) |
(→Optional properties: Add note about disabling spidertron logistics to trash_inventory_size) |
||
Line 38: | Line 38: | ||
{{Prototype property|trash_inventory_size|[[Types/ItemStackIndex|ItemStackIndex]]|0|optional=true}} | {{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.