Prototype/FluidStream: Difference between revisions
m formatting |
|||
Line 8: | Line 8: | ||
{{Prototype property|particle_spawn_interval|[[Types/uint16|uint16]]}} | {{Prototype property|particle_spawn_interval|[[Types/uint16|uint16]]}} | ||
The stream will spawn one particle every particle_spawn_interval ticks until the particle_spawn_timeout is reached. The first particle will trigger an initial_action upon landing. Each particle triggers an action upon landing. Particles spawned within a single particle_spawn_timeout interval will be connected by a stretched spine_animation. | The stream will spawn one particle every <code>particle_spawn_interval</code> ticks until the <code>particle_spawn_timeout</code> is reached. The first particle will trigger an <code>initial_action</code> upon landing. Each particle triggers an <code>action</code> upon landing. Particles spawned within a single <code>particle_spawn_timeout</code> interval will be connected by a stretched <code>spine_animation</code>. | ||
{{Prototype property|particle_horizontal_speed|[[Types/double|double]]}} | {{Prototype property|particle_horizontal_speed|[[Types/double|double]]}} | ||
Must be larger than 0. particle_horizontal_speed has to be greater than particle_horizontal_speed_deviation. | Must be larger than 0. <code>particle_horizontal_speed</code> has to be greater than <code>particle_horizontal_speed_deviation</code>. | ||
{{Prototype property|particle_horizontal_speed_deviation|[[Types/double|double]]}} | {{Prototype property|particle_horizontal_speed_deviation|[[Types/double|double]]}} | ||
Line 20: | Line 20: | ||
{{Prototype property|initial_action|[[Types/Trigger|Trigger]]|optional=true}} | {{Prototype property|initial_action|[[Types/Trigger|Trigger]]|optional=true}} | ||
Action that is triggered when the first particle lands | Action that is triggered when the first particle lands. | ||
{{Prototype property|action|[[Types/Trigger|Trigger]]|optional=true}} | {{Prototype property|action|[[Types/Trigger|Trigger]]|optional=true}} | ||
Action that is triggered every time a particle lands | Action that is triggered every time a particle lands. | ||
{{Prototype property|special_neutral_target_damage|[[Types/DamagePrototype|DamagePrototype]]|optional=true}} | {{Prototype property|special_neutral_target_damage|[[Types/DamagePrototype|DamagePrototype]]|optional=true}} | ||
Line 63: | Line 63: | ||
{{Prototype property|smoke_sources|[[Types/table|table]] of [[Types/SmokeSource|SmokeSource]]|optional=true}} | {{Prototype property|smoke_sources|[[Types/table|table]] of [[Types/SmokeSource|SmokeSource]]|optional=true}} | ||
Smoke spawning is controlled by progress_to_create_smoke | Smoke spawning is controlled by <code>progress_to_create_smoke</code>. | ||
{{Prototype property|progress_to_create_smoke|[[Types/float|float]]|0.5|optional=true}} | {{Prototype property|progress_to_create_smoke|[[Types/float|float]]|0.5|optional=true}} |
Revision as of 11:31, 7 November 2022
Template:Prototype parent Used for example for the handheld flamethrower.
Mandatory properties
This prototype inherits all the properties from Prototype/Entity.
Template:Prototype property
The stream will spawn one particle every particle_spawn_interval
ticks until the particle_spawn_timeout
is reached. The first particle will trigger an initial_action
upon landing. Each particle triggers an action
upon landing. Particles spawned within a single particle_spawn_timeout
interval will be connected by a stretched spine_animation
.
Template:Prototype property
Must be larger than 0. particle_horizontal_speed
has to be greater than particle_horizontal_speed_deviation
.
Optional properties
Template:Prototype property Action that is triggered when the first particle lands.
Template:Prototype property Action that is triggered every time a particle lands.
Template:Prototype property Number of spawned child particles of the stream. Must be greater than 0 and less than 256.
Template:Prototype property Value between 0 and 1.
Template:Prototype property Value between 0 and 1.
Template:Prototype property Will be set to 1 by the game if less than 1.
Template:Prototype property Will be set to 1 by the game if less than 1.
Template:Prototype property
Smoke spawning is controlled by progress_to_create_smoke
.
Template:Prototype property The point in the particles projectile arc to start spawning smoke. 0.5 (the default) starts spawning smoke at the halfway point between the source and target.