Actor states
Burrow: · Burrow.Exit: · Burrow.DeadEnd:
Burrow
Availability
ZandroX only. Does not exist in Zandronum 3.2.
Usage
The states a burrowing projectile enters. The engine spawns no debris of its own: these states are where a projectile throws rock chips, metal sparks or dust.
| State | Entered |
|---|---|
Burrow |
when it starts to sink into a face |
Burrow.Exit |
when its front reaches the far face and it starts to come out |
Burrow.DeadEnd |
when it dies inside the solid, in place of Death |
Burrow and Burrow.Exit take the face's side as a sub-label, Wall, Floor or Ceiling:
Burrow.Floor for a face below the projectile (a floor, or a 3D floor's top), Burrow.Ceiling for one
above it. A missing sub-label falls back to Burrow (or Burrow.Exit), but Burrow.Exit never falls
back to Burrow.
Notes:
- The states run while the engine moves the projectile along its tunnel, so they need not move it. They
may loop, and usually end with
Goto Spawnor by looping untilBurrow.Exittakes over. - Without a
Burrow.Exitstate, a projectile aBurrowstate took returns toSpawnonce it is out. BurrowDepthis how far its centre is past the face it went in by (coming out, short of the face it leaves), soA_SpawnItemEx("Chip", -BurrowDepth)spawns on the face for a straight shot at a wall.- For a mark on the wall it goes into, call
A_SprayDecalin the first frame ofBurrow.Wall, while its front is still at the face:BAL1 A 0 A_SprayDecal("Scorch", 32). It traces along the projectile's angle, so it marks walls only, and each machine draws its own. - The state changes are made on each machine and not sent, as
Bouncestates are not.
Examples
A drill that chips stone as it bores in and blows a cloud of dust out of the far side:
ACTOR StoneDrill
{
Radius 6
Height 8
Speed 20
Damage 10
Projectile
+CANBURROWWALLS
BurrowEnterTime 12
States
{
Spawn:
BAL1 A 1
Loop
Burrow:
BAL1 A 3 A_SpawnItemEx("StoneChip", -BurrowDepth, 0, 0, -2, frandom(-2, 2), frandom(0, 3))
Loop
Burrow.Exit:
BAL1 A 0 A_SpawnItemEx("DustCloud")
Goto Spawn
Death:
BAL1 CDE 4
Stop
}
}