Esempio n. 1
0
        public bool StartGame()
        {
            //Reset Flags
            arena.flagReset();
            flagSpawn();

            gameState = GameState.ActiveGame;
            flagMode  = CTFMode.None;

            ResetKiller(null);
            killStreaks.Clear();

            foreach (Player p in arena.Players)
            {
                PlayerStreak temp = new PlayerStreak();
                temp.lastKillerCount      = 0;
                temp.lastUsedWeap         = null;
                temp.lastUsedWepKillCount = 0;
                temp.lastUsedWepTick      = -1;
                killStreaks.Add(p._alias, temp);
            }

            //Let everyone know
            arena.sendArenaMessage("Game has started!", CFG.flag.resetBong);

            return(true);
        }
Esempio n. 2
0
 public void playerEnter(Player player)
 {
     //Add them to the list if its not in it
     if (!killStreaks.ContainsKey(player._alias))
     {
         PlayerStreak temp = new PlayerStreak();
         temp.lastKillerCount      = 0;
         temp.lastUsedWeap         = null;
         temp.lastUsedWepKillCount = 0;
         temp.lastUsedWepTick      = -1;
         killStreaks.Add(player._alias, temp);
     }
 }
Esempio n. 3
0
 public bool playerJoinGame(Player player)
 {
     //Add them to the list if its not in it
     if (!killStreaks.ContainsKey(player._alias))
     {
         PlayerStreak temp = new PlayerStreak();
         temp.lastKillerCount      = 0;
         temp.lastUsedWeap         = null;
         temp.lastUsedWepKillCount = 0;
         temp.lastUsedWepTick      = -1;
         killStreaks.Add(player._alias, temp);
     }
     return(true);
 }
Esempio n. 4
0
        public void playerEnterArena(Player player)
        {
            if (isOVD)
            {
                player.sendMessage(3, "&Welcome to Offense vs Defense. Please type ?playing if you wish to play!");

                if (player.PermissionLevel > 0 || player._permissionTemp > 0)
                {
                    player.sendMessage(0, "#If you are hosting OvDs, please use *endgame to spec all. This will automatically trigger the playing/not playing scripting");
                }
            }
            //Add them to the list if its not in it
            if (!killStreaks.ContainsKey(player._alias))
            {
                PlayerStreak temp = new PlayerStreak();
                temp.lastKillerCount      = 0;
                temp.lastUsedWeap         = null;
                temp.lastUsedWepKillCount = 0;
                temp.lastUsedWepTick      = -1;
                killStreaks.Add(player._alias, temp);
            }
        }