VeinAttack
AnimType a vein cell attaches to itself to hurt what stands in it.
- Applies to
- global rules
- File
rules.ini- Section
[AudioVisual]- Value
- class
- When omitted
none
[AudioVisual]VeinAttack=VEINATACThis animation is the vein attack: while it plays over a cell, it damages the objects standing there.
A vein cell starts the animation when a vulnerable object moves into it or is placed there, and when its vein matures under a vulnerable object already standing in it. Only mature vein on flat ground attacks. Thin vein, vein on a slope and the veinhole itself never do.
A vulnerable object is a building, vehicle, infantryman or aircraft within 5 leptons of the ground. An object is not vulnerable if its type sets ImmuneToVeins=yes or it has the VEIN_PROOF veteran ability.
On every other frame, the animation deals VeinDamage to each vulnerable object in its cell. It removes itself once the cell is empty, the cell no longer holds flat mature vein, the object that entered the cell last is off the ground, or it has played all the passes its LoopCount gives it. A cell starts no new attack while one is running.
A cell starts one animation for each vulnerable object standing in it when the attack starts, and each animation damages every vulnerable object there. Objects that arrive later start none. Three infantry standing in vein that matures under them each take damage three times every other frame. Three that walk in one after another each take it once.