Пример #1
0
 public InnerPlayerPhysics(ILogger <InnerPlayerPhysics> logger, InnerPlayerControl playerControl, IEventManager eventManager, Game game)
 {
     _logger        = logger;
     _playerControl = playerControl;
     _eventManager  = eventManager;
     _game          = game;
 }
 public InnerCustomNetworkTransform(ICustomMessageManager <ICustomRpc> customMessageManager, Game game, ILogger <InnerCustomNetworkTransform> logger, InnerPlayerControl playerControl, IEventManager eventManager, ObjectPool <PlayerMovementEvent> pool) : base(customMessageManager, game)
 {
     _logger        = logger;
     _playerControl = playerControl;
     _eventManager  = eventManager;
     _pool          = pool;
 }
Пример #3
0
        public static void Postfix(InnerPlayerControl __instance, InnerPlayerControl DGDGDKCCKHJ)
        {
            var pos = MOD.GetSystem(DGDGDKCCKHJ.GetTruePosition());

            Stats.Murder(__instance, DGDGDKCCKHJ, pos);
            Process.SetDeath(DGDGDKCCKHJ);
        }
 public InnerCustomNetworkTransform(ILogger <InnerCustomNetworkTransform> logger, InnerPlayerControl playerControl, Game game, IEventManager eventManager, ObjectPool <PlayerMovementEvent> pool)
 {
     _logger        = logger;
     _playerControl = playerControl;
     _game          = game;
     _eventManager  = eventManager;
     _pool          = pool;
 }
Пример #5
0
        public virtual Vector2 GetSpawnLocation(InnerPlayerControl player, int numPlayers, bool initialSpawn)
        {
            var vector = new Vector2(0, 1);

            vector  = Rotate(vector, (player.PlayerId - 1) * (360f / numPlayers));
            vector *= this.SpawnRadius;
            return((initialSpawn ? this.InitialSpawnCenter : this.MeetingSpawnCenter) + vector + new Vector2(0f, 0.3636f));
        }
Пример #6
0
        public override Vector2 GetSpawnLocation(InnerPlayerControl player, int numPlayers, bool initialSpawn)
        {
            if (initialSpawn)
            {
                return(base.GetSpawnLocation(player, numPlayers, initialSpawn));
            }

            Vector2 position;

            if (player.PlayerId < 5)
            {
                position = this.MeetingSpawnCenter + (new Vector2(1, 0) * player.PlayerId);
            }
            else
            {
                position = this.MeetingSpawnCenter2 + (new Vector2(1, 0) * (player.PlayerId - 5));
            }

            return(position);
        }
Пример #7
0
 public static void SetName(InnerPlayerControl __instance, string LFBNFBOLLNN, bool PKGCJHDPPAF)
 {
     if (PlayerControl.LocalPlayer == null || ((PlayerInfo)__instance).Name == "")
     {
         return;
     }
     if (PlayerControl.LocalPlayer == __instance)
     {
         MOD.RunLater(() => Process.Lobby(PlayerInfo.All), 2000);
     }
     else
     {
         Process.PlayerJoin(__instance);
     }
     UIVoIP.CreateVoipMark();
     VoIPConnection.SetArgs(new ConnectEventArgs
     {
         GameCode = Singleton.GameStartManager.GameRoomName.text.Split('\n')[1],
         GameName = PlayerControl.LocalPlayer.nameText.name,
         ID       = PlayerControl.LocalPlayer.PlayerId
     });
 }
Пример #8
0
 public InnerPlayerPhysics(Game game, ILogger <InnerPlayerPhysics> logger, InnerPlayerControl playerControl, IEventManager eventManager) : base(game)
 {
     _logger        = logger;
     _playerControl = playerControl;
     _eventManager  = eventManager;
 }
Пример #9
0
 public InnerCustomNetworkTransform(ILogger <InnerCustomNetworkTransform> logger, InnerPlayerControl playerControl, Game game)
 {
     _logger        = logger;
     _playerControl = playerControl;
     _game          = game;
 }
Пример #10
0
 public override Vector2 GetSpawnLocation(InnerPlayerControl player, int numPlayers, bool initialSpawn)
 {
     return(new Vector2(-25, 40));
 }
Пример #11
0
 public InnerPlayerPhysics(ICustomMessageManager <ICustomRpc> customMessageManager, Game game, ILogger <InnerPlayerPhysics> logger, InnerPlayerControl playerControl, IEventManager eventManager) : base(customMessageManager, game)
 {
     _logger        = logger;
     _playerControl = playerControl;
     _eventManager  = eventManager;
 }
Пример #12
0
 public InnerPlayerPhysics(ILogger <InnerPlayerPhysics> logger, InnerPlayerControl playerControl)
 {
     _logger        = logger;
     _playerControl = playerControl;
 }
Пример #13
0
 public static void SetColor(InnerPlayerControl __instance, int CKNNKEMNHAK)
 {
     Process.ChangeColor(__instance, CKNNKEMNHAK);
     MOD.log.LogMessage(__instance.PPMOEEPBHJO.Get().Name + " change color to: " + (PlayerColor)CKNNKEMNHAK);
 }
Пример #14
0
                      nameof(InnerPlayerControl.CoStartMeeting))] // CmdReportDeadBody
        public static void StartMeeting(InnerPlayerControl __instance, InnerPlayerInfo DGDGDKCCKHJ)
        {
            var pos = MOD.GetSystem(__instance.GetTruePosition());

            Stats.Report(__instance, DGDGDKCCKHJ, pos);
        }