- scriptified some trivial stuff from g_shared.

This commit is contained in:
Christoph Oelckers 2016-11-29 19:50:34 +01:00
commit a13e23dbe6
33 changed files with 276 additions and 502 deletions

View file

@ -552,6 +552,15 @@ void P_GiveSecret(AActor *actor, bool printmessage, bool playsound, int sectornu
level.found_secrets++;
}
DEFINE_ACTION_FUNCTION(AActor, GiveSecret)
{
PARAM_SELF_PROLOGUE(AActor);
PARAM_BOOL(printmessage);
PARAM_BOOL(playsound);
P_GiveSecret(self, printmessage, playsound, -1);
return 0;
}
//============================================================================
//
// P_PlayerOnSpecialFlat