Example #1
0
        private void HandleBombPlanted(object sender, BombEventArgs e)
        {
            BombPlantedEvent newEvent = new BombPlantedEvent()
            {
                SteamID = e.Player.SteamID,
                Site    = e.Site
            };

            CurrentTick.Events.Add(newEvent);
        }
Example #2
0
        private void OnBombPlant()
        {
            if (BombCapacity <= 0)
            {
                return;
            }

            --BombCapacity;

            BombPlantedEvent?.Invoke(WorldPosition.xy);
        }