mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-16 01:21:17 +00:00
961a6fe211
# Conflicts: # wadsrc/static/zscript.txt
76 lines
814 B
Text
76 lines
814 B
Text
|
|
class TeleportFog : Actor
|
|
{
|
|
default
|
|
{
|
|
+NOBLOCKMAP
|
|
+NOTELEPORT
|
|
+NOGRAVITY
|
|
+ZDOOMTRANS
|
|
RenderStyle "Add";
|
|
}
|
|
States
|
|
{
|
|
Spawn:
|
|
TFOG ABABCDEFGHIJ 6 Bright;
|
|
Stop;
|
|
|
|
Raven:
|
|
TELE ABCDEFGHGFEDC 6 Bright;
|
|
Stop;
|
|
|
|
Strife:
|
|
TFOG ABCDEFEDCB 6 Bright;
|
|
Stop;
|
|
}
|
|
|
|
override void PostBeginPlay ()
|
|
{
|
|
Super.PostBeginPlay ();
|
|
A_PlaySound ("misc/teleport", CHAN_BODY);
|
|
switch (gameinfo.gametype)
|
|
{
|
|
case GAME_Hexen:
|
|
case GAME_Heretic:
|
|
SetStateLabel("Raven");
|
|
break;
|
|
|
|
case GAME_Strife:
|
|
SetStateLabel("Strife");
|
|
break;
|
|
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
class TeleportDest : Actor
|
|
{
|
|
default
|
|
{
|
|
+NOBLOCKMAP
|
|
+NOSECTOR
|
|
+DONTSPLASH
|
|
}
|
|
}
|
|
|
|
class TeleportDest2 : TeleportDest
|
|
{
|
|
default
|
|
{
|
|
+NOGRAVITY
|
|
}
|
|
}
|
|
|
|
class TeleportDest3 : TeleportDest2
|
|
{
|
|
default
|
|
{
|
|
-NOGRAVITY
|
|
}
|
|
}
|
|
|