Prototype/Vehicle: Difference between revisions
No edit summary |
|||
Line 57: | Line 57: | ||
{{Prototype property|allow_passengers|[[Types/bool|bool]]|true|optional=true}} | {{Prototype property|allow_passengers|[[Types/bool|bool]]|true|optional=true}} | ||
Determines whether this vehicle accepts passengers. This includes both drivers and gunners, if applicable. | Determines whether this vehicle accepts passengers. This includes both drivers and gunners, if applicable. | ||
== Extra info == | |||
enable_inventory_bar is not apply in this prototype,However its sub-class,[[Prototype/Prototype/CargoWagon]],always has this functionality. |
Revision as of 16:10, 22 October 2021
Prototype definitions » PrototypeBase » Prototype/Entity » Prototype/EntityWithHealth » Prototype/EntityWithOwner » Prototype/Vehicle
Abstract base of all vehicles.
Extensions
- Prototype/Car car
- Prototype/RollingStock <abstract>
- Prototype/ArtilleryWagon artillery-wagon
- Prototype/CargoWagon cargo-wagon
- Prototype/FluidWagon fluid-wagon
- Prototype/Locomotive locomotive
- Prototype/SpiderVehicle spider-vehicle
Mandatory properties
This prototype inherits all the properties from Prototype/EntityWithHealth.
weight
Type: double
Must be positive.
Weight of the entity used for physics calculation when car hits something.
braking_power or braking_force
Type: Energy or double
Two different ways to set braking force. At least one must exist. Must be positive.
friction or friction_force
Type: double
Two different ways to set friction force. At least one must exist. Must be positive.
energy_per_hit_point
Type: double
The (movement) energy used per hit point (1 hit point = 1 health damage) taken and dealt for this vehicle during collisions. The smaller the number, the more damage this vehicle and the rammed entity take during collisions: damage = energy / energy_per_hit_point
.
Optional properties
terrain_friction_modifier
Type: float
Default: 1
Must be in the [0, 1] interval.
sound_minimum_speed
Type: double
Default: 1 / 60.0
Must be positive. Sound is scaled by speed.
sound_scaling_ratio
Type: double
Default: 1.0
Must be positive. Sound is scaled by speed.
stop_trigger_speed
Type: double
Default: 0.0
crash_trigger
Type: TriggerEffect
stop_trigger
Type: TriggerEffect
equipment_grid
Type: string
The name of the equipment grid this vehicle has.
minimap_representation
Type: Sprite
The sprite that represents this vehicle on the map/minimap.
selected_minimap_representation
Type: Sprite
The sprite that represents this vehicle on the map/minimap when it is selected.
allow_passengers
Type: bool
Default: true
Determines whether this vehicle accepts passengers. This includes both drivers and gunners, if applicable.
Extra info
enable_inventory_bar is not apply in this prototype,However its sub-class,Prototype/Prototype/CargoWagon,always has this functionality.