Added CanResurrect(Actor other, bool passive)

- Works similarly to CanCollideWith.
- Passive means the caller is trying to be resurrected by 'other'.
- Non-passive means the caller is trying to resurrect 'other'.
This commit is contained in:
Major Cooke 2018-11-05 20:22:37 -06:00 committed by Christoph Oelckers
commit b553be153d
4 changed files with 64 additions and 2 deletions

View file

@ -460,6 +460,8 @@ bool P_Thing_Raise(AActor *thing, AActor *raiser, int nocheck)
return false;
}
if (!P_CanResurrect(thing, raiser))
return false;
S_Sound (thing, CHAN_BODY, "vile/raise", 1, ATTN_IDLE);