Prototype/Explosion: Difference between revisions
(Added prototype type to page) |
(1.0.0) |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Prototype parent|Prototype/Entity}} | |||
Used to play an animation and a sound. | |||
{{Prototype TOC|explosion}} | |||
== Extensions == | == Extensions == | ||
Line 10: | Line 10: | ||
This prototype inherits all the properties from [[Prototype/Entity]]. | This prototype inherits all the properties from [[Prototype/Entity]]. | ||
{{Prototype property|animations|[[Types/AnimationVariations|AnimationVariations]]}} | |||
== Optional properties == | == Optional properties == | ||
{{Prototype property|sound|[[Types/Sound|Sound]]|optional=true}} | |||
{{Prototype property|smoke|[[Types/string|string]]|optional=true}} | |||
Name of a trivial-smoke prototype. Mandatory if <code>smoke_count</code> > 0. | |||
{{Prototype property|height|[[Types/float|float]]|1|optional=true}} | |||
{{Prototype property|smoke_slow_down_factor|[[Types/float|float]]|0|optional=true}} | |||
{{Prototype property|smoke_count|[[Types/uint16|uint16]]|0|optional=true}} | |||
{{Prototype property|rotate|[[Types/bool|bool]]|false|optional=true}} | |||
{{Prototype property|beam|[[Types/bool|bool]]|false|optional=true}} | |||
{{Prototype property|correct_rotation|[[Types/bool|bool]]|false|optional=true}} | |||
{{Prototype property|scale_animation_speed|[[Types/bool|bool]]|false|optional=true}} | |||
{{Prototype property|fade_in_duration|[[Types/uint8|uint8]]|0|optional=true}} | |||
{{Prototype property|fade_out_duration|[[Types/uint8|uint8]]|0|optional=true}} | |||
{{Prototype property|render_layer|[[Types/RenderLayer|RenderLayer]]|"explosion"|optional=true}} | |||
{{Prototype property|scale_in_duration|[[Types/uint8|uint8]]|0|optional=true}} | |||
{{Prototype property|scale_out_duration|[[Types/uint8|uint8]]|0|optional=true}} | |||
{{Prototype property|scale_end|[[Types/float|float]]|1|optional=true}} | |||
{{Prototype property|scale_increment_per_tick|[[Types/float|float]]|0|optional=true}} | |||
=== light === | {{Prototype property|light_intensity_factor_initial|[[Types/float|float]]|0.0f|optional=true}} | ||
Silently clamped to be between 0 and 1. | |||
{{Prototype property|light_intensity_factor_final|[[Types/float|float]]|0.0f|optional=true}} | |||
Silently clamped to be between 0 and 1. | |||
{{Prototype property|light_size_factor_initial|[[Types/float|float]]|0.05f|optional=true}} | |||
Silently clamped to be between 0 and 1. | |||
{{Prototype property|light_size_factor_final|[[Types/float|float]]|0.1f|optional=true}} | |||
Silently clamped to be between 0 and 1. | |||
{{Prototype property|light|[[Types/LightDefinition|LightDefinition]]|optional=true}} | |||
{{Prototype property|light_intensity_peak_start_progress|[[Types/float|float]]|0.0f|optional=true}} | |||
{{Prototype property|light_intensity_peak_end_progress|[[Types/float|float]]|0.9f|optional=true}} | |||
{{Prototype property|light_size_peak_start_progress|[[Types/float|float]]|0.1f|optional=true}} | |||
{{Prototype property|light_size_peak_end_progress|[[Types/float|float]]|0.5f|optional=true}} | |||
{{Prototype property|scale_initial|[[Types/float|float]]|1|optional=true}} | |||
{{Prototype property|scale_initial_deviation|[[Types/float|float]]|0|optional=true}} | |||
{{Prototype property|scale|[[Types/float|float]]|1|optional=true}} | |||
{{Prototype property|scale_deviation|[[Types/float|float]]|0|optional=true}} |
Latest revision as of 12:09, 8 September 2020
Prototype definitions » PrototypeBase » Prototype/Entity » Prototype/Explosion
Used to play an animation and a sound.
Extensions
- Prototype/FlameThrowerExplosion flame-thrower-explosion
Mandatory properties
This prototype inherits all the properties from Prototype/Entity.
animations
Type: AnimationVariations
Optional properties
sound
Type: Sound
smoke
Type: string
Name of a trivial-smoke prototype. Mandatory if smoke_count
> 0.
height
Type: float
Default: 1
smoke_slow_down_factor
Type: float
Default: 0
smoke_count
Type: uint16
Default: 0
rotate
Type: bool
Default: false
beam
Type: bool
Default: false
correct_rotation
Type: bool
Default: false
scale_animation_speed
Type: bool
Default: false
fade_in_duration
Type: uint8
Default: 0
fade_out_duration
Type: uint8
Default: 0
render_layer
Type: RenderLayer
Default: "explosion"
scale_in_duration
Type: uint8
Default: 0
scale_out_duration
Type: uint8
Default: 0
scale_end
Type: float
Default: 1
scale_increment_per_tick
Type: float
Default: 0
light_intensity_factor_initial
Type: float
Default: 0.0f
Silently clamped to be between 0 and 1.
light_intensity_factor_final
Type: float
Default: 0.0f
Silently clamped to be between 0 and 1.
light_size_factor_initial
Type: float
Default: 0.05f
Silently clamped to be between 0 and 1.
light_size_factor_final
Type: float
Default: 0.1f
Silently clamped to be between 0 and 1.
light
Type: LightDefinition
light_intensity_peak_start_progress
Type: float
Default: 0.0f
light_intensity_peak_end_progress
Type: float
Default: 0.9f
light_size_peak_start_progress
Type: float
Default: 0.1f
light_size_peak_end_progress
Type: float
Default: 0.5f
scale_initial
Type: float
Default: 1
scale_initial_deviation
Type: float
Default: 0
scale
Type: float
Default: 1
scale_deviation
Type: float
Default: 0