Advertisement
JoshuaVats

GreenGlowstickFire

May 20th, 2023
471
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class GreenGlowstickFire extends KFShotgunFire;
  2.  
  3. #exec OBJ LOAD FILE=KF_AxeSnd.uax
  4.  
  5. function InitEffects();
  6.  
  7. /* function Timer()
  8. {
  9.     Weapon.ConsumeAmmo(ThisModeNum, Load);
  10.     DoFireEffect();
  11.     Weapon.PlaySound(Sound'KF_AxeSnd.Axe_Fire',SLOT_Interact,TransientSoundVolume,,TransientSoundRadius,,false);
  12.  
  13.     if( Weapon.ammoAmount(0) <= 0 && Instigator != none && Instigator.Controller != none )
  14.     {
  15.         Weapon.Destroy();
  16.         Instigator.Controller.ClientSwitchToBestWeapon();
  17.     }
  18. } */
  19.  
  20. simulated function bool AllowFire()
  21. {
  22.     return (Weapon.AmmoAmount(ThisModeNum) >= AmmoPerFire);
  23. }
  24.  
  25. function float MaxRange()
  26. {
  27.     return 2500;
  28. }
  29.  
  30. function DoFireEffect()
  31. {
  32.    Super.DoFireEffect();
  33. }
  34.  
  35. defaultproperties
  36. {
  37.      FireSoundRef="KF_AxeSnd.AxeFireBase.Axe_Fire1"
  38.      StereoFireSoundRef="KF_AxeSnd.AxeFireBase.Axe_Fire1"
  39.      NoAmmoSoundRef="KF_AxeSnd.AxeFireBase.Axe_Fire1"
  40.      FireRate=1.200000
  41.      AmmoClass=Class'GreenGlowstickAmmo'
  42.      ProjectileClass=Class'GreenGlowstickProj'
  43.      FireAimedAnim=Iron_Fire
  44.      KickMomentum=(X=0,y=0,Z=0)
  45.      ProjPerFire=1
  46.      TransientSoundVolume=1.8
  47.      FireForce="AssaultRifleFire"
  48.      ShakeOffsetMag=(X=3.000000,Y=3.000000,Z=3.000000)
  49.      ShakeRotRate=(X=10000.000000,Y=10000.000000,Z=10000.000000)
  50.      ShakeRotMag=(X=3.000000,Y=4.000000,Z=2.000000)
  51.      BotRefireRate=1.800000
  52.      aimerror=42.000000
  53.      Spread=0.015//0.0085
  54.      SpreadStyle=SS_Random
  55.      ProjSpawnOffset=(X=50,Y=10,Z=-6)
  56.      FlashEmitterClass=Class'ROEffects.MuzzleFlash1stNadeL'
  57.      EffectiveRange=2500.000000
  58.      maxVerticalRecoilAngle=200
  59.      maxHorizontalRecoilAngle=50
  60.      bWaitForRelease=true    
  61. }
  62.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement