예제 #1
0
        public void Event_PlayerTurretAttach(SSPlayer attacher, SSPlayer host)
        {
            if (m_Races == null)
            {
                return;
            }
            RaceGame race = getRace(attacher);

            if (race == null)
            {
                return;
            }
            race.Event_PlayerTurretAttach(attacher, host);
        }
예제 #2
0
        public void Event_PlayerLeft(SSPlayer p)
        {
            if (m_Races == null)
            {
                return;
            }
            RaceGame race = getRace(p);

            if (race == null)
            {
                return;
            }
            race.race_PlayerLeaving(p);
        }
예제 #3
0
        public void Event_PlayerFreqChange(SSPlayer p)
        {
            if (m_Races == null)
            {
                return;
            }
            RaceGame race = getRace(p.OldFrequency);

            if (race == null)
            {
                return;
            }

            race.race_PlayerLeaving(p);
        }
예제 #4
0
        //----------------------------------------------------------------------//
        //                           Events                                     //
        //----------------------------------------------------------------------//
        public void Event_PlayerPosition(SSPlayer p)
        {
            if (m_Races == null)
            {
                return;
            }
            RaceGame race = getRace(p);

            if (race == null)
            {
                return;
            }

            race.Event_PlayerPosition(p);
        }
예제 #5
0
        //----------------------------------------------------------------------//
        //                     Race Functions                                   //
        //----------------------------------------------------------------------//
        private void BaseRace_Load(string PlayerName)
        {
            // Create the list
            m_Races = new List <RaceGame>();

            // Config main bd game
            RaceGame pubGame = new RaceGame(msg, psyGame, m_FakeDB, m_Players, m_BaseManager, m_MultiGame, 1);

            pubGame.raceFreq(this.m_FreqStartIndex);
            m_Races.Add(pubGame);

            if (this.m_MultiGame)
            {
            }

            // load and configure stuff to start baseduel module
            psyGame.Send(msg.arena("[ BaseRace ] Module Loaded - " + PlayerName));
            psyGame.Send(msg.arena("[ BaseRace ] MultiGame Toggle: [ " + (this.m_MultiGame ? "On" : "Off") + " ]"));
        }