Fix aiming with minigun and flamethrower with PC controls

This commit is contained in:
Sergeanur committed 2021-07-22 22:15:27 +03:00
1 parent 5e34b1efcf
commit aec797671e
2 files changed
+9 -1

No files matched your search

+1 -1
View File
@@ -1913,7 +1913,7 @@ bool CRunningScript::CheckDamagedWeaponType(int32 actual, int32 type)
if (type == WEAPONTYPE_ANYMELEE) {
if (actual <= WEAPONTYPE_CHAINSAW)
return true;
if (actual - WEAPONTYPE_GRENADE <= WEAPONTYPE_MINIGUN)
if (actual >= WEAPONTYPE_GRENADE && actual <= WEAPONTYPE_UNIDENTIFIED)
return false;
return false;
}