Merge pull request #1942 from def-/pr-deepfly

Change sv_deepfly to work with hammer explicitly
This commit is contained in:
Dennis Felsing 2019-10-15 15:19:35 +02:00 committed by GitHub
commit c72edb18bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -270,8 +270,8 @@ void CCharacter::FireWeapon()
if (m_Jetpack && m_Core.m_ActiveWeapon == WEAPON_GUN)
FullAuto = true;
// don't fire non auto weapons when player is deep and sv_deepfly is disabled
if(!g_Config.m_SvDeepfly && !FullAuto && m_DeepFreeze)
// don't fire hammer when player is deep and sv_deepfly is disabled
if(!g_Config.m_SvDeepfly && m_Core.m_ActiveWeapon != WEAPON_HAMMER && m_DeepFreeze)
return;
// check if we gonna fire

View file

@ -348,8 +348,8 @@ void CCharacter::FireWeapon()
if(m_FrozenLastTick)
FullAuto = true;
// don't fire non auto weapons when player is deep and sv_deepfly is disabled
if(!g_Config.m_SvDeepfly && !FullAuto && m_DeepFreeze)
// don't fire hammer when player is deep and sv_deepfly is disabled
if(!g_Config.m_SvDeepfly && m_Core.m_ActiveWeapon != WEAPON_HAMMER && m_DeepFreeze)
return;
// check if we gonna fire