PDA

View Full Version : Minigun that shoots rockets?


Ash Trey
19th Jan 2000, 01:24 AM
Ok, say I wanted to place a minigun that fires rockets (rapidly) in my level, what would I have to do to achieve this?

Thanks.

DJ
19th Jan 2000, 06:20 AM
Look into the minigun code and look for what projectile class it uses and replace that (in a mutator of course...) with the rocket class.

I am at school right now so I donŽt have the details but youŽll find it if you look for it =)

[NBK]Beavis
19th Jan 2000, 12:13 PM
The minigun doesn't use projectiles, it is an instant hit weapon. Modifying this class would involve code changes. If you just want to speed up the rocket launcher, you could write a mutator that adjusts the RefireRate variable for all RocketLauncher actors. The Rocket launchers fire rate is 0.25 . For comparison, the pulse gun's primary RefireRate is set at 0.99 which fires pretty rapidly. Look at www.planetunreal.com/mutation/ (http://www.planetunreal.com/mutation/) for info on how to create a mutator. Your mutator would look something like this (I'm at work so I don't have the IT scripts/classes in front of me)...

class RapidRocket expands Mutator;

function CheckReplacement ( Actor Other, out byte bSuperRelevant)
{
if ( Other.IsA ('UT_eightball') )
{
Other.RefireRate = 0.99
}
bSuperRelevant=0;
return true;
}


Or you could replace the Pulse Gun's projectile with a rocket projectile by changing the IF statement above to...

if ( Other.Isa ('PulseGun') )
{ Other.ProjectileClass=Class'Botpack.RocketMk2'
}


In theory either of the above should work. Hope this helps.

{NBK}Beavis