Prototype/Sticker: Difference between revisions
(Stickers can be attached to spider vehicles) |
(according to Klonan on discord) |
||
Line 37: | Line 37: | ||
{{Prototype property|target_movement_modifier_from|[[Types/float|float]]|Value of <code>target_movement_modifier</code>|optional=true}} | {{Prototype property|target_movement_modifier_from|[[Types/float|float]]|Value of <code>target_movement_modifier</code>|optional=true}} | ||
The modifier value when the sticker is attached. It linearly changes over time to reach <code>target_movement_modifier_to</code>. | |||
{{Prototype property|target_movement_modifier_to|[[Types/float|float]]|Value of <code>target_movement_modifier</code>|optional=true}} | {{Prototype property|target_movement_modifier_to|[[Types/float|float]]|Value of <code>target_movement_modifier</code>|optional=true}} | ||
The modifier value when the sticker expires. It linearly changes over time starting from <code>target_movement_modifier_from</code>. | |||
{{Prototype property|vehicle_speed_modifier|[[Types/float|float]]|1|optional=true}} | {{Prototype property|vehicle_speed_modifier|[[Types/float|float]]|1|optional=true}} | ||
Line 44: | Line 46: | ||
{{Prototype property|vehicle_speed_modifier_from|[[Types/float|float]]|Value of <code>vehicle_speed_modifier</code>|optional=true}} | {{Prototype property|vehicle_speed_modifier_from|[[Types/float|float]]|Value of <code>vehicle_speed_modifier</code>|optional=true}} | ||
Works similarly to <code>target_movement_modifier_from</code>. | |||
{{Prototype property|vehicle_speed_modifier_to|[[Types/float|float]]|Value of <code>vehicle_speed_modifier</code>|optional=true}} | {{Prototype property|vehicle_speed_modifier_to|[[Types/float|float]]|Value of <code>vehicle_speed_modifier</code>|optional=true}} | ||
Works similarly to <code>target_movement_modifier_to</code>. | |||
{{Prototype property|vehicle_friction_modifier|[[Types/float|float]]|1|optional=true}} | {{Prototype property|vehicle_friction_modifier|[[Types/float|float]]|1|optional=true}} | ||
{{Prototype property|vehicle_friction_modifier_from|[[Types/float|float]]|Value of <code>vehicle_friction_modifier</code>|optional=true}} | {{Prototype property|vehicle_friction_modifier_from|[[Types/float|float]]|Value of <code>vehicle_friction_modifier</code>|optional=true}} | ||
Works similarly to <code>target_movement_modifier_from</code>. | |||
{{Prototype property|vehicle_friction_modifier_to|[[Types/float|float]]|Value of <code>vehicle_friction_modifier</code>|optional=true}} | {{Prototype property|vehicle_friction_modifier_to|[[Types/float|float]]|Value of <code>vehicle_friction_modifier</code>|optional=true}} | ||
Works similarly to <code>target_movement_modifier_to</code>. | |||
{{Prototype property|selection_box_type|[[Types/CursorBoxType|CursorBoxType]]|"entity"|optional=true}} | {{Prototype property|selection_box_type|[[Types/CursorBoxType|CursorBoxType]]|"entity"|optional=true}} | ||
Using this property marks the sticker as a "selection sticker", meaning that the selection box will be rendered around the entity when the sticker is on it. | Using this property marks the sticker as a "selection sticker", meaning that the selection box will be rendered around the entity when the sticker is on it. |
Revision as of 07:00, 3 May 2023
Prototype definitions » PrototypeBase » Prototype/Entity » Prototype/Sticker
Entity that sticks to another entity, and damages/slows it. Stickers can only be attached to Prototype/Unit, Prototype/Character, Prototype/Car and Prototype/SpiderVehicle.
Mandatory properties
This prototype inherits all the properties from Prototype/Entity.
duration_in_ticks
Type: uint32
Must be > 0.
Optional properties
animation
Type: Animation
damage_interval
Type: uint32
Default: 1
Interval between application of damage_per_tick
, in ticks.
spread_fire_entity
Type: string
Name of an entity. If this is given, this sticker is considered a "fire sticker" for some functions, such as BaseAttackParameters#fire_penalty and EntityPrototypeFlags#.22not-flammable.22.
fire_spread_cooldown
Type: uint8
Default: 30
fire_spread_radius
Type: float
Default: 1
stickers_per_square_meter
Type: float
Default: 15
force_visibility
Type: ForceCondition
Default: "all"
single_particle
Type: bool
Default: false
damage_per_tick
Type: DamagePrototype
Applied every damage_interval
ticks, so may not necessarily be "per tick".
target_movement_modifier
Type: float
Default: 1
Less than 1 to reduce movement speed, more than 1 to increase it.
target_movement_modifier_from
Type: float
Default: Value of target_movement_modifier
The modifier value when the sticker is attached. It linearly changes over time to reach target_movement_modifier_to
.
target_movement_modifier_to
Type: float
Default: Value of target_movement_modifier
The modifier value when the sticker expires. It linearly changes over time starting from target_movement_modifier_from
.
vehicle_speed_modifier
Type: float
Default: 1
Less than 1 to reduce vehicle speed, more than 1 to increase it.
vehicle_speed_modifier_from
Type: float
Default: Value of vehicle_speed_modifier
Works similarly to target_movement_modifier_from
.
vehicle_speed_modifier_to
Type: float
Default: Value of vehicle_speed_modifier
Works similarly to target_movement_modifier_to
.
vehicle_friction_modifier
Type: float
Default: 1
vehicle_friction_modifier_from
Type: float
Default: Value of vehicle_friction_modifier
Works similarly to target_movement_modifier_from
.
vehicle_friction_modifier_to
Type: float
Default: Value of vehicle_friction_modifier
Works similarly to target_movement_modifier_to
.
selection_box_type
Type: CursorBoxType
Default: "entity"
Using this property marks the sticker as a "selection sticker", meaning that the selection box will be rendered around the entity when the sticker is on it.