mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-12-18 16:41:24 +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.
53 lines
708 B
Text
53 lines
708 B
Text
|
|
// Bat Spawner --------------------------------------------------------------
|
|
|
|
class BatSpawner : SwitchableDecoration
|
|
{
|
|
Default
|
|
{
|
|
+NOBLOCKMAP +NOSECTOR +NOGRAVITY
|
|
RenderStyle "None";
|
|
}
|
|
|
|
native void A_BatSpawnInit();
|
|
native void A_BatSpawn();
|
|
|
|
States
|
|
{
|
|
Spawn:
|
|
Active:
|
|
TNT1 A 2;
|
|
TNT1 A 2 A_BatSpawnInit;
|
|
TNT1 A 2 A_BatSpawn;
|
|
Wait;
|
|
Inactive:
|
|
TNT1 A -1;
|
|
Stop;
|
|
}
|
|
}
|
|
|
|
// Bat ----------------------------------------------------------------------
|
|
|
|
class Bat : Actor
|
|
{
|
|
Default
|
|
{
|
|
Speed 5;
|
|
Radius 3;
|
|
Height 3;
|
|
+NOBLOCKMAP +NOGRAVITY +MISSILE
|
|
+NOTELEPORT +CANPASS
|
|
}
|
|
|
|
native void A_BatMove();
|
|
|
|
States
|
|
{
|
|
Spawn:
|
|
ABAT ABC 2 A_BatMove;
|
|
Loop;
|
|
Death:
|
|
ABAT A 2;
|
|
Stop;
|
|
}
|
|
}
|