FrozenDozer
11-12-2009, 11:57 AM
Well, all I wanted is a non strafeable playercharacter.
I altered 3 Scripts, as I was told.
Here's the code:
class JumpNRunPlayerController extends UTPlayerController;
defaultproperties
{
Name="Default__JumpNRunPlayerController"
}
class JumpNRunPawn extends UTPawn;
defaultproperties
{
Begin Object Name=WPawnSkeletalMeshComponent
bOwnerNoSee=false
End Object
Name="Default__JumpNRunPawn"
bCanStrafe=false
}
class JumpNRunGameInfo extends UTDeathmatch;
defaultproperties
{
Acronym="JNR"
MapPrefixes.Empty
MapPrefixes(0)="JNR"
DefaultMapPrefixes.Empty
DefaultMapPrefixes(0)=(Prefix="JNR",GameType="JumpNRun.JumpNRunGameInfo")
PlayerControllerClass=class'JumpNRunPlayerControll er'
DefaultPawnClass=class'JumpNRunPawn'
Name="Default__JumpNRunGameInfo"
}
Well, UnrealFrontend says "0 errors 0 warnings"
But the thing is: players and bots still can strafe. Did i miss something?
I altered 3 Scripts, as I was told.
Here's the code:
class JumpNRunPlayerController extends UTPlayerController;
defaultproperties
{
Name="Default__JumpNRunPlayerController"
}
class JumpNRunPawn extends UTPawn;
defaultproperties
{
Begin Object Name=WPawnSkeletalMeshComponent
bOwnerNoSee=false
End Object
Name="Default__JumpNRunPawn"
bCanStrafe=false
}
class JumpNRunGameInfo extends UTDeathmatch;
defaultproperties
{
Acronym="JNR"
MapPrefixes.Empty
MapPrefixes(0)="JNR"
DefaultMapPrefixes.Empty
DefaultMapPrefixes(0)=(Prefix="JNR",GameType="JumpNRun.JumpNRunGameInfo")
PlayerControllerClass=class'JumpNRunPlayerControll er'
DefaultPawnClass=class'JumpNRunPawn'
Name="Default__JumpNRunGameInfo"
}
Well, UnrealFrontend says "0 errors 0 warnings"
But the thing is: players and bots still can strafe. Did i miss something?