qzdoom-gpl/wadsrc/static/zscript/hexen/fog.txt
Christoph Oelckers 371712c53a - turned everything I could into non-action functions.
- fixed emission of the self pointer in FxVMFunctionCall. I did not realize that the self expression only sets up a register for the value, not pushing it onto the stack.
2016-10-22 17:49:08 +02:00

78 lines
1 KiB
Text

// Fog Spawner --------------------------------------------------------------
class FogSpawner : Actor
{
Default
{
+NOSECTOR +NOBLOCKMAP
+FLOATBOB
+NOGRAVITY
+INVISIBLE
}
native void A_FogSpawn();
States
{
Spawn:
TNT1 A 20 A_FogSpawn;
Loop;
}
}
// Small Fog Patch ----------------------------------------------------------
class FogPatchSmall : Actor
{
Default
{
Speed 1;
+NOBLOCKMAP +NOGRAVITY +NOCLIP +FLOAT
+NOTELEPORT
RenderStyle "Translucent";
Alpha 0.6;
}
native void A_FogMove();
States
{
Spawn:
FOGS ABCDE 7 A_FogMove;
Loop;
Death:
FOGS E 5;
Stop;
}
}
// Medium Fog Patch ---------------------------------------------------------
class FogPatchMedium : FogPatchSmall
{
States
{
Spawn:
FOGM ABCDE 7 A_FogMove;
Loop;
Death:
FOGS ABCDE 5;
Goto Super::Death;
}
}
// Large Fog Patch ----------------------------------------------------------
class FogPatchLarge : FogPatchMedium
{
States
{
Spawn:
FOGL ABCDE 7 A_FogMove;
Loop;
Death:
FOGM ABCDEF 4;
Goto Super::Death;
}
}