hi, i have been working with a couple of friends on making a res menu. well it is basically taken from someone elses script and modified. with there consent. the original is from RB1337RPG. i tried to change it so it used UT2004RPG by making a extension. which looks like this:
class MutUT2004RPGexp extends MutUT2004RPG
config(UT2004RPG);
var bool bCanUseResArtifact;
// simple utility to find the mutator in the given game
static final function MutUT2004RPGexp GetRPGMutator(GameInfo G)
{
local Mutator M;
local MutUT2004RPGexp RPGMut;
for (M = G.BaseMutator; M != None && RPGMut == None; M = M.NextMutator)
{
RPGMut = MutUT2004RPGexp(M);
}
return RPGMut;
}
defaultproperties
{
bCanUseResArtifact=True
}
but when i compile i get this error
Error, Redefinition of Function GetRPGMutator differs only by return type
so... your going to have a couple of problems perhaps with using the think tanks code. i don't remember how hard it was for milk to right that but extracting it from the rest of our code might not be the easiest thing. The error your getting is somewhat self explanatory, you can't redefine the function from the parent class file. I'm not exactly sure if you'll need to extend the Mutator class of the rpg, but if its necessary for one of the variables in the res menu classes then go for it.