PDA

View Full Version : Problem with Flak Mutator



Party Boy
12-16-2007, 11:02 AM
I'm trying to do a Flak that shoots shells ahead instead up, like UT2k4 . . .

I don't know what I'm doing wrong . . .

(It's my first mutator)


class MutatorFlakCannon2004 extends UTMutator;

function bool CheckReplacement(Actor Other)
{
if (Other.IsA('UTWeap_FlakCannon') && !Other.IsA('UTWeap_FlakCannon2004'))
{
ReplaceWith(Other, "UTWeap_FlakCannon2004");
}

return true;
}

DefaultProperties
{
}
class UTWeap_FlakCannon2004 extends UTWeap_FlakCannon;

DefaultProperties
{
WeaponProjectiles(1)=Class'UTProj_FlakShell2004'
}
class UTProj_FlakShell2004 extends UTProj_FlakShell;

DefaultProperties
{
TossZ=150.000000
} Maybe It's totally WRONG . . . I don't know . . .

:D

Xyx
12-16-2007, 07:19 PM
I don't have a reference handy, but I'm not sure if you should return true in CheckReplacement if you replace the flak cannon... You could try returning false there and see if that helps.