Page 1 of 1

Custom Pawn

Posted: Sun 08 Sep , 2013 12:58 pm
by Jiffy
Okay, I'm making a mutator that slows down the player move speed, disables double jump and adds more fall damage. But the pawn doesn't seem to change.

Here's the code from the script files..

MutRealism:

Code: Select all

class MutRealism extends Mutator;

simulated function PostBeginPlay(){
     Super.PostBeginPlay();
     class'xPawn'.default.ControllerClass = class'BWRealismMut.RealismBotController';
     Level.Game.PlayerControllerClassName = "BWRealismMut.RealismPlayerController";
     Level.Game.PlayerControllerClass = class'BWRealismMut.RealismPlayerController';
}

defaultproperties
{
     FriendlyName="Ballistic Realism"
     Description="Makes the player's movement more realistic. Single Jump, slower moving speed and even slower airspeed."
}
RealismBotController:

Code: Select all

class RealismBotController extends xBot;

defaultProperties
{
    PawnClass=class'BWRealismMut.RealismPawn'
}
RealismPawn:

Code: Select all

class RealismPawn extends xPawn;

defaultproperties
{
    bCanDodgeDoubleJump=False

    MultiJumpRemaining=0
    MaxMultiJump=0
    bCanDoubleJump=False
    bCanWallDodge=False
    GroundSpeed=250.00
    WaterSpeed=125.00
    AirSpeed=180.00
    JumpZ=225.00

}
RealismPlayerController:

Code: Select all

class RealismPlayerController extends xPlayer;

defaultProperties
{
    PawnClass=class'BWRealismMut.RealismPawn'
}
Any idea what I'm doing wrong? :D

Re: Custom Pawn

Posted: Sun 08 Sep , 2013 2:50 pm
by iZumo
Use ModifyPlayer function in the Mutator to make changes to the Pawn.

Re: Custom Pawn

Posted: Sun 08 Sep , 2013 3:08 pm
by Azarael
Extend BallisticPawn/Player if this is for BW.

Re: Custom Pawn

Posted: Sun 08 Sep , 2013 4:05 pm
by Jiffy
Izumo_CZ wrote:Use ModifyPlayer function in the Mutator to make changes to the Pawn.
I got it now. Thanks.