2016-10-14 08:46:15 +00:00
|
|
|
|
2016-11-29 18:50:34 +00:00
|
|
|
class SecretTrigger : Actor
|
2016-10-14 08:46:15 +00:00
|
|
|
{
|
|
|
|
default
|
|
|
|
{
|
|
|
|
+NOBLOCKMAP
|
|
|
|
+NOSECTOR
|
|
|
|
+NOGRAVITY
|
|
|
|
+DONTSPLASH
|
2021-09-12 11:18:40 +00:00
|
|
|
+NOTONAUTOMAP
|
2016-10-14 08:46:15 +00:00
|
|
|
}
|
2016-11-29 18:50:34 +00:00
|
|
|
|
|
|
|
override void PostBeginPlay ()
|
|
|
|
{
|
|
|
|
Super.PostBeginPlay ();
|
|
|
|
level.total_secrets++;
|
|
|
|
}
|
|
|
|
|
|
|
|
override void Activate (Actor activator)
|
|
|
|
{
|
2017-08-18 08:25:33 +00:00
|
|
|
Level.GiveSecret(activator, args[0] <= 1, (args[0] == 0 || args[0] == 2));
|
2016-11-29 18:50:34 +00:00
|
|
|
Destroy ();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2016-10-14 08:46:15 +00:00
|
|
|
}
|
|
|
|
|