Exports various resurrection-related functions to ZScript.
This commit is contained in:
parent
59c8d8ff64
commit
c3894ee348
4 changed files with 41 additions and 1 deletions
|
|
@ -4551,7 +4551,30 @@ DEFINE_ACTION_FUNCTION(AActor, A_RaiseSiblings)
|
|||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
//===========================================================================
|
||||
//
|
||||
// A_RaiseSelf
|
||||
//
|
||||
//===========================================================================
|
||||
DEFINE_ACTION_FUNCTION(AActor, A_RaiseSelf)
|
||||
{
|
||||
PARAM_SELF_PROLOGUE(AActor);
|
||||
PARAM_INT_DEF(flags);
|
||||
ACTION_RETURN_BOOL(P_Thing_Raise(self, NULL, (flags & RF_NOCHECKPOSITION)));
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
//
|
||||
// CanRaise
|
||||
//
|
||||
//===========================================================================
|
||||
DEFINE_ACTION_FUNCTION(AActor, CanRaise)
|
||||
{
|
||||
PARAM_SELF_PROLOGUE(AActor);
|
||||
ACTION_RETURN_BOOL(P_Thing_CanRaise(self));
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
//
|
||||
// A_MonsterRefire
|
||||
|
|
|
|||
|
|
@ -2971,6 +2971,12 @@ DEFINE_ACTION_FUNCTION(AActor, A_ExtChase)
|
|||
return 0;
|
||||
}
|
||||
|
||||
DEFINE_ACTION_FUNCTION(AActor, A_CheckForResurrection)
|
||||
{
|
||||
PARAM_SELF_PROLOGUE(AActor);
|
||||
ACTION_RETURN_BOOL(P_CheckForResurrection(self, false));
|
||||
}
|
||||
|
||||
// for internal use
|
||||
void A_Chase(AActor *self)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -7785,6 +7785,13 @@ void AActor::Revive()
|
|||
E_WorldThingRevived(this);
|
||||
}
|
||||
|
||||
DEFINE_ACTION_FUNCTION(AActor, Revive)
|
||||
{
|
||||
PARAM_SELF_PROLOGUE(AActor);
|
||||
self->Revive();
|
||||
return 0;
|
||||
}
|
||||
|
||||
int AActor::GetGibHealth() const
|
||||
{
|
||||
IFVIRTUAL(AActor, GetGibHealth)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue