- added A_SetMugshotState.

This commit is contained in:
Christoph Oelckers 2017-02-26 18:46:06 +01:00
parent 5fe04dfd20
commit fb3d4bd42a
2 changed files with 11 additions and 0 deletions

View File

@ -80,6 +80,7 @@
#include "math/cmath.h"
#include "g_levellocals.h"
#include "r_utility.h"
#include "sbar.h"
AActor *SingleActorFromTID(int tid, AActor *defactor);
@ -6940,3 +6941,12 @@ DEFINE_ACTION_FUNCTION(AActor, A_SprayDecal)
SprayDecal(self, name);
return 0;
}
DEFINE_ACTION_FUNCTION(AActor, A_SetMugshotState)
{
PARAM_SELF_PROLOGUE(AActor);
PARAM_STRING(name);
if (self->CheckLocalView(consoleplayer))
StatusBar->SetMugShotState(name);
return 0;
}

View File

@ -869,6 +869,7 @@ class Actor : Thinker native
native void A_SetTranslation(name transname);
native bool A_SetSize(double newradius, double newheight = -1, bool testpos = false);
native void A_SprayDecal(String name);
native void A_SetMugshotState(String name);
native void A_RearrangePointers(int newtarget, int newmaster = AAPTR_DEFAULT, int newtracer = AAPTR_DEFAULT, int flags=0);
native void A_TransferPointer(int ptr_source, int ptr_recepient, int sourcefield, int recepientfield=AAPTR_DEFAULT, int flags=0);