This member has provided no bio about themself...

Comment History
spectre1989
spectre1989 - - 5 comments @ Unreal Learning #1: My First Unreal Tournament 3 Mutator

Okies I've posted a detailed list of what I've done and full source code on this thread Forums.beyondunreal.com if you have time I'm sure you're probably the most qualified to spot what's wrong with it!

Cheers
-Spec

Good karma+1 vote
spectre1989
spectre1989 - - 5 comments @ Unreal Learning #1: My First Unreal Tournament 3 Mutator

noticed a problem in initMutator:

UTGame(WorldInfo.Game).DefaultInventory[0] = class'UTWeap_EnforcerPlusOne';

I changed it to:

UTGame(WorldInfo.Game).DefaultInventory[0] = class'FirstProperMutator.UTWeap_EnforcerPlusOne';

Still no luck though...

Good karma+1 vote
spectre1989
spectre1989 - - 5 comments @ Unreal Learning #1: My First Unreal Tournament 3 Mutator

Thanks a lot for the replies mate. Rightio well I'm not using the nohomedir switch, so it can't be that.. Though I copied the scripts from the documents\my games\unreal tournament 3 etc etc to the folder in program files that the game seemed to be looking for them in. This somewhat fixed the problem in that my hello world mutator started working (it sent hello world to the log file).

But the enforcer plus ones mutator still isnt working.. The code for my mutator is:

class FirstProperMutator extends UTMutator;

// === VARIABLES ===

// Set Defaults

DefaultProperties
{
}

// === FUNCTIONS ===

/*
Name: initMutator
Parameters: string, string
Purpose: Called when the mutator is "turned on", any setting up done here
*/

function initMutator(string Options, out string ErrorMessage) {

if(UTGame(WorldInfo.Game) != None) { // Make sure there is a valid game

UTGame(WorldInfo.Game).DefaultInventory[0] = class'UTWeap_EnforcerPlusOne';

}

loginternal( "Inited First proper mutator" );

Super.initMutator(Options, ErrorMessage);

}

/*
Name: CheckReplacement
Parameters: Actor
Purpose: Allows you to replace any object in the game with another, awesomes!
*/

function bool CheckReplacement(Actor Other) {

if(Other.IsA('UTWeap_Enforcer') && !Other.IsA('UTWeap_EnforcerPlusOne') ) {

loginternal( "Replaced an enforcer" );
ReplaceWith(Other, "UTWeap_EnforcerPlusOne");

}

return true;

}

The log "Inited First proper mutator" is sent to the log file, however "Replaced an enforcer" never gets sent to the log file, so the mutator appears to be sound, but it just isn't replacing the enforcers... Wth could this be?? I'm stumped..

Good karma+1 vote
spectre1989
spectre1989 - - 5 comments @ Unreal Learning #1: My First Unreal Tournament 3 Mutator

ah in the logs I found this:

Error: Error reading attributes for 'C:\Program Files\Unreal Tournament 3\Binaries\..\UTGame\ Unpublished\CookedPC\Script\FirstProperMutator.u'
Error: Error reading attributes for 'C:\Program Files\Unreal Tournament 3\Binaries\..\UTGame\ Unpublished\CookedPC\Script\HelloWorld.u'

(Forgive the spaces, avoiding the 50 character demons)

What could be causing that?

Good karma+1 vote
spectre1989
spectre1989 - - 5 comments @ Unreal Learning #1: My First Unreal Tournament 3 Mutator

I'm having a bit of a problem..

My code for the enforcer plus one is:

class UTWeap_EnforcerPlusOne extends UTWeap_Enforcer;

DefaultProperties
{
InstantHitDamage(0)=100.000000
InstantHitDamage(1)=100.000000
InstantHitMomentum(0)=10000.000000
InstantHitMomentum(1)=10000.000000
}

But the enforcers dont seem to be doing any more damage or momentum effect than usual. It still takes several shots to kill anyone, when in theory it should take 1, or 2 at most if they're pumped on the keg o health or something. Any ideas? The mutator shows up fine, and when I have enforcer "enforcer + 1" comes up on the screen, and it compiles fine.. So I'm really stumped...

HALP!

Good karma+1 vote