combat: force grenade war if have only grenade in hands

fix: crash bug when in some situations sv_gravity is zero
This commit is contained in:
jeefo 2024-02-10 21:58:10 +03:00
commit 9b9d4b6558
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED
4 changed files with 38 additions and 12 deletions

View file

@ -402,6 +402,7 @@ private:
bool selectBestNextNode ();
bool hasAnyWeapons ();
bool isKnifeMode ();
bool isGrenadeWar ();
bool isDeadlyMove (const Vector &to);
bool isOutOfBombTimer ();
bool isWeaponBadAtDistance (int weaponIndex, float distance);
@ -867,6 +868,7 @@ extern ConVar cv_graph_auto_save_count;
extern ConVar cv_graph_analyze_max_jump_height;
extern ConVar cv_spraypaints;
extern ConVar cv_whose_your_daddy;
extern ConVar cv_grenadier_mode;
extern ConVar mp_freezetime;
extern ConVar mp_roundtime;