Announcement

Collapse
No announcement yet.

Rocketlauncher Alternative

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

    Rocketlauncher Alternative

    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^^

    #2
    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...

    Code:
     
    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...

    Comment


      #3
      hm I'll test it out right away, thx man!

      Comment

      Working...
      X