Example #1
0
 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);
         }
     }
 }
Example #2
0
 public override void SetLocation( LocationUpdate update, bool interpolate )
 {
     interp.SetLocation( update, interpolate );
 }
Example #3
0
 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 );
     }
 }
Example #5
0
 public override void SetLocation(LocationUpdate update, bool interpolate)
 {
     interp.SetLocation(update, interpolate);
 }
 public abstract void SetLocation(LocationUpdate update, bool interpolate);