Skip to content

Commit

Permalink
Correct weapons clientside events
Browse files Browse the repository at this point in the history
  • Loading branch information
sabianroberts committed Nov 20, 2024
1 parent dc48ae3 commit 7bf2917
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dlls/gauss.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ void CGauss::PrimaryAttack()
StartFire();
m_fInAttack = 0;
m_flTimeWeaponIdle = UTIL_WeaponTimeBase() + 1.0;
m_pPlayer->m_flNextAttack = UTIL_WeaponTimeBase() + 0.2;
m_pPlayer->m_flNextAttack = UTIL_WeaponTimeBase() + 0.1;
}

void CGauss::SecondaryAttack()
Expand Down
4 changes: 2 additions & 2 deletions dlls/mp5.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,10 @@ void CMP5::PrimaryAttack()
// HEV suit - indicate out of ammo condition
m_pPlayer->SetSuitUpdate("!HEV_AMO0", FALSE, 0);

m_flNextPrimaryAttack = GetNextAttackDelay(0.1);
m_flNextPrimaryAttack = GetNextAttackDelay(0.065);

if ( m_flNextPrimaryAttack < UTIL_WeaponTimeBase() )
m_flNextPrimaryAttack = UTIL_WeaponTimeBase() + 0.1;
m_flNextPrimaryAttack = UTIL_WeaponTimeBase() + 0.08;

m_flTimeWeaponIdle = UTIL_WeaponTimeBase() + UTIL_SharedRandomFloat( m_pPlayer->random_seed, 10, 15 );
}
Expand Down

0 comments on commit 7bf2917

Please sign in to comment.