mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Merge pull request #1942 from def-/pr-deepfly
Change sv_deepfly to work with hammer explicitly
This commit is contained in:
commit
c72edb18bb
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue