mirror of
https://github.com/ENSL/NS.git
synced 2024-11-29 15:51:51 +00:00
backwards compatiblity update
This commit is contained in:
parent
99c40ae09e
commit
95d0c38fdc
2 changed files with 9 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue