private void OnPlayerMove(HumanController hc, Vector3 origin, int encoded, ushort stateflags,
                           uLink.NetworkMessageInfo info, Util.PlayerActions action)
 {
     foreach (var zone in _zones)
     {
         var distance = Vector3.Distance(origin, zone.Location);
         if (distance < zone.Radius)
         {
             Fougerite.Player player = new Fougerite.Player(hc.playerClient);
             player.SendConsoleMessage("worldedit_timedspawn|" + zone.SecondsToDestroy + "|" +
                                       Base64Encode(zone.Prefab));
         }
     }
 }
Example #2
0
 static void OnPlayerMove(HumanController hc, Vector3 origin, int encoded, ushort stateFlags, uLink.NetworkMessageInfo info, Util.PlayerActions action)
 {
 }
Example #3
0
 public void OnPlayerMove(HumanController hc, Vector3 v, int p, ushort p2,
                          uLink.NetworkMessageInfo networkMessageInfo, Util.PlayerActions action)
 {
     this.Invoke("On_PlayerMove", new object[] { hc, v, p, p2, networkMessageInfo, action });
 }
Example #4
0
 public void OnPlayerMove(HumanController hc, Vector3 origin, int encoded, ushort stateflags, uLink.NetworkMessageInfo info, Util.PlayerActions action)
 {
     Fougerite.Player pl = Fougerite.Server.Cache.ContainsKey(hc.netUser.userID) ? Fougerite.Server.Cache[hc.netUser.userID] : Fougerite.Server.GetServer().FindPlayer(hc.netUser.userID.ToString());
     {
         var id = pl.SteamID;
         if (Frozen.Contains(id))
         {
             pl.SendCommand("input.bind Left None None");
             pl.SendCommand("input.bind Right None None");
             pl.SendCommand("input.bind Up None None");
             pl.SendCommand("input.bind Down None None");
         }
     }
 }