public override void Execute(string[] args) { if (args.Length == 1) { game.Chat.Add("&e/client model: &cYou didn't specify a model name."); } else { game.LocalPlayer.SetModel(Utils.ToLower(args[1])); if (args.Length >= 4) { ClassicalSharp.Entities.LocationUpdate update = ClassicalSharp.Entities.LocationUpdate.Empty(); if (args[2] == "x") { update.RotX = float.Parse(args[3]); } if (args[2] == "z") { update.RotZ = float.Parse(args[3]); } game.LocalPlayer.SetLocation(update, true); } } }
public override void SetLocation( LocationUpdate update, bool interpolate ) { interp.SetLocation( update, interpolate ); }
public abstract void SetLocation( LocationUpdate update, bool interpolate );
void UpdateLocation( byte playerId, LocationUpdate update, bool interpolate ) { Player player = game.Players[playerId]; if( player != null ) { player.SetLocation( update, interpolate ); } }
public override void SetLocation(LocationUpdate update, bool interpolate) { interp.SetLocation(update, interpolate); }
public abstract void SetLocation(LocationUpdate update, bool interpolate);