Custom Pawn

Discuss matters related to LDG or UT2004 which aren't specific to any server.
Post Reply
User avatar
Jiffy
Azra is a Hippie
Posts: 287
Joined: Wed 08 May , 2013 5:32 pm
Contact:

Custom Pawn

Post by Jiffy » Sun 08 Sep , 2013 12:58 pm

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

iZumo
Disappeared Administrator
Posts: 4196
Joined: Fri 19 Mar , 2010 1:21 am
Location: Earth
Contact:

Re: Custom Pawn

Post by iZumo » Sun 08 Sep , 2013 2:50 pm

Use ModifyPlayer function in the Mutator to make changes to the Pawn.

User avatar
Azarael
UT2004 Administrator
Posts: 5365
Joined: Thu 11 Feb , 2010 10:52 pm

Re: Custom Pawn

Post by Azarael » Sun 08 Sep , 2013 3:08 pm

Extend BallisticPawn/Player if this is for BW.

User avatar
Jiffy
Azra is a Hippie
Posts: 287
Joined: Wed 08 May , 2013 5:32 pm
Contact:

Re: Custom Pawn

Post by Jiffy » Sun 08 Sep , 2013 4:05 pm

Izumo_CZ wrote:Use ModifyPlayer function in the Mutator to make changes to the Pawn.
I got it now. Thanks.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests