mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2024-12-26 22:55:41 +03:00
Fix Glock and Famas undesired ammo decreasing on burst mode (#832)
This commit is contained in:
parent
8ddda261fe
commit
a5f288fbd6
@ -761,8 +761,9 @@ void CBasePlayerWeapon::FireRemaining(int &shotsFired, float &shootTime, BOOL bI
|
||||
if (bIsGlock)
|
||||
{
|
||||
vecDir = m_pPlayer->FireBullets3(vecSrc, gpGlobals->v_forward, 0.05, 8192, 1, BULLET_PLAYER_9MM, 18, 0.9, m_pPlayer->pev, true, m_pPlayer->random_seed);
|
||||
#ifndef REGAMEDLL_FIXES
|
||||
--m_pPlayer->ammo_9mm;
|
||||
|
||||
#endif
|
||||
PLAYBACK_EVENT_FULL(flag, m_pPlayer->edict(), m_usFireGlock18, 0, (float *)&g_vecZero, (float *)&g_vecZero, vecDir.x, vecDir.y,
|
||||
int(m_pPlayer->pev->punchangle.x * 10000), int(m_pPlayer->pev->punchangle.y * 10000), m_iClip == 0, FALSE);
|
||||
}
|
||||
@ -770,7 +771,9 @@ void CBasePlayerWeapon::FireRemaining(int &shotsFired, float &shootTime, BOOL bI
|
||||
{
|
||||
|
||||
vecDir = m_pPlayer->FireBullets3(vecSrc, gpGlobals->v_forward, m_fBurstSpread, 8192, 2, BULLET_PLAYER_556MM, 30, 0.96, m_pPlayer->pev, false, m_pPlayer->random_seed);
|
||||
#ifndef REGAMEDLL_FIXES
|
||||
--m_pPlayer->ammo_556nato;
|
||||
#endif
|
||||
|
||||
#ifdef REGAMEDLL_ADD
|
||||
// HACKHACK: client-side weapon prediction fix
|
||||
|
Loading…
Reference in New Issue
Block a user