2159: Make the dummy always press fire when cl_dummy_hammer is active r=heinrich5991 a=trml



Co-authored-by: trml <trml@users.noreply.github.com>
This commit is contained in:
bors[bot] 2020-05-01 23:20:22 +00:00 committed by GitHub
commit 65284f3a28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -413,7 +413,7 @@ int CGameClient::OnSnapInput(int *pData, bool Dummy, bool Force)
{
if(m_DummyFire != 0)
{
m_DummyInput.m_Fire = m_HammerInput.m_Fire;
m_DummyInput.m_Fire = (m_HammerInput.m_Fire+1) & ~1;
m_DummyFire = 0;
}
@ -434,7 +434,7 @@ int CGameClient::OnSnapInput(int *pData, bool Dummy, bool Force)
}
m_DummyFire++;
m_HammerInput.m_Fire += 2;
m_HammerInput.m_Fire = (m_HammerInput.m_Fire+1) | 1;
m_HammerInput.m_WantedWeapon = WEAPON_HAMMER + 1;
if(!g_Config.m_ClDummyRestoreWeapon)
{