Exemple #1
0
        public void RegisterEvents()
        {
            player  = new Handlers.Player();
            server  = new Handlers.Server();
            warhead = new Handlers.WarheadEvents();

            Server.WaitingForPlayers += server.OnWaitingForPlayers;
            Server.RoundStarted      += server.OnRoundStart;
            Server.RoundEnded        += server.OnRoundEnd;
            Server.ReportingCheater  += server.OnReporting;
            Player.Left                         += player.OnLeft;
            Player.Joined                       += player.OnJoined;
            Player.Died                         += player.OnDead;
            Player.Spawning                     += player.OnSpawn;
            Player.EnteringFemurBreaker         += player.OnFemurbreakerentered;
            Player.Escaping                     += player.OnEscape;
            Player.EnteringPocketDimension      += player.OnPocketentered;
            Player.EscapingPocketDimension      += player.OnPocketescape;
            Player.FailingEscapePocketDimension += player.OnPocketDead;
            Player.IntercomSpeaking             += player.OnIntercom;
            Player.TriggeringTesla              += player.OnTriggerTesla;
            Player.DroppingItem                 += player.OnDroppingItem;
            Player.Banning                      += player.OnBanning;
            Player.Kicking                      += player.OnKicking;
            Player.Died                         += player.OnScpcontain;
            Player.ReloadingWeapon              += player.OnReloadingWeapon;
            Player.InteractingDoor              += player.OnDoorOpening;
            MapEvents.GeneratorActivated        += player.OnGenOn;
            MapEvents.AnnouncingDecontamination += player.OnAnnouncingDecont;
            MapEvents.Decontaminating           += player.OnDeont;
            //MapEvents.AnnouncingScpTermination += player.OnScpcont;
            MapEvents.AnnouncingNtfEntrance += player.OnNtfbackup;
            Warhead.Starting += warhead.OnAlphaStart;
            Warhead.Stopping += warhead.OnAlphaCancel;
        }
Exemple #2
0
        public void RegisterEvents()
        {
            player = new Handlers.Player();
            Player.InteractingDoor              += player.OnInteractingDoor;
            Player.Died                         += player.OnDied;
            Player.Dying                        += player.OnDying;
            Player.Shooting                     += player.OnShooting;
            Player.InteractingLocker            += player.OnInteractingLocker;
            Player.UnlockingGenerator           += player.OnUnlockingGenerator;
            Player.TriggeringTesla              += player.OnTriggeringTesla;
            Player.ChangingRole                 += player.OnChangingRole;
            Player.Spawning                     += player.OnSpawning;
            Player.Hurting                      += player.OnHurting;
            Player.EnteringFemurBreaker         += player.OnEnteringFemurBreaker;
            Player.Escaping                     += player.OnEscaping;
            Player.FailingEscapePocketDimension += player.OnFailingEscapePocketDimension;
            Player.Interacted                   += player.OnInteracted;
            Player.UsingMedicalItem             += player.OnUsingMedicalItem;
            Player.EnteringPocketDimension      += player.OnEnteringPocketDimension;
            Player.SpawningRagdoll              += player.OnSpawningRagdoll;

            server = new Handlers.Server();
            Server.RoundStarted   += server.OnRoundStarted;
            Server.RoundEnded     += server.OnRoundEnded;
            Server.RespawningTeam += server.OnRespawningTeam;

            map = new Handlers.Map();
            Map.ExplodingGrenade += map.OnExplodingGrenade;
        }
Exemple #3
0
        public void RegisterEvents()
        {
            if (KeepTheChange.Instance.Config.SpawnCoins)
            {
                server = new Handlers.Server();
                Server.RoundStarted += server.OnRoundStarted;

                player = new Handlers.Player();
                Player.InteractingLocker += player.OnInteractingLocker;
            }
            else
            {
                server = null;
                player = null;
            }

            if (KeepTheChange.Instance.Config.Enable914Upgrades)
            {
                scp914 = new Handlers.Scp914();
                scp914.Init();
                Exiled.Events.Handlers.Scp914.UpgradingItems += scp914.OnUpgradingItems;
            }
            else
            {
                scp914 = null;
            }
        }
Exemple #4
0
        private void RegisterEvents()
        {
            _playerEvents = new Handlers.Player(this);
            _serverEvents = new Handlers.Server(this);

            Server.WaitingForPlayers += _serverEvents.OnWaitingForPlayers;

            // Public events
            Server.RoundStarted += _serverEvents.OnRoundStarted;
            Server.RoundEnded   += _serverEvents.OnRoundEnded;

            Player.Left   += _playerEvents.OnLeave;
            Player.Banned += _playerEvents.OnBanned;
            Player.Kicked += _playerEvents.OnKicked;

            // Private events (Logs that could affect gameplay)
            Player.Hurting += _playerEvents.OnHurting;
            Player.EnteringPocketDimension      += _playerEvents.OnPocketDimensionEnter;
            Player.EscapingPocketDimension      += _playerEvents.OnPocketDimensionEscape;
            Player.FailingEscapePocketDimension += _playerEvents.OnPocketDimensionEscapeFailed;
            Player.ActivatingWarheadPanel       += _playerEvents.OnWarheadPanelActivating;
            Player.Escaping         += _playerEvents.OnEscape;
            Player.Handcuffing      += _playerEvents.OnHandcuffing;
            Player.IntercomSpeaking += _playerEvents.OnIntercomSpeaking;
        }
Exemple #5
0
        private void LoadEvents()
        {
            Singleton    = this;
            PlayerEvents = new Handlers.Player(this);

            Player.Left += PlayerEvents.OnLeave;
        }
Exemple #6
0
 public void RegisterEvents()
 {
     player               = new Handlers.Player();
     Player.Left         += player.OnLeft;
     Player.Spawning     += player.OnSpawning;
     Player.ChangingRole += player.OnChangingRole;
     Player.Died         += player.OnDied;
 }
 public void RegisterEvents()
 {
     player = new Handlers.Player();
     Server.RoundStarted += player.OnRoundStart;
     Player.Dying        += player.OnKills;
     Player.Hurting      += player.OnDamage;
     Player.Verified     += player.OnJoin;
 }
Exemple #8
0
 public void RegisterEvents()
 {
     player = new Handlers.Player();
     if (Plugin.Instance.Config.EnableAmmoStacking)
     {
         Player.ItemDropped += player.OnItemDropped;
     }
 }
Exemple #9
0
        public void UnRegisterEvents()
        {
            Server.RoundStarted -= server.OnRoundStarted;

            Player.Dying -= player.OnDying;
            Player.Left  -= player.OnLeft;

            server = null;
            player = null;
        }
Exemple #10
0
        public void UnregisterEvents()
        {
            Server.WaitingForPlayers -= server.OnWaitingForPlayers;

            Player.Left         -= player.OnDisconnect;
            Player.ChangingRole -= player.OnChangingRole;

            player = null;
            server = null;
        }
Exemple #11
0
        public void RegisterEvents()
        {
            player = new Handlers.Player();
            server = new Handlers.Server();

            Server.WaitingForPlayers += server.OnWaitingForPlayers;

            Player.Left         += player.OnDisconnect;
            Player.ChangingRole += player.OnChangingRole;
        }
Exemple #12
0
        public void UnregisterEvents()
        {
            Log.Info("Events unregistered");
            Player.Left         -= player.OnLeft;
            Player.Spawning     -= player.OnSpawning;
            Player.ChangingRole -= player.OnChangingRole;
            Player.Died         -= player.OnDied;

            player = null;
        }
Exemple #13
0
 public void UnRegisterEvents()
 {
     player = new Handlers.Player();
     Server.RoundStarted -= player.OnRoundStart;
     Player.Dying        -= player.OnKills;
     Player.Hurting      -= player.OnDamage;
     Player.Verified     -= player.OnJoin;
     Player.Spawning     -= player.OnSpawning;
     player = null;
 }
 public void UnRegisterEvents()
 {
     Player.MedicalItemUsed   -= player.OnMedical;
     Player.UsingMedicalItem  -= player.MultiuseMedkit;
     Server.WaitingForPlayers -= server.Start;
     Player.Died        -= player.OnDie;
     Server.RoundEnded  -= player.OnEnd;
     Player.ItemDropped -= player.OnItemDropped;
     player              = null;
     server              = null;
 }
        public void RegisterEvents()
        {
            player               = new Handlers.Player();
            Player.Died         += player.OnDied;
            Player.Hurting      += player.OnHurting;
            Player.ChangingRole += player.OnChangingRole;

            server = new Handlers.Server();
            Server.RoundStarted += server.OnRoundStarted;
            Server.RoundEnded   += server.OnRoundEnded;
        }
        public void UnregisterEvents()
        {
            Server.WaitingForPlayers -= server.OnWaitingForPlayers;
            Server.RoundStarted      -= server.OnRoundStart;

            Player.Left   -= player.OnLeft;
            Player.Joined -= player.OnJoin;

            player = null;
            server = null;
        }
Exemple #17
0
        public void RegisterEvents()
        {
            singleton = this;
            server    = new Handlers.Server(this);
            player    = new Handlers.Player(this);

            Server.RoundStarted += server.OnRoundStarted;

            Player.Dying += player.OnDying;
            Player.Left  += player.OnLeft;
        }
        public void RegisterEvents()
        {
            player = new Handlers.Player();
            server = new Handlers.Server();

            Server.WaitingForPlayers += server.OnWaitingForPlayers;
            Server.RoundStarted      += server.OnRoundStart;

            Player.Left   += player.OnLeft;
            Player.Joined += player.OnJoin;
        }
Exemple #19
0
        public void RegisterEvents()
        {
            server = new Handlers.Server();
            player = new Handlers.Player();

            Server.RoundStarted    += server.OnRoundStarted;
            Server.RestartingRound += server.OnRestartingRound;
            Server.RespawningTeam  += server.OnRespawningTeam;

            Player.Died     += player.OnDied;
            Player.Escaping += player.OnEscaping;
        }
        private void RegisterEvents()
        {
            server = new Handlers.Server();
            player = new Handlers.Player();

            Player.Left            += Handlers.Player.OnLeft;
            Player.Joined          += Handlers.Player.OnJoined;
            Player.InteractingDoor += Handlers.Player.OnInteractingDoor;
            Player.Died            += Handlers.Player.OnPlayerDied;

            Server.WaitingForPlayers += Handlers.Server.OnWaitingForPlayers;
            Server.RoundStarted      += Handlers.Server.OnRoundStarted;
        }
        private void UnregisterEvents()
        {
            Player.Left            -= Handlers.Player.OnLeft;
            Player.Joined          -= Handlers.Player.OnJoined;
            Player.InteractingDoor -= Handlers.Player.OnInteractingDoor;
            Player.Died            -= Handlers.Player.OnPlayerDied;

            Server.WaitingForPlayers -= Handlers.Server.OnWaitingForPlayers;
            Server.RoundStarted      -= Handlers.Server.OnRoundStarted;

            server = null;
            player = null;
        }
Exemple #22
0
        public void UnregisterEvents()
        {
            Player.Left            -= PlayerEvents.OnPlayerLeave;
            Player.Hurting         -= PlayerEvents.OnPlayerHurt;
            Player.Dying           -= PlayerEvents.OnPlayerDying;
            Player.ChangingRole    -= PlayerEvents.OnRoleChange;
            Player.MedicalItemUsed -= PlayerEvents.OnHealing;
            Scp049.StartingRecall  -= PlayerEvents.OnReviving;
            Server.RoundStarted    -= ServerEvents.OnRoundStart;

            PlayerEvents = null;
            ServerEvents = null;
        }
Exemple #23
0
        public void UnregisterEvents()
        {
            Server.RoundStarted    -= server.OnRoundStarted;
            Server.RestartingRound -= server.OnRestartingRound;

            Player.Died     -= player.OnDied;
            Player.Escaping -= player.OnEscaping;

            Timing.KillCoroutines();

            server = null;
            player = null;
        }
Exemple #24
0
        public void RegisterEvents()
        {
            Singleton    = this;
            PlayerEvents = new Handlers.Player(this);
            ServerEvents = new Handlers.Server(this);

            Player.Left            += PlayerEvents.OnPlayerLeave;
            Player.Hurting         += PlayerEvents.OnPlayerHurt;
            Player.Dying           += PlayerEvents.OnPlayerDying;
            Player.ChangingRole    += PlayerEvents.OnRoleChange;
            Player.MedicalItemUsed += PlayerEvents.OnHealing;
            Scp049.StartingRecall  += PlayerEvents.OnReviving;
            Server.RoundStarted    += ServerEvents.OnRoundStart;
        }
Exemple #25
0
        public void RegisterEvents()
        {
            player = new Handlers.Player();
            player.Init();

            Player.Hurting         += player.OnHurting;
            Player.Died            += player.OnDied;
            Player.ChangingRole    += player.OnChangingRole;
            Player.Left            += player.OnLeft;
            Player.MedicalItemUsed += player.OnMedicalItemUsed;

            server               = new Handlers.Server();
            Server.RoundEnded   += server.OnRoundEnded;
            Server.RoundStarted += server.OnRoundStarted;
        }
        public void UnregisterEvents()
        {
            //Server.WaitingForPlayers -= server.OnWaitingForPlayers;
            Server.RoundStarted -= server.OnRoundStarted;

            Player.Left   -= player.OnLeft;
            Player.Joined -= player.OnVerified;

            server  = null;
            player  = null;
            warhead = null;
            map     = null;

//            Singleton = null;
        }
        public void RegisterEvents()
        {
//            if (Singleton == null) yield break;
            player  = new Handlers.Player();
            server  = new Handlers.Server();
            warhead = new Handlers.Warhead();
            map     = new Handlers.Map();

            //Server.WaitingForPlayers += server.OnWaitingForPlayers;
            Server.RoundStarted += server.OnRoundStarted;

            Player.Left   += player.OnLeft;
            Player.Joined += player.OnVerified;
            //    Player.InteractingDoor += player.OnInteractingDoor;
        }
        public void RegisterEvents()
        {
            Environment.SetEnvironmentVariable("JEBAĆ", "wat");
            player = new Handlers.Player();
            server = new Handlers.Server();

            player.XD = Config.TwojaStara;


            Player.MedicalItemUsed += player.OnMedical;

            Player.UsingMedicalItem  += player.MultiuseMedkit;
            Server.WaitingForPlayers += server.Start;
            Player.Died        += player.OnDie;
            Server.RoundEnded  += player.OnEnd;
            Player.ItemDropped += player.OnItemDropped;
        }
Exemple #29
0
        public void UnregisterEvents()
        {
            Log.Info("Events unregistered");
            if (KeepTheChange.Instance.Config.SpawnCoins)
            {
                Server.RoundStarted -= server.OnRoundStarted;
                server = null;

                Player.InteractingLocker -= player.OnInteractingLocker;
                player = null;
            }

            if (KeepTheChange.Instance.Config.Enable914Upgrades)
            {
                Exiled.Events.Handlers.Scp914.UpgradingItems -= scp914.OnUpgradingItems;
                scp914 = null;
            }
        }
Exemple #30
0
        private void UnregisterEvents()
        {
            Server.WaitingForPlayers -= _serverEvents.OnWaitingForPlayers;
            Server.RoundStarted      -= _serverEvents.OnRoundStarted;
            Server.RoundEnded        -= _serverEvents.OnRoundEnded;

            Player.Left   -= _playerEvents.OnLeave;
            Player.Banned -= _playerEvents.OnBanned;
            Player.Kicked -= _playerEvents.OnKicked;

            Player.Hurting -= _playerEvents.OnHurting;
            Player.EnteringPocketDimension      -= _playerEvents.OnPocketDimensionEnter;
            Player.EscapingPocketDimension      -= _playerEvents.OnPocketDimensionEscape;
            Player.FailingEscapePocketDimension -= _playerEvents.OnPocketDimensionEscapeFailed;
            Player.ActivatingWarheadPanel       -= _playerEvents.OnWarheadPanelActivating;
            Player.Escaping         -= _playerEvents.OnEscape;
            Player.Handcuffing      -= _playerEvents.OnHandcuffing;
            Player.IntercomSpeaking -= _playerEvents.OnIntercomSpeaking;

            _playerEvents = null;
            _serverEvents = null;
        }