Exemplo n.º 1
0
 protected virtual void Awake()
 {
     m_wordSource = GetComponent <AudioSource> ();
     m_sequencer  = GetComponent <SoundObjectSequencer> ();
     m_highlight  = GetComponent <Highlighter> ();
     m_highlight.ConstantParams(HighlightColour);
 }
Exemplo n.º 2
0
 // Token: 0x06000006 RID: 6 RVA: 0x00002810 File Offset: 0x00000A10
 public static void ToggleGlowPlayers()
 {
     EspMenu.PlayersGlow = !EspMenu.PlayersGlow;
     foreach (Player player in FindObjectsOfType <Player>())
     {
         if (!(Player.player.name == player.name))
         {
             Highlighter highlighter = player.gameObject.GetComponent <Highlighter>();
             if (!EspMenu.PlayersGlow)
             {
                 highlighter.ConstantOffImmediate();
             }
             else
             {
                 if (highlighter == null)
                 {
                     highlighter = player.gameObject.AddComponent <Highlighter>();
                 }
                 highlighter.ConstantParams(Color.red);
                 highlighter.OccluderOn();
                 highlighter.SeeThroughOn();
                 highlighter.ConstantOn();
             }
         }
     }
 }
Exemplo n.º 3
0
 // Token: 0x06000002 RID: 2 RVA: 0x000020E8 File Offset: 0x000002E8
 private void FindObjects()
 {
     this._players = FindObjectsOfType <Player>();
     if (EspMenu.PlayersGlow)
     {
         foreach (Player player in this._players)
         {
             if (!(Player.player.name == player.name) && player.gameObject.GetComponent <Highlighter>() == null)
             {
                 Highlighter highlighter = player.gameObject.AddComponent <Highlighter>();
                 highlighter.ConstantParams(Color.red);
                 highlighter.OccluderOn();
                 highlighter.SeeThroughOn();
                 highlighter.ConstantOn();
             }
         }
     }
     this._zombies = FindObjectsOfType <Zombie>();
     if (EspMenu.ZombieGlow)
     {
         foreach (Zombie zombie in this._zombies)
         {
             if (zombie.gameObject.GetComponent <Highlighter>() == null)
             {
                 Highlighter highlighter2 = zombie.gameObject.AddComponent <Highlighter>();
                 highlighter2.ConstantParams(Color.blue);
                 highlighter2.OccluderOn();
                 highlighter2.SeeThroughOn();
                 highlighter2.ConstantOn();
             }
         }
     }
     if (EspMenu.ShowItems)
     {
         this._items = FindObjectsOfType <InteractableItem>();
     }
     if (EspMenu.ShowVehicles)
     {
         this._vehicles = FindObjectsOfType <InteractableVehicle>();
     }
 }
Exemplo n.º 4
0
 // Token: 0x06000007 RID: 7 RVA: 0x000028A8 File Offset: 0x00000AA8
 public static void ToggleGlowZombies()
 {
     EspMenu.ZombieGlow = !EspMenu.ZombieGlow;
     foreach (Zombie zombie in FindObjectsOfType <Zombie>())
     {
         Highlighter highlighter = zombie.gameObject.GetComponent <Highlighter>();
         if (!EspMenu.ZombieGlow)
         {
             highlighter.ConstantOffImmediate();
         }
         else
         {
             if (highlighter == null)
             {
                 highlighter = zombie.gameObject.AddComponent <Highlighter>();
             }
             highlighter.ConstantParams(Color.blue);
             highlighter.OccluderOn();
             highlighter.SeeThroughOn();
             highlighter.ConstantOn();
         }
     }
 }