Announcement

Collapse
No announcement yet.

Weapon Fire Delay

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Weapon Fire Delay

    I've made a new weapon, but I want to add a "charge-up" style delay on firing. Basically, when the trigger is pulled, the firing sound should start, then 1.3 seconds later the rest of the normal firing sequence (i.e spawn projectile, deal out damage, cause viewshake, etc) should begin.

    Code:
    class BallerFire extends BioFire;
    
    function float MaxRange()
    {
    	return 10000;
    }
    
    defaultproperties
    {
         ProjSpawnOffset=(X=20.000000,Y=9.000000,Z=-6.000000)
         bSplashDamage=True
         bRecommendSplashDamage=True
         bTossed=True
         FireEndAnim=
         FireSound=Sound'ElectroBallerSounds.Baller.ElectroBallGunFire'
         FireForce="BioRifleFire"
         FireRate=0.330000
         AmmoClass=Class'MutElectroBaller.BallerAmmo'
         AmmoPerFire=1
         ShakeRotMag=(X=70.000000)
         ShakeRotRate=(X=1000.000000)
         ShakeRotTime=1.800000
         ShakeOffsetMag=(Z=-2.000000)
         ShakeOffsetRate=(Z=1000.000000)
         ShakeOffsetTime=1.800000
         ProjectileClass=Class'MutElectroBaller.ElectroBall'
         BotRefireRate=0.800000
         FlashEmitterClass=Class'XEffects.BioMuzFlash1st'
    }
    How can I do this?

    #2
    Should be simply changing some properties. Check out the base weaponfire class for more info.

    Comment

    Working...
    X