Check out the UpdateLegsYaw function in tfpPawn.
Code:
// When aiming, jumping and so forth, legs match torso angle.
// Otherwise, legs will follow our movement angle.
if (!ShouldCenterLegsToTorso() && LegsFollowMovement())
{
GetAxes(rawRot, X, Y, Z);
Dir = Normal(Velocity);
// if we're heading backwards ((X Dot Dir) < -0.5)), flip our side direction (Y Dot Dir)
bBackwards = ((X Dot Dir) < -0.5);
desiredLegYaw = ((Y Dot Dir) * (bBackwards ? -MaxYawLegsRun : MaxYawLegsRun));
dnDirAngle = (abs(desiredLegYaw - newLegYaw) / 32768.0f) * PI;
if (bBackwards)
dnDirAngle = PI - (dnDirAngle * -1);
// go through all the directional nodes and set dirangle
for (i = 0; i < DirectionalNodes.length; i++)
DirectionalNodes[i].DirAngle = dnDirAngle;
}
Remove / change stuff there, it will go back the default UDK/UT3 way - forwards, backwards, move left & move right.
Bookmarks