gzdoom/wadsrc/static/zscript/shared/teleport.txt

76 lines
800 B
Text
Raw Normal View History

2017-01-13 22:17:04 +00:00
class TeleportFog : Actor
{
default
{
+NOBLOCKMAP
+NOTELEPORT
+NOGRAVITY
RenderStyle "Add";
}
States
{
Spawn:
TFOG ABABCDEFGHIJ 6 Bright;
Stop;
Raven:
TELE ABCDEFGHGFEDC 6 Bright;
Stop;
Strife:
TFOG ABCDEFEDCB 6 Bright;
Stop;
}
2017-01-13 22:17:04 +00:00
override void PostBeginPlay ()
{
Super.PostBeginPlay ();
A_PlaySound ("misc/teleport", CHAN_BODY);
switch (gameinfo.gametype)
2017-01-13 22:17:04 +00:00
{
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
}
}