I've remade the animtree videos here with improved audio and a better explanation of what the animtree is for and I'll be demonstrating how to put this in game once we have a couple of basic animations added to the animset first and then referenced by the animtree later!
The code I mention in the tutorial
class CustomGame extends UTGame
config(Mymod);
var CustomPlayerController currentPlayer;
function RestartPlayer(Controller aPlayer)
{
super.RestartPlayer(aPlayer);
`Log("Player restarted");
currentPlayer = CustomPlayerController(aPlayer);
currentPlayer.resetMesh();
currentPlayer.rSetBehindView(true);
currentPlayer.rSetCameraMode('ThirdPerson');
}
simulated function PostBeginPlay() {
local UTGame Game;
Super.PostBeginPlay();
Game = UTGame(WorldInfo.Game);
if (Game != None)
{
Game.PlayerControllerClass=Class'Mymod.CustomPlayerController';
}
}
defaultproperties
{
PlayerControllerClass=Class'Mymod.CustomPlayerController'
}
Ler Mais