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:
parent
9520a3c640
commit
b553be153d
4 changed files with 64 additions and 2 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue