Prototype/FluidStream: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Set prototype parent)
(Converted to SMW format)
Line 1: Line 1:
{{Prototype parent|Prototype/Entity}}
{{Prototype parent|Prototype/Entity}}
Used for example for the handheld flamethrower.


== Basics ==
{{Prototype TOC|stream}}
Prototype type: '''stream'''
 
Extends [[Prototype/Entity]].


== Mandatory properties ==
== Mandatory properties ==
This prototype inherits all the properties from [[Prototype/Entity]].
This prototype inherits all the properties from [[Prototype/Entity]].


=== particle_spawn_interval ===
{{Prototype property|particle_spawn_interval|[[Types/uint16|uint16]]}}
'''Type''': [[Types/uint16]]
 
=== particle_horizontal_speed ===
'''Type''': [[Types/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. particle_horizontal_speed has to be greater than particle_horizontal_speed_deviation.


=== particle_horizontal_speed_deviation ===
{{Prototype property|particle_horizontal_speed_deviation|[[Types/double|double]]}}
'''Type''': [[Types/double]]


=== particle_vertical_acceleration ===
{{Prototype property|particle_vertical_acceleration|[[Types/double|double]]}}
'''Type''': [[Types/double]]


== Optional properties ==
== Optional properties ==


=== initial_action ===
{{Prototype property|initial_action|[[Types/Trigger|Trigger]]|optional=true}}
'''Type''': [[Types/Trigger]]
 
=== action ===
'''Type''': [[Types/Trigger]]
 
=== special_neutral_target_damage ===
'''Type''': [[Types/DamagePrototype]]


=== width ===
{{Prototype property|action|[[Types/Trigger|Trigger]]|optional=true}}
'''Type''': [[Types/float]]


'''Default''': 0.5
{{Prototype property|special_neutral_target_damage|[[Types/DamagePrototype|DamagePrototype]]|optional=true}}


=== particle_buffer_size ===
{{Prototype property|width|[[Types/float|float]]|0.5|optional=true}}
'''Type''': [[Types/uint32]]
 
'''Default''': 20


{{Prototype property|particle_buffer_size|[[Types/uint32|uint32]]|20|optional=true}}
Has to be less than 256.
Has to be less than 256.


=== particle_spawn_timeout ===
{{Prototype property|particle_spawn_timeout|[[Types/uint16|uint16]]|4 * <code>particle_spawn_interval</code>|optional=true}}
'''Type''': [[Types/uint16]]
 
'''Default''': 4 * <code>particle_spawn_interval</code>
 
=== particle_start_alpha ===
'''Type''': [[Types/float]]
 
'''Default''': 1
 
=== particle_end_alpha ===
'''Type''': [[Types/float]]
 
'''Default''': 1


=== particle_start_scale ===
{{Prototype property|particle_start_alpha|[[Types/float|float]]|1|optional=true}}
'''Type''': [[Types/float]]


'''Default''': 1
{{Prototype property|particle_end_alpha|[[Types/float|float]]|1|optional=true}}


=== particle_alpha_per_part ===
{{Prototype property|particle_start_scale|[[Types/float|float]]|1|optional=true}}
'''Type''': [[Types/float]]


'''Default''': 1
{{Prototype property|particle_alpha_per_part|[[Types/float|float]]|1|optional=true}}


=== particle_scale_per_part ===
{{Prototype property|particle_scale_per_part|[[Types/float|float]]|1|optional=true}}
'''Type''': [[Types/float]]
 
'''Default''': 1
 
=== particle_fade_out_threshold ===
'''Type''': [[Types/float]]
 
'''Default''': 1


{{Prototype property|particle_fade_out_threshold|[[Types/float|float]]|1|optional=true}}
Value between 0 and 1.
Value between 0 and 1.


=== particle_loop_exit_threshold ===
{{Prototype property|particle_loop_exit_threshold|[[Types/float|float]]|0|optional=true}}
'''Type''': [[Types/float]]
 
'''Default''': 0
 
Value between 0 and 1.
Value between 0 and 1.


=== particle_loop_frame_count ===
{{Prototype property|particle_loop_frame_count|[[Types/uint16|uint16]]|1|optional=true}}
'''Type''': [[Types/uint16]]
 
'''Default''': 1
 
Will be set to 1 by the game if less than 1.
Will be set to 1 by the game if less than 1.


=== particle_fade_out_duration ===
{{Prototype property|particle_fade_out_duration|[[Types/uint16|uint16]]|max uint16 (65553)|optional=true}}
'''Type''': [[Types/uint16]]
 
'''Default''': max uint16 (65553)
 
Will be set to 1 by the game if less than 1.
Will be set to 1 by the game if less than 1.


=== spine_animation ===
{{Prototype property|spine_animation|[[Types/Animation|Animation]]|optional=true}}
'''Type''': [[Types/Animation]]
 
=== particle ===
'''Type''': [[Types/Animation]]
 
=== shadow ===
'''Type''': [[Types/Animation]]
 
=== smoke_sources ===
'''Type''': [[Types/table]] of [[Types/SmokeSource]]
 
=== progress_to_create_smoke ===
'''Type''': [[Types/float]]


'''Default''': 0.5
{{Prototype property|particle|[[Types/Animation|Animation]]|optional=true}}


=== stream_light ===
{{Prototype property|shadow|[[Types/Animation|Animation]]|optional=true}}
'''Type''': [[Types/LightDefinition]]


=== ground_light ===
{{Prototype property|smoke_sources|[[Types/table|table]] of [[Types/SmokeSource|SmokeSource]]|optional=true}}
'''Type''': [[Types/LightDefinition]]


=== target_position_deviation ===
{{Prototype property|progress_to_create_smoke|[[Types/float|float]]|0.5|optional=true}}
'''Type''': [[Types/double]]


'''Default''': 0
{{Prototype property|stream_light|[[Types/LightDefinition|LightDefinition]]|optional=true}}


=== oriented_particle ===
{{Prototype property|ground_light|[[Types/LightDefinition|LightDefinition]]|optional=true}}
'''Type''': [[Types/bool]]


'''Default''': false
{{Prototype property|target_position_deviation|[[Types/double|double]]|0|optional=true}}


=== shadow_scale_enabled ===
{{Prototype property|oriented_particle|[[Types/bool|bool]]|false|optional=true}}
'''Type''': [[Types/bool]]


'''Default''': false
{{Prototype property|shadow_scale_enabled|[[Types/bool|bool]]|false|optional=true}}

Revision as of 21:08, 5 August 2019