mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-17 01:51:17 +00:00
54 lines
729 B
Text
54 lines
729 B
Text
|
|
||
|
// Bat Spawner --------------------------------------------------------------
|
||
|
|
||
|
class BatSpawner : SwitchableDecoration
|
||
|
{
|
||
|
Default
|
||
|
{
|
||
|
+NOBLOCKMAP +NOSECTOR +NOGRAVITY
|
||
|
RenderStyle "None";
|
||
|
}
|
||
|
|
||
|
action native void A_BatSpawnInit();
|
||
|
action 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
|
||
|
}
|
||
|
|
||
|
action native void A_BatMove();
|
||
|
|
||
|
States
|
||
|
{
|
||
|
Spawn:
|
||
|
ABAT ABC 2 A_BatMove;
|
||
|
Loop;
|
||
|
Death:
|
||
|
ABAT A 2;
|
||
|
Stop;
|
||
|
}
|
||
|
}
|