*for Pacer: remove globbling from bio grenade launcher

2 replies [Last post]
Sanch3z
Sanch3z's picture
Offline
Joined: 11/01/2008
*for Pacer: remove globbling from bio grenade launcher

hey Pacer, I'm trying to make my modded ONS2 Bio grenade launcher and I'm wondering how to get rid of the globlings, I just want a single explosion. I see the code for it in ONS2Proj_Grenade:


simulated function Explode(vector HitLocation, vector HitNormal)
{
    SplashGloblings();
    super.Explode(HitLocation, HitNormal);
}

 

and

 

 simulated function Explode(vector HitLocation, vector HitNormal)
    {
        SplashGloblings();
        if (!WorldInfo.GRI.OnSameTeam(Owner, Instigator))
        {
            ImpactedActor = Owner;
            super.Explode(HitLocation, HitNormal);
            ImpactedActor = None;
        }
        else
        {
            super.Explode(HitLocation, HitNormal);
        }
    }
}

simulated function SplashGloblings()
{
    local int g;
    local UTProj_BioShot NewGlob;
    local Vector VNorm;
    if (Role == ROLE_Authority)
    {
        for (g=0; g < 4; g++)
        {
            NewGlob = Spawn(class'UTProj_BioGlobling', self,, Location+50*SurfaceNormal);
            if (NewGlob != None)
            {
                NewGlob.Velocity = (250 + FRand()*150.0) * (SurfaceNormal + VRand()*0.8);
                if (Physics == PHYS_Falling)
                {
                    VNorm = (Velocity dot SurfaceNormal) * SurfaceNormal;
                    NewGlob.Velocity += (-VNorm + (Velocity - VNorm)) * 0.1;
                }
                NewGlob.InstigatorController = InstigatorController;
            }

0
Your rating: None
Sanch3z
Sanch3z's picture
Offline
Joined: 11/01/2008
Re: *for Pacer: remove globbling from bio grenade launcher

 

thanks bro

PacerX
PacerX's picture
Offline
Joined: 05/12/2008
Re: *for Pacer: remove globbling from bio grenade launcher

I think you can just comment out the calls to SpashGloblings... just add two forward slashes to the lines that call SplashGloblings like so:


// SplashGloblings();

Also you can delete the SplashGloblings method if you want.