58 lines
1.7 KiB
Ucode
58 lines
1.7 KiB
Ucode
//=============================================================================
|
|
//L85 Fire
|
|
//=============================================================================
|
|
class KVoltFire extends KFShotgunFire;
|
|
|
|
simulated function bool AllowFire()
|
|
{
|
|
if(KFWeapon(Weapon).bIsReloading)
|
|
return false;
|
|
if(KFPawn(Instigator).SecondaryItem!=none)
|
|
return false;
|
|
if(KFPawn(Instigator).bThrowingNade)
|
|
return false;
|
|
|
|
if(KFWeapon(Weapon).MagAmmoRemaining < AmmoPerFire)
|
|
{
|
|
if( Level.TimeSeconds - LastClickTime>FireRate )
|
|
{
|
|
LastClickTime = Level.TimeSeconds;
|
|
}
|
|
|
|
if( AIController(Instigator.Controller)!=None )
|
|
KFWeapon(Weapon).ReloadMeNow();
|
|
return false;
|
|
}
|
|
|
|
return super(WeaponFire).AllowFire();
|
|
}
|
|
|
|
defaultproperties
|
|
{
|
|
RecoilRate=0.070000
|
|
maxVerticalRecoilAngle=125
|
|
maxHorizontalRecoilAngle=50
|
|
FireAimedAnim="Fire_Iron"
|
|
FireSoundRef="HTec_A.KVolt.kvolt_fire_m"
|
|
StereoFireSoundRef="HTec_A.KVolt.kvolt_fire_s"
|
|
NoAmmoSoundRef="KF_NailShotgun.Fire.KF_NailShotgun_Dryfire"
|
|
ProjPerFire=1
|
|
bPawnRapidFireAnim=True
|
|
TransientSoundVolume=1.000000
|
|
TweenTime=0.015000
|
|
FireForce="AssaultRifleFire"
|
|
FireRate=0.075000
|
|
AmmoClass=Class'ScrnHTec.KVoltAmmo'
|
|
ShakeRotMag=(X=75.000000,Y=75.000000,Z=250.000000)
|
|
ShakeRotRate=(X=10000.000000,Y=10000.000000,Z=10000.000000)
|
|
ShakeRotTime=0.500000
|
|
ShakeOffsetMag=(X=6.000000,Y=3.000000,Z=10.000000)
|
|
ShakeOffsetRate=(X=1000.000000,Y=1000.000000,Z=1000.000000)
|
|
ShakeOffsetTime=1.000000
|
|
ProjectileClass=Class'ScrnHTec.KVoltDart'
|
|
BotRefireRate=0.990000
|
|
FlashEmitterClass=Class'ScrnHTec.IceDartMuzzleFlash'
|
|
aimerror=42.000000
|
|
Spread=0.010000
|
|
}
|