Tweak reload-timers in case we got a race condition between think and
input.
This commit is contained in:
parent
8d1f3d8412
commit
7f9f3c7d9a
6 changed files with 6 additions and 5 deletions
|
@ -92,6 +92,7 @@ HLMultiplayerRules::PlayerDeath(base_player pl)
|
|||
pl.SetSolid(SOLID_NOT);
|
||||
pl.takedamage = DAMAGE_NO;
|
||||
pl.gflags &= ~GF_FLASHLIGHT;
|
||||
pl.gflags &= ~GF_EGONBEAM;
|
||||
pl.armor = pl.activeweapon = pl.g_items = 0;
|
||||
pl.health = 0;
|
||||
|
||||
|
|
|
@ -249,7 +249,7 @@ w_crossbow_reload(void)
|
|||
}
|
||||
|
||||
pl.think = w_crossbow_reload_done;
|
||||
pl.nextthink = time + 4.5f;
|
||||
pl.nextthink = time + 4.4f;
|
||||
Sound_Play(pl, CHAN_ITEM, "weapon_crossbow.reload");
|
||||
#endif
|
||||
|
||||
|
|
|
@ -262,7 +262,7 @@ w_glock_reload(void)
|
|||
}
|
||||
|
||||
pl.think = w_glock_reload_done;
|
||||
pl.nextthink = time + 2.0f;
|
||||
pl.nextthink = time + 1.9f;
|
||||
#endif
|
||||
|
||||
pl.w_attack_next = 2.0f;
|
||||
|
|
|
@ -253,7 +253,7 @@ w_mp5_reload(void)
|
|||
}
|
||||
|
||||
pl.think = w_mp5_reload_done;
|
||||
pl.nextthink = time + 1.5f;
|
||||
pl.nextthink = time + 1.4f;
|
||||
#endif
|
||||
|
||||
pl.w_attack_next = 1.5f;
|
||||
|
|
|
@ -210,7 +210,7 @@ w_python_reload(void)
|
|||
}
|
||||
|
||||
pl.think = w_python_reload_done;
|
||||
pl.nextthink = time + 3.25f;
|
||||
pl.nextthink = time + 3.15f;
|
||||
Sound_Play(pl, CHAN_WEAPON, "weapon_357.reload");
|
||||
#endif
|
||||
|
||||
|
|
|
@ -195,7 +195,7 @@ void w_rpg_reload(void)
|
|||
}
|
||||
|
||||
pl.think = w_rpg_reload_done;
|
||||
pl.nextthink = time + 2.25f;
|
||||
pl.nextthink = time + 2.15f;
|
||||
#endif
|
||||
|
||||
pl.w_attack_next = 2.25f;
|
||||
|
|
Loading…
Reference in a new issue