Im bussy on a little mutator which lets u modify the players in a ini file. This is based on some tutorials from INIQUITOUS. But im really bad in fixing errors, so I was wondering if someone could help me:
Help me please.
Thanks
Code:
//====================================
// PawnModifier
// The Minor-Modification
// Scripted by Troy
//====================================
class ModifyPawn extends Mutator config(PawnModifier);
var config float StartHealth;
var config float Jump;
var config float SpeedGround;
var config float SpeedAir;
var config float SpeedWater;
var config float SpeedFalling;
var config float MaxSuperHealth;
simulated function PostBeginPlay()
{
Super.PostBeginPlay();
{
Health = StartHealth;
JumpZ = Jump;
GroundSpeed = SpeedGround;
AirSpeed = SpeedAir;
WaterSpeed = SpeedWater;
MaxFallSpeed = SpeedFalling;
SuperHealthMax = MaxSuperHealth;
}
}
function ModifyPlayer(Pawn Other)
{
if ( NextMutator != None )
NextMutator.ModifyPlayer(Other);
}
defaultproperties
{
GroundSpeed=+00440.000000 //This is how fast the players moves on the ground.
AirSpeed=+00440.000000 //This is how fast the player moves in the air.
WaterSpeed=+00300.000000 //Thi is show fast the player moves through water.
JumpZ=+00420.000000 //This is the ammount of acceleration applied when a player jumps.
MaxFallSpeed=+1200.0 //This is maximum speed the player can land at without taking damage, a really high value basically means no falling damage (This also affects the paths that Bots can take).
Health=100 //This is the starting health ammount.
HealthMax=100 //The is the maxium health value that health packs can heal.
SuperHealthMax=199 //Health vials and other things such as the regeneration mutator heal to this limit.
}
Code:
----- PawnModifier (Release)
Analyzing...
Parsing ModifyPawn
Compiling ModifyPawn
Error in ModifyPawn.uc (19): '{': Bad command or expression
Compile aborted due to errors.
Failure - 1 error(s), 0 warning(s)
Thanks
Comment