rott/kf_sources/ScrnBalanceSrv/Classes/ScrnShotgunFire.uc
2026-07-14 20:27:09 +07:00

31 lines
780 B
Ucode

class ScrnShotgunFire extends ShotgunFire;
simulated function bool AllowFire()
{
//changed to 1 -- PooSH
if( KFWeapon(Weapon).bIsReloading && KFWeapon(Weapon).MagAmmoRemaining < 1)
return false;
if(KFPawn(Instigator).SecondaryItem!=none)
return false;
if( KFPawn(Instigator).bThrowingNade )
return false;
if( Level.TimeSeconds - LastClickTime>FireRate )
{
LastClickTime = Level.TimeSeconds;
}
if( KFWeaponShotgun(Weapon).MagAmmoRemaining<1 )
{
return false;
}
return super(WeaponFire).AllowFire();
}
defaultproperties
{
ProjectileClass=Class'ScrnBalanceSrv.ScrnShotgunBullet'
}