mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-12 07:34:50 +00:00
Make the respawn invulnerability APowerInvulnerable persist through a ClearInventory by making it undroppable
This commit is contained in:
parent
689b39ed30
commit
fcc491f735
1 changed files with 2 additions and 1 deletions
|
@ -4446,6 +4446,7 @@ APlayerPawn *P_SpawnPlayer (FPlayerStart *mthing, int playernum, int flags)
|
||||||
APowerup *invul = static_cast<APowerup*>(p->mo->GiveInventoryType (RUNTIME_CLASS(APowerInvulnerable)));
|
APowerup *invul = static_cast<APowerup*>(p->mo->GiveInventoryType (RUNTIME_CLASS(APowerInvulnerable)));
|
||||||
invul->EffectTics = 3*TICRATE;
|
invul->EffectTics = 3*TICRATE;
|
||||||
invul->BlendColor = 0; // don't mess with the view
|
invul->BlendColor = 0; // don't mess with the view
|
||||||
|
invul->ItemFlags |= IF_UNDROPPABLE; // Don't drop this
|
||||||
p->mo->effects |= FX_RESPAWNINVUL; // [RH] special effect
|
p->mo->effects |= FX_RESPAWNINVUL; // [RH] special effect
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue