- Increased the duration of respawn invulnerability by one second.
- DF2_YES_RESPAWN_INVUL and DF_FORCE_RESPAWN now apply to all multiplayer games, not just deathmatch, without the need for turning on alwaysapplydmflags. - Fixed: DF2_YES_RESPAWN_INVUL only worked in deathmatch, even with alwaysapplydmflags turned on. - Fixed: DF_COOP_LOSE_ARMOR did not empty the starting armor items. SVN r1035 (trunk)
This commit is contained in:
parent
9e42cdaf08
commit
7c40cf9ce0
5 changed files with 35 additions and 15 deletions
|
|
@ -1222,15 +1222,6 @@ void G_PlayerReborn (int player)
|
|||
bglobal.CleanBotstuff (p);
|
||||
else
|
||||
p->isbot = false;
|
||||
|
||||
// [BC] Handle temporary invulnerability when respawned
|
||||
if ((dmflags2 & DF2_YES_RESPAWN_INVUL) && (deathmatch || alwaysapplydmflags))
|
||||
{
|
||||
APowerup *invul = static_cast<APowerup*>(actor->GiveInventoryType (RUNTIME_CLASS(APowerInvulnerable)));
|
||||
invul->EffectTics = 2*TICRATE;
|
||||
invul->BlendColor = 0; // don't mess with the view
|
||||
actor->effects |= FX_RESPAWNINVUL; // [RH] special effect
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue