mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-23 20:43:15 +00:00
26 lines
328 B
Text
26 lines
328 B
Text
|
|
class SecretTrigger : Actor
|
|
{
|
|
default
|
|
{
|
|
+NOBLOCKMAP
|
|
+NOSECTOR
|
|
+NOGRAVITY
|
|
+DONTSPLASH
|
|
}
|
|
|
|
override void PostBeginPlay ()
|
|
{
|
|
Super.PostBeginPlay ();
|
|
level.total_secrets++;
|
|
}
|
|
|
|
override void Activate (Actor activator)
|
|
{
|
|
activator.GiveSecret(args[0] <= 1, (args[0] == 0 || args[0] == 2));
|
|
Destroy ();
|
|
}
|
|
|
|
|
|
}
|
|
|