From fb3d4bd42a7b46d0652c87a0cde7b0c641d095bd Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 26 Feb 2017 18:46:06 +0100 Subject: [PATCH] - added A_SetMugshotState. --- src/p_actionfunctions.cpp | 10 ++++++++++ wadsrc/static/zscript/actor.txt | 1 + 2 files changed, 11 insertions(+) diff --git a/src/p_actionfunctions.cpp b/src/p_actionfunctions.cpp index 53fe2b6a0..54a577e5b 100644 --- a/src/p_actionfunctions.cpp +++ b/src/p_actionfunctions.cpp @@ -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; +} \ No newline at end of file diff --git a/wadsrc/static/zscript/actor.txt b/wadsrc/static/zscript/actor.txt index fdc9ddade..9b52e7271 100644 --- a/wadsrc/static/zscript/actor.txt +++ b/wadsrc/static/zscript/actor.txt @@ -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);