BounceAnim
The animation played where thrown debris strikes.
Animation bounce effect
- Applies to
- AnimType
- File
art.ini- Section
[<ObjectType ID>]- Value
- class
- When omitted
none
The named animation plays where a thrown animation strikes something. A thrown animation is one with Bouncer=yes or IsMeteor=yes. It can strike the ground, a bridge deck, or a building or wall in its path.
Not every contact is a strike. A contact that leaves the thrown animation with too little motion counts as settling and plays no bounce animation. Elasticity decides which a contact is. Every bouncing animation in the shipped art.ini sets an Elasticity that makes an ordinary landing settle.
A thrown animation is removed on its first contact, whether it strikes or settles. The bounce animation therefore plays at most once, on the same frame as ExpireAnim. It appears where the thrown animation was one frame before the contact, so it can sit a short distance from the contact point where ExpireAnim appears.
The bounce animation also plays on water. There, splash animations replace the expiry animation and its blast, but the bounce animation is unaffected.
A name that matches no animation type still creates one under that name. It draws the shape file and reads the art.ini section of that name if they exist, so a misspelled name plays an animation with no artwork.
Voxel debris bounce effect
- Applies to
- VoxelAnimType
- File
rules.ini- Section
[<ObjectType ID>]- Value
- class
- When omitted
none
An animation of the named type plays at the piece’s position each time the piece strikes something outside water. A strike is contact with the ground, with the top or underside of a bridge deck, or with a building, wall or gate in the piece’s path.
A strike in a water cell plays nothing. It ends the piece’s life instead, and the impact follows on the next frame.
The contact that ends the bouncing is not a strike either. When a contact leaves the piece with too little motion to keep going, the piece settles and its life ends, as Elasticity describes. A piece with Elasticity=0 keeps no speed after a contact, so it settles the first time it lands and never plays this animation on the ground.