Prototype/SpiderVehicle: Difference between revisions
(1.1: trash_inventory_size added) |
(1.1.69: torso_bob_speed added) |
||
Line 33: | Line 33: | ||
{{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. | 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}} | {{Prototype property|trash_inventory_size|[[Types/ItemStackIndex|ItemStackIndex]]|0|optional=true}} |
Revision as of 14:24, 3 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
guns
Type: table of strings of prototype names
The guns this spider vehicle uses.