backwards compatiblity update

This commit is contained in:
pierow 2021-01-20 17:34:21 -05:00
parent 99c40ae09e
commit 95d0c38fdc
2 changed files with 9 additions and 2 deletions

View file

@ -994,7 +994,6 @@ void CBasePlayerWeapon::ItemPostFrame( void )
if ( theAttackPressed && m_pPlayer->GetCanUseWeapon())
{
//bool oldsg = (CVAR_GET_FLOAT("sv_nsversion") < 323.0f);
if ((m_fInSpecialReload == 1 || m_fInSpecialReload == 2) && m_iClip != 0 && (CVAR_GET_FLOAT("sv_nsversion") > 322.0f))
{
m_fInSpecialReload = 3;

View file

@ -937,7 +937,15 @@ void EV_SonicGun(struct event_args_s* args)
// AvHParticleSystemManager::Instance()->CreateParticleSystem(kpsShotgun, theBarrelTip);
// }
//EV_HLDM_FireBullets( idx, forward, right, up, kSGBulletsPerShot, vecSrc, vecAiming, kSGRange, BULLET_PLAYER_BUCKSHOT, 0, &tracerCount[idx-1], VECTOR_CONE_20DEGREES.x, VECTOR_CONE_20DEGREES.y);
EV_HLDM_FireBulletsPlayer( idx, forward, right, up, BALANCE_VAR(kSGBulletsPerShot), vecSrc, vecAiming, kSGRange, BULLET_PLAYER_BUCKSHOT, 0, &tracerCount[idx-1], kSGSpread, args->iparam1);
if (CVAR_GET_FLOAT("sv_nsversion") < 323.0f)
{
EV_HLDM_FireBulletsPlayer(idx, forward, right, up, 10, vecSrc, vecAiming, kSGRange, BULLET_PLAYER_BUCKSHOT, 0, &tracerCount[idx - 1], kSGSpread, args->iparam1);
}
else
{
EV_HLDM_FireBulletsPlayer(idx, forward, right, up, BALANCE_VAR(kSGBulletsPerShot), vecSrc, vecAiming, kSGRange, BULLET_PLAYER_BUCKSHOT, 0, &tracerCount[idx - 1], kSGSpread, args->iparam1);
}
//}
// General x-punch axis