Added OnRevive virtual
Called when a monster is resurrected (allows resetting properties without needing an event handler).
This commit is contained in:
parent
ba050c112e
commit
e0baf7a85c
2 changed files with 7 additions and 0 deletions
|
|
@ -8485,6 +8485,10 @@ void AActor::Revive()
|
|||
Level->total_monsters++;
|
||||
}
|
||||
|
||||
IFOVERRIDENVIRTUALPTRNAME(this, NAME_Actor, OnRevive)
|
||||
{
|
||||
VMCallVoid<AActor*>(func, this);
|
||||
}
|
||||
// [ZZ] resurrect hook
|
||||
Level->localEventManager->WorldThingRevived(this);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -595,6 +595,9 @@ class Actor : Thinker native
|
|||
return true;
|
||||
}
|
||||
|
||||
// Called after an Actor has been resurrected.
|
||||
virtual void OnRevive() {}
|
||||
|
||||
// Called when an actor is to be reflected by a disc of repulsion.
|
||||
// Returns true to continue normal blast processing.
|
||||
virtual bool SpecialBlastHandling (Actor source, double strength)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue