mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 05:51:20 +00:00
Added Actor.CopyBloodColor to copy another existing actor's blood color.
This commit is contained in:
parent
74db8b7684
commit
cb6514cc05
2 changed files with 18 additions and 0 deletions
|
@ -1629,6 +1629,23 @@ DEFINE_ACTION_FUNCTION_NATIVE(AActor, A_NoBlocking, A_Unblock)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void CopyBloodColor(AActor* self, AActor* other)
|
||||||
|
{
|
||||||
|
if (self && other)
|
||||||
|
{
|
||||||
|
self->BloodColor = other->BloodColor;
|
||||||
|
self->BloodTranslation = other->BloodTranslation;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
DEFINE_ACTION_FUNCTION_NATIVE(AActor, CopyBloodColor, CopyBloodColor)
|
||||||
|
{
|
||||||
|
PARAM_SELF_PROLOGUE(AActor);
|
||||||
|
PARAM_OBJECT(other, AActor);
|
||||||
|
CopyBloodColor(self, other);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
//=====================================================================================
|
//=====================================================================================
|
||||||
//
|
//
|
||||||
// Inventory exports
|
// Inventory exports
|
||||||
|
|
|
@ -1158,6 +1158,7 @@ class Actor : Thinker native
|
||||||
native bool A_SetSize(double newradius = -1, double newheight = -1, bool testpos = false);
|
native bool A_SetSize(double newradius = -1, double newheight = -1, bool testpos = false);
|
||||||
native void A_SprayDecal(String name, double dist = 172);
|
native void A_SprayDecal(String name, double dist = 172);
|
||||||
native void A_SetMugshotState(String name);
|
native void A_SetMugshotState(String name);
|
||||||
|
native void CopyBloodColor(Actor other);
|
||||||
|
|
||||||
native void A_RearrangePointers(int newtarget, int newmaster = AAPTR_DEFAULT, int newtracer = AAPTR_DEFAULT, int flags=0);
|
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_recipient, int sourcefield, int recipientfield=AAPTR_DEFAULT, int flags=0);
|
native void A_TransferPointer(int ptr_source, int ptr_recipient, int sourcefield, int recipientfield=AAPTR_DEFAULT, int flags=0);
|
||||||
|
|
Loading…
Reference in a new issue