I want to make my own version of a bouncing rocket launcher. The problem is, when I play, the rocket launcher base is there, but the gun is invisible and i can't pick it up. And it does this to all of the weapons bases, not just rocketlauncher ones...
The line i'm pretty sure is wrong, is bolded. I'm using MutArena and the wiki as a reference.
I don't understand what class'SomeClassName' does, Is it typecasting?
If I did it correctly, it should just replace the rergular rocket launcher with mine which currently only has a different name.
thanks,
--monkey
The line i'm pretty sure is wrong, is bolded. I'm using MutArena and the wiki as a reference.
I don't understand what class'SomeClassName' does, Is it typecasting?
Code:
//=========================================================================
// MutRocketLauncherBouncy.uc
// replaces regular RocketLauncher with one that fires bouncy missiles
//=========================================================================
class MutRocketLauncherBouncy extends Mutator;
function bool CheckReplacement( Actor Other, out byte bSuperRelevant )
{
bSuperRelevant = 0;
if ( xWeaponBase(Other) != None )
{
if(xWeaponBase(Other).WeaponType == class'RocketLauncher')
[b]xWeaponBase(Other).WeaponType = class'RocketLauncherBouncy';[/b]
else
return true;
}
else if(WeaponPickup(Other) != None)
{
//if i change ammo pickup replace it here
}
else
return true;
return false;
}
defaultproperties
{
GroupName="RocketLauncher"
FriendlyName="(monkey) RocketLauncher bouncy"
Description="Rockets fired will bounce!"
}
Code:
//=========================================================================
// RocketLauncherBouncy.uc
// rockets bounce
//=========================================================================
class RocketLauncherBouncy extends RocketLauncher;
defaultproperties
{
Description="Same old launcher, only bouncy rockets!"
ItemName="Bouncy Rocket Launcher"
}
thanks,
--monkey