View Full Version : Rocketlauncher Alternative
legacy-ThanadoS
07-13-2004, 02:58 PM
I'm trying to alter the rocket launcher.
Well i changed the speed, the damage the model (the colour)
and now i want the rockets, spawn the green bubbles from the biogun, when they hit the ground.
How can i do that?
P.S.. I'm a beginner.
Help plz^^
legacy-skyshooter
07-14-2004, 03:10 AM
Hy!
i'm not to experienced, too. But i would try to subclass the "RocketProj" class and override his "Explode" and "BlowUp" functions, and spawn a bioglob...
class BioRocketProj extends RocketProj;
var() int NumberOfMiniGlobs;
//Here was only a HurtRadius() and a MakeNoise
//which you don't need anymore
function BlowUp(vector HitLocation)
{
}
//This function was spawning Rocket Exposion / debris effects
//now it spawns a bioglob
function Explode(vector HitLocation, vector HitNormal)
{
local rotator Dir;
local BioGlob newGlob;
Dir = rotator(HitNormal);
newGlob = Spawn(class'XWeapons.BioGlob',,, HitLocation, Dir);
newGlob.SplashGlobs(NumberOfMiniGlobs)
Destroy();
}
defaultproperties
{
NumberOfMiniGlobs=15;
}
then use this class as projectile in your weapon, of course....
I didn't test this, so it may have errors, but you should get the idea...
legacy-ThanadoS
07-14-2004, 03:35 AM
hm I'll test it out right away, thx man! :)
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.