Prototype/Explosion: Difference between revisions
(0.18.35: render_layer added) |
(1.0.0) |
||
Line 11: | Line 11: | ||
{{Prototype property|animations|[[Types/AnimationVariations|AnimationVariations]]}} | {{Prototype property|animations|[[Types/AnimationVariations|AnimationVariations]]}} | ||
== Optional properties == | == Optional properties == | ||
Line 31: | Line 30: | ||
{{Prototype property|correct_rotation|[[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|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}} | |||
{{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|[[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