Amornus
11-23-2007, 12:45 AM
Hey guys,
I tried doing one of the tutorials from the UnrealWiki but I am unable to get it working. The code compiles fine without any errors and even shows up correctly in the game under mutators but it won't apply any of the settings.
Heres my code so far:
class JumpBooster extends UTMutator;
var int MultiJumpCount, MultiJumpBoost, StartingHealth, MaximumHealth, SuperDuberMaximumHealth;
function ModifyPlayer(Pawn P)
{
local UTPawn x;
x = UTPawn(P);
if (x != None)
{
x.MaxMultiJump = MultiJumpCount;
x.MultiJumpBoost = MultiJumpBoost;
x.Health = StartingHealth;
x.HealthMax = MaximumHealth;
x.SuperHealthMax = SuperDuberMaximumHealth;
}
Super.ModifyPlayer(P);
}
defaultproperties
{
MultiJumpCount=10
MultiJumpBoost=50
StartingHealth=250
MaximumHealth=250
SuperDuberMaximumHealth=500
GroupNames(0)="Jump Booster"
Components(0)=Sprite
Name="Default__UTMutator_JumpBooster"
ObjectArchetype=UTMutator'UTGame.Default__UTMutato r'
}
Thanks in advance
I tried doing one of the tutorials from the UnrealWiki but I am unable to get it working. The code compiles fine without any errors and even shows up correctly in the game under mutators but it won't apply any of the settings.
Heres my code so far:
class JumpBooster extends UTMutator;
var int MultiJumpCount, MultiJumpBoost, StartingHealth, MaximumHealth, SuperDuberMaximumHealth;
function ModifyPlayer(Pawn P)
{
local UTPawn x;
x = UTPawn(P);
if (x != None)
{
x.MaxMultiJump = MultiJumpCount;
x.MultiJumpBoost = MultiJumpBoost;
x.Health = StartingHealth;
x.HealthMax = MaximumHealth;
x.SuperHealthMax = SuperDuberMaximumHealth;
}
Super.ModifyPlayer(P);
}
defaultproperties
{
MultiJumpCount=10
MultiJumpBoost=50
StartingHealth=250
MaximumHealth=250
SuperDuberMaximumHealth=500
GroupNames(0)="Jump Booster"
Components(0)=Sprite
Name="Default__UTMutator_JumpBooster"
ObjectArchetype=UTMutator'UTGame.Default__UTMutato r'
}
Thanks in advance