Prototype/Corpse: Difference between revisions
(Added prototype type to page) |
(0.17) |
||
Line 7: | Line 7: | ||
* [[Prototype/RailRemnants]] '''rail-remnants''' | * [[Prototype/RailRemnants]] '''rail-remnants''' | ||
== | == Optional properties == | ||
=== dying_speed === | === dying_speed === | ||
Line 14: | Line 14: | ||
'''Default''': 1 | '''Default''': 1 | ||
Multiplier for [[#time_before_shading_off]] and [[#time_before_removed]]. | Multiplier for [[#time_before_shading_off]] and [[#time_before_removed]]. Must be positive. | ||
=== splash_speed === | === splash_speed === | ||
Line 33: | Line 33: | ||
'''Default''': 60 * 120 (120 seconds) | '''Default''': 60 * 120 (120 seconds) | ||
Time in ticks this corpse lasts. | Time in ticks this corpse lasts. May not be 0. | ||
=== final_render_layer === | === final_render_layer === | ||
Line 39: | Line 39: | ||
'''Default''': "corpse" | '''Default''': "corpse" | ||
=== ground_patch_render_layer === | |||
'''Type''': [[Types/RenderLayer]] | |||
'''Default''': "ground-patch" | |||
=== animation_render_layer === | |||
'''Type''': [[Types/RenderLayer]] | |||
'''Default''': "object" | |||
=== splash_render_layer === | |||
'''Type''': [[Types/RenderLayer]] | |||
'''Default''': "object" | |||
=== shuffle_directions_at_frame === | |||
'''Type''': [[Types/uint8]] | |||
'''Default''': 1 | |||
=== ground_patch_fade_in_delay === | |||
'''Type''': [[Types/float]] | |||
'''Default''': 0 | |||
=== ground_patch_fade_in_speed === | |||
'''Type''': [[Types/float]] | |||
'''Default''': 0 | |||
=== ground_patch_fade_out_start === | |||
'''Type''': [[Types/float]] | |||
'''Default''': 0 | |||
=== animation === | === animation === | ||
Line 51: | Line 86: | ||
=== ground_patch_higher === | === ground_patch_higher === | ||
'''Type''': [[Types/AnimationVariations]] | '''Type''': [[Types/AnimationVariations]] | ||
=== ground_patch_fade_out_duration === | |||
'''Type''': [[Types/float]] | |||
'''Default''': 0 | |||
=== direction_shuffle === | |||
'''Type''': [[Types/table]] of [[Types/table]]s of [[Types/uint16]] | |||
An array of arrays of integers. Arrays are called "groups" and must all have the same size. |
Revision as of 20:30, 4 April 2019
Basics
Prototype type: corpse
Extends Prototype/Entity. Used for corpses, for example the remnants when destroying buildings.
Extensions
- Prototype/RailRemnants rail-remnants
Optional properties
dying_speed
Type: Types/float
Default: 1
Multiplier for #time_before_shading_off and #time_before_removed. Must be positive.
splash_speed
Type: Types/float
Default: 1
time_before_shading_off
Type: Types/int32
Default: 60 * 15 (15 seconds)
Controls how long the corpse takes to fade, as in how long it takes to get from no transparency to full tranparency/removed. This time is not added to #time_before_removed, it is instead substracted from it. So by default, the corpse starts fading about 15 seconds before it gets removed.
time_before_removed
Type: Types/int32
Default: 60 * 120 (120 seconds)
Time in ticks this corpse lasts. May not be 0.
final_render_layer
Type: Types/RenderLayer
Default: "corpse"
ground_patch_render_layer
Type: Types/RenderLayer
Default: "ground-patch"
animation_render_layer
Type: Types/RenderLayer
Default: "object"
splash_render_layer
Type: Types/RenderLayer
Default: "object"
shuffle_directions_at_frame
Type: Types/uint8
Default: 1
ground_patch_fade_in_delay
Type: Types/float
Default: 0
ground_patch_fade_in_speed
Type: Types/float
Default: 0
ground_patch_fade_out_start
Type: Types/float
Default: 0
animation
Type: Types/RotatedAnimationVariations
splash
Type: Types/AnimationVariations
ground_patch
Type: Types/AnimationVariations
ground_patch_higher
Type: Types/AnimationVariations
ground_patch_fade_out_duration
Type: Types/float
Default: 0
direction_shuffle
Type: Types/table of Types/tables of Types/uint16
An array of arrays of integers. Arrays are called "groups" and must all have the same size.