mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-12-11 13:11:48 +00:00
9b1870f71f
Mainly done so that searching for 'level.' returns less noise.
26 lines
335 B
Text
26 lines
335 B
Text
|
|
class SecretTrigger : Actor
|
|
{
|
|
default
|
|
{
|
|
+NOBLOCKMAP
|
|
+NOSECTOR
|
|
+NOGRAVITY
|
|
+DONTSPLASH
|
|
}
|
|
|
|
override void PostBeginPlay ()
|
|
{
|
|
Super.PostBeginPlay ();
|
|
Level.total_secrets++;
|
|
}
|
|
|
|
override void Activate (Actor activator)
|
|
{
|
|
Level.GiveSecret(activator, args[0] <= 1, (args[0] == 0 || args[0] == 2));
|
|
Destroy ();
|
|
}
|
|
|
|
|
|
}
|
|
|