Esempio n. 1
0
 void DropIntel()
 {
     if (intel != null)
     {
         intel.Drop(yeet: true);
         intel.IsIconVisible = true;
         intel = null;
         DashCMD.WriteLine("[SPPlayer] Dropped the intel", ConsoleColor.Green);
     }
 }
        void R_IntelCaptured(NetConnection server, NetBuffer data, ushort numArgs)
        {
            Team team = (Team)data.ReadByte();

            if (team == Team.A)
            {
                redIntel.Drop();
                redIntel.IsIconVisible = true;
            }
            else
            {
                blueIntel.Drop();
                blueIntel.IsIconVisible = true;
            }

            OurPlayerHasIntel = false;

            string teamStr = team == Team.A ? "Red" : "Blue";

            Screen.ShowAnnouncement(string.Format("The {0} intel has been captured!", teamStr), 5f, false);

            intelAudioSource?.Play();
        }