fuaZandroX modding reference

Actor states

Stick: · Stick.Actor: · Stick.Wall: · Stick.Floor: · Stick.Ceiling: · Stick.Lost:

Stick

Availability

ZandroX only. Does not exist in Zandronum 3.2.

Usage

The states a sticky projectile enters.

State Entered
Stick.Actor when it sticks to an actor
Stick.Wall when it sticks to a wall
Stick.Floor when it sticks to a floor
Stick.Ceiling when it sticks to a ceiling
Stick when it sticks and the sub-label for what it struck is missing
Stick.Lost when the actor it rides is removed, becomes a spectator, or dies (without +STICKPASTDEATH)

Notes:

  • With no Stick state at all it stays in the state it was flying in, stuck.
  • The engine moves it with its host, so these states need not move it. They may loop forever, or end it: Stop removes it, and A_fua_Unstick lets it go first.
  • In Stick.Lost it is no longer stuck. Without a Stick.Lost state a projectile explodes into its Death state, and anything else stays where it was.
  • A stick made by A_fua_Stick or ACS enters no state unless it asks to.
  • In a netgame each client enters the state when the server's stick reaches it, as it enters Death when the server's explosion does.

Examples

A charge that ticks louder on a living target than on a wall:

ACTOR Charge
{
    Radius 4
    Height 6
    Speed 30
    Projectile
    +STICKY
    States
    {
    Spawn:
        BAL1 A 1
        Loop
    Stick:
        BAL1 A 35 A_PlaySound("misc/i_pkup")
        Goto Blow
    Stick.Actor:
        BAL1 AB 5 A_PlaySound("misc/i_pkup")
        BAL1 AB 5 A_PlaySound("misc/i_pkup")
        Goto Blow
    Stick.Lost:
    Blow:
        BAL1 C 0 A_fua_Unstick
        BAL1 C 4 A_Explode(48, 80)
        BAL1 DE 4
        Stop
    }
}

See also