mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-18 10:21:42 +00:00
371712c53a
- 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.
78 lines
1 KiB
Text
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;
|
|
}
|
|
}
|