Ejemplo n.º 1
0
 public static void resetMorph()
 {
     morphTarget = null;
     morphTimer  = 0f;
     if (morphling == null)
     {
         return;
     }
     morphling.SetName(morphling.Data.PlayerName);
     morphling.SetHat(morphling.Data.HatId, (int)morphling.Data.ColorId);
     Helpers.setSkinWithAnim(morphling.MyPhysics, morphling.Data.SkinId);
     morphling.SetPet(morphling.Data.PetId);
     morphling.CurrentPet.Visible = morphling.Visible;
     morphling.SetColor(morphling.Data.ColorId);
 }
Ejemplo n.º 2
0
 public static void resetMorph()
 {
     morphTarget = null;
     morphTimer  = 0f;
     if (morphling == null)
     {
         return;
     }
     morphling.SetName(morphling.PPMOEEPBHJO.PCLLABJCIPC);
     morphling.SetHat(morphling.PPMOEEPBHJO.CPGFLBANALE, (int)morphling.PPMOEEPBHJO.IMMNCAGJJJC);
     Helpers.setSkinWithAnim(morphling.MyPhysics, morphling.PPMOEEPBHJO.CGNMKICGLOG);
     morphling.SetPet(morphling.PPMOEEPBHJO.LBHODBKCBKA);
     morphling.CurrentPet.BDBDGFDELMB = morphling.BDBDGFDELMB;
     morphling.SetColor(morphling.PPMOEEPBHJO.IMMNCAGJJJC);
     morphling.KJAENOGGEOK.material.SetFloat("_Outline", 0f);
 }
Ejemplo n.º 3
0
 public static void resetMorph()
 {
     morphTarget = null;
     morphTimer  = 0f;
     if (morphling == null)
     {
         return;
     }
     morphling.SetName(morphling.IDOFAMCIJKE.HGGCLJHCDBM);
     morphling.SetHat(morphling.IDOFAMCIJKE.MFIOGLKPMGD, (int)morphling.IDOFAMCIJKE.JFHFMIKFHGG);
     Helpers.setSkinWithAnim(morphling.MyPhysics, morphling.IDOFAMCIJKE.LFDAHOFPIAM);
     morphling.SetPet(morphling.IDOFAMCIJKE.GKFOHNJHFOE);
     morphling.CurrentPet.FHBHBMIJFID = morphling.FHBHBMIJFID;
     morphling.SetColor(morphling.IDOFAMCIJKE.JFHFMIKFHGG);
     morphling.LNMJKMLHMIM.material.SetFloat("_Outline", 0f);
 }
Ejemplo n.º 4
0
 public static void resetCamouflage()
 {
     camouflageTimer = 0f;
     foreach (PlayerControl p in PlayerControl.AllPlayerControls)
     {
         if (p == null)
         {
             continue;
         }
         if (Morphling.morphling == null || Morphling.morphling != p)
         {
             p.SetName(p.PPMOEEPBHJO.PCLLABJCIPC);
             p.SetHat(p.PPMOEEPBHJO.CPGFLBANALE, (int)p.PPMOEEPBHJO.IMMNCAGJJJC);
             Helpers.setSkinWithAnim(p.MyPhysics, p.PPMOEEPBHJO.CGNMKICGLOG);
             p.SetPet(p.PPMOEEPBHJO.LBHODBKCBKA);
             p.CurrentPet.BDBDGFDELMB = p.BDBDGFDELMB;
             p.SetColor(p.PPMOEEPBHJO.IMMNCAGJJJC);
         }
     }
 }
Ejemplo n.º 5
0
 public static void resetCamouflage()
 {
     camouflageTimer = 0f;
     foreach (PlayerControl p in PlayerControl.AllPlayerControls)
     {
         if (p == null)
         {
             continue;
         }
         if (Morphling.morphling == null || Morphling.morphling != p)
         {
             p.SetName(p.Data.PlayerName);
             p.SetHat(p.Data.HatId, (int)p.Data.ColorId);
             Helpers.setSkinWithAnim(p.MyPhysics, p.Data.SkinId);
             p.SetPet(p.Data.PetId);
             p.CurrentPet.Visible = p.Visible;
             p.SetColor(p.Data.ColorId);
         }
     }
 }
Ejemplo n.º 6
0
 public static void resetCamouflage()
 {
     camouflageTimer = 0f;
     foreach (PlayerControl p in PlayerControl.AllPlayerControls)
     {
         if (p == null)
         {
             continue;
         }
         if (Morphling.morphling == null || Morphling.morphling != p)
         {
             p.SetName(p.IDOFAMCIJKE.HGGCLJHCDBM);
             p.SetHat(p.IDOFAMCIJKE.MFIOGLKPMGD, (int)p.IDOFAMCIJKE.JFHFMIKFHGG);
             Helpers.setSkinWithAnim(p.MyPhysics, p.IDOFAMCIJKE.LFDAHOFPIAM);
             p.SetPet(p.IDOFAMCIJKE.GKFOHNJHFOE);
             p.CurrentPet.FHBHBMIJFID = p.FHBHBMIJFID;
             p.SetColor(p.IDOFAMCIJKE.JFHFMIKFHGG);
         }
     }
 }
Ejemplo n.º 7
0
        static void camouflageAndMorphActions()
        {
            float oldCamouflageTimer = Camouflager.camouflageTimer;
            float oldMorphTimer      = Morphling.morphTimer;

            Camouflager.camouflageTimer -= Time.deltaTime;
            Morphling.morphTimer        -= Time.deltaTime;

            // Morphling player size not done here

            // Set morphling morphed look
            if (Morphling.morphTimer > 0f && Camouflager.camouflageTimer <= 0f)
            {
                if (Morphling.morphling != null && Morphling.morphTarget != null)
                {
                    Morphling.morphling.nameText.Text = Morphling.morphTarget.IDOFAMCIJKE.HGGCLJHCDBM;
                    Morphling.morphling.LNMJKMLHMIM.material.SetColor("_BackColor", Palette.CHIIBPFJACF[Morphling.morphTarget.IDOFAMCIJKE.JFHFMIKFHGG]);
                    Morphling.morphling.LNMJKMLHMIM.material.SetColor("_BodyColor", Palette.CALCLMEEPGL[Morphling.morphTarget.IDOFAMCIJKE.JFHFMIKFHGG]);
                    Morphling.morphling.LNMJKMLHMIM.material.SetFloat("_Outline", Morphling.morphTarget.LNMJKMLHMIM.material.GetFloat("_Outline"));
                    Morphling.morphling.LNMJKMLHMIM.material.SetColor("_OutlineColor", Morphling.morphTarget.LNMJKMLHMIM.material.GetColor("_OutlineColor"));
                    Morphling.morphling.HatRenderer.SetHat(Morphling.morphTarget.IDOFAMCIJKE.MFIOGLKPMGD, Morphling.morphTarget.IDOFAMCIJKE.JFHFMIKFHGG);
                    Morphling.morphling.nameText.transform.localPosition = new Vector3(0f, (Morphling.morphTarget.IDOFAMCIJKE.MFIOGLKPMGD == 0U) ? 0.7f : 1.05f, -0.5f);

                    if (Morphling.morphling.MyPhysics.Skin.skin.ProdId != DestroyableSingleton <HatManager> .CMJOLNCMAPD.AllSkins[(int)Morphling.morphTarget.IDOFAMCIJKE.LFDAHOFPIAM].ProdId)
                    {
                        Helpers.setSkinWithAnim(Morphling.morphling.MyPhysics, Morphling.morphTarget.IDOFAMCIJKE.LFDAHOFPIAM);
                    }
                    if (Morphling.morphling.CurrentPet == null || Morphling.morphling.CurrentPet.EKONGILOOPE != DestroyableSingleton <HatManager> .CMJOLNCMAPD.AllPets[(int)Morphling.morphTarget.IDOFAMCIJKE.GKFOHNJHFOE].EKONGILOOPE)
                    {
                        if (Morphling.morphling.CurrentPet)
                        {
                            UnityEngine.Object.Destroy(Morphling.morphling.CurrentPet.gameObject);
                        }
                        Morphling.morphling.CurrentPet = UnityEngine.Object.Instantiate <PetBehaviour>(DestroyableSingleton <HatManager> .CMJOLNCMAPD.AllPets[(int)Morphling.morphTarget.IDOFAMCIJKE.GKFOHNJHFOE]);
                        Morphling.morphling.CurrentPet.transform.position = Morphling.morphling.transform.position;
                        Morphling.morphling.CurrentPet.Source             = Morphling.morphling;
                        Morphling.morphling.CurrentPet.FHBHBMIJFID        = Morphling.morphling.FHBHBMIJFID;
                        PlayerControl.SetPlayerMaterialColors(Morphling.morphTarget.IDOFAMCIJKE.JFHFMIKFHGG, Morphling.morphling.CurrentPet.rend);
                    }
                    else if (Morphling.morphling.CurrentPet)
                    {
                        PlayerControl.SetPlayerMaterialColors(Morphling.morphTarget.IDOFAMCIJKE.JFHFMIKFHGG, Morphling.morphling.CurrentPet.rend);
                    }
                }
            }

            // Set camouflaged look (overrides morphling morphed look if existent)
            if (Camouflager.camouflageTimer > 0f)
            {
                foreach (PlayerControl p in PlayerControl.AllPlayerControls)
                {
                    p.nameText.Text = "";
                    p.LNMJKMLHMIM.material.SetColor("_BackColor", Palette.CALCLMEEPGL[6]);
                    p.LNMJKMLHMIM.material.SetColor("_BodyColor", Palette.CALCLMEEPGL[6]);
                    p.LNMJKMLHMIM.material.SetFloat("_Outline", 0f);
                    p.HatRenderer.SetHat(0, 0);
                    Helpers.setSkinWithAnim(p.MyPhysics, 0);
                    bool spawnPet = false;
                    if (p.CurrentPet == null)
                    {
                        spawnPet = true;
                    }
                    else if (p.CurrentPet.EKONGILOOPE != DestroyableSingleton <HatManager> .CMJOLNCMAPD.AllPets[0].EKONGILOOPE)
                    {
                        UnityEngine.Object.Destroy(p.CurrentPet.gameObject);
                        spawnPet = true;
                    }

                    if (spawnPet)
                    {
                        p.CurrentPet = UnityEngine.Object.Instantiate <PetBehaviour>(DestroyableSingleton <HatManager> .CMJOLNCMAPD.AllPets[0]);
                        p.CurrentPet.transform.position = p.transform.position;
                        p.CurrentPet.Source             = p;
                    }
                }
            }

            // Everyone but morphling reset
            if (oldCamouflageTimer > 0f && Camouflager.camouflageTimer <= 0f)
            {
                Camouflager.resetCamouflage();
            }

            // Morphling reset
            if ((oldMorphTimer > 0f || oldCamouflageTimer > 0f) && Camouflager.camouflageTimer <= 0f && Morphling.morphTimer <= 0f && Morphling.morphling != null)
            {
                Morphling.resetMorph();
            }
        }
Ejemplo n.º 8
0
        static void camouflageAndMorphActions()
        {
            float oldCamouflageTimer = Camouflager.camouflageTimer;
            float oldMorphTimer      = Morphling.morphTimer;

            Camouflager.camouflageTimer -= Time.deltaTime;
            Morphling.morphTimer        -= Time.deltaTime;

            // Morphling player size not done here

            // Set morphling morphed look
            if (Morphling.morphTimer > 0f && Camouflager.camouflageTimer <= 0f)
            {
                if (Morphling.morphling != null && Morphling.morphTarget != null)
                {
                    Morphling.morphling.nameText.text = hidePlayerName(PlayerControl.LocalPlayer, Morphling.morphling) ? "" : Morphling.morphTarget.Data.PlayerName;
                    Morphling.morphling.myRend.material.SetColor("_BackColor", Palette.ShadowColors[Morphling.morphTarget.Data.ColorId]);
                    Morphling.morphling.myRend.material.SetColor("_BodyColor", Palette.PlayerColors[Morphling.morphTarget.Data.ColorId]);
                    Morphling.morphling.HatRenderer.SetHat(Morphling.morphTarget.Data.HatId, Morphling.morphTarget.Data.ColorId);
                    Morphling.morphling.nameText.transform.localPosition = new Vector3(0f, (Morphling.morphTarget.Data.HatId == 0U) ? 0.7f : 1.05f, -0.5f);

                    if (Morphling.morphling.MyPhysics.Skin.skin.ProdId != DestroyableSingleton <HatManager> .Instance.AllSkins[(int)Morphling.morphTarget.Data.SkinId].ProdId)
                    {
                        Helpers.setSkinWithAnim(Morphling.morphling.MyPhysics, Morphling.morphTarget.Data.SkinId);
                    }
                    if (Morphling.morphling.CurrentPet == null || Morphling.morphling.CurrentPet.ProdId != DestroyableSingleton <HatManager> .Instance.AllPets[(int)Morphling.morphTarget.Data.PetId].ProdId)
                    {
                        if (Morphling.morphling.CurrentPet)
                        {
                            UnityEngine.Object.Destroy(Morphling.morphling.CurrentPet.gameObject);
                        }
                        Morphling.morphling.CurrentPet = UnityEngine.Object.Instantiate <PetBehaviour>(DestroyableSingleton <HatManager> .Instance.AllPets[(int)Morphling.morphTarget.Data.PetId]);
                        Morphling.morphling.CurrentPet.transform.position = Morphling.morphling.transform.position;
                        Morphling.morphling.CurrentPet.Source             = Morphling.morphling;
                        Morphling.morphling.CurrentPet.Visible            = Morphling.morphling.Visible;
                        PlayerControl.SetPlayerMaterialColors(Morphling.morphTarget.Data.ColorId, Morphling.morphling.CurrentPet.rend);
                    }
                    else if (Morphling.morphling.CurrentPet)
                    {
                        PlayerControl.SetPlayerMaterialColors(Morphling.morphTarget.Data.ColorId, Morphling.morphling.CurrentPet.rend);
                    }
                }
            }

            // Set camouflaged look (overrides morphling morphed look if existent)
            if (Camouflager.camouflageTimer > 0f)
            {
                foreach (PlayerControl p in PlayerControl.AllPlayerControls)
                {
                    p.nameText.text = "";
                    p.myRend.material.SetColor("_BackColor", Palette.PlayerColors[6]);
                    p.myRend.material.SetColor("_BodyColor", Palette.PlayerColors[6]);
                    p.HatRenderer.SetHat(0, 0);
                    Helpers.setSkinWithAnim(p.MyPhysics, 0);
                    bool spawnPet = false;
                    if (p.CurrentPet == null)
                    {
                        spawnPet = true;
                    }
                    else if (p.CurrentPet.ProdId != DestroyableSingleton <HatManager> .Instance.AllPets[0].ProdId)
                    {
                        UnityEngine.Object.Destroy(p.CurrentPet.gameObject);
                        spawnPet = true;
                    }

                    if (spawnPet)
                    {
                        p.CurrentPet = UnityEngine.Object.Instantiate <PetBehaviour>(DestroyableSingleton <HatManager> .Instance.AllPets[0]);
                        p.CurrentPet.transform.position = p.transform.position;
                        p.CurrentPet.Source             = p;
                    }
                }
            }

            // Everyone but morphling reset
            if (oldCamouflageTimer > 0f && Camouflager.camouflageTimer <= 0f)
            {
                Camouflager.resetCamouflage();
            }

            // Morphling reset
            if ((oldMorphTimer > 0f || oldCamouflageTimer > 0f) && Camouflager.camouflageTimer <= 0f && Morphling.morphTimer <= 0f && Morphling.morphling != null)
            {
                Morphling.resetMorph();
            }
        }
Ejemplo n.º 9
0
        static void camouflageAndMorphActions()
        {
            float oldCamouflageTimer = Camouflager.camouflageTimer;
            float oldMorphTimer      = Morphling.morphTimer;

            Camouflager.camouflageTimer -= Time.deltaTime;
            Morphling.morphTimer        -= Time.deltaTime;

            // Morphling player size not done here

            // Set morphling morphed look
            if (Morphling.morphTimer > 0f && Camouflager.camouflageTimer <= 0f)
            {
                if (Morphling.morphling != null && Morphling.morphTarget != null)
                {
                    Morphling.morphling.nameText.text = Morphling.morphTarget.PPMOEEPBHJO.PCLLABJCIPC;
                    Morphling.morphling.KJAENOGGEOK.material.SetColor("_BackColor", Palette.PHFOPNDOEMD[Morphling.morphTarget.PPMOEEPBHJO.IMMNCAGJJJC]);
                    Morphling.morphling.KJAENOGGEOK.material.SetColor("_BodyColor", Palette.AEDCMKGJKAG[Morphling.morphTarget.PPMOEEPBHJO.IMMNCAGJJJC]);
                    Morphling.morphling.KJAENOGGEOK.material.SetFloat("_Outline", Morphling.morphTarget.KJAENOGGEOK.material.GetFloat("_Outline"));
                    Morphling.morphling.KJAENOGGEOK.material.SetColor("_OutlineColor", Morphling.morphTarget.KJAENOGGEOK.material.GetColor("_OutlineColor"));
                    Morphling.morphling.HatRenderer.SetHat(Morphling.morphTarget.PPMOEEPBHJO.CPGFLBANALE, Morphling.morphTarget.PPMOEEPBHJO.IMMNCAGJJJC);
                    Morphling.morphling.nameText.transform.localPosition = new Vector3(0f, (Morphling.morphTarget.PPMOEEPBHJO.CPGFLBANALE == 0U) ? 0.7f : 1.05f, -0.5f);

                    if (Morphling.morphling.MyPhysics.Skin.skin.ProdId != DestroyableSingleton <HatManager> .CHNDKKBEIDG.AllSkins[(int)Morphling.morphTarget.PPMOEEPBHJO.CGNMKICGLOG].ProdId)
                    {
                        Helpers.setSkinWithAnim(Morphling.morphling.MyPhysics, Morphling.morphTarget.PPMOEEPBHJO.CGNMKICGLOG);
                    }
                    if (Morphling.morphling.CurrentPet == null || Morphling.morphling.CurrentPet.OPADMIKFGHK != DestroyableSingleton <HatManager> .CHNDKKBEIDG.AllPets[(int)Morphling.morphTarget.PPMOEEPBHJO.LBHODBKCBKA].OPADMIKFGHK)
                    {
                        if (Morphling.morphling.CurrentPet)
                        {
                            UnityEngine.Object.Destroy(Morphling.morphling.CurrentPet.gameObject);
                        }
                        Morphling.morphling.CurrentPet = UnityEngine.Object.Instantiate <PetBehaviour>(DestroyableSingleton <HatManager> .CHNDKKBEIDG.AllPets[(int)Morphling.morphTarget.PPMOEEPBHJO.LBHODBKCBKA]);
                        Morphling.morphling.CurrentPet.transform.position = Morphling.morphling.transform.position;
                        Morphling.morphling.CurrentPet.Source             = Morphling.morphling;
                        Morphling.morphling.CurrentPet.BDBDGFDELMB        = Morphling.morphling.BDBDGFDELMB;
                        PlayerControl.SetPlayerMaterialColors(Morphling.morphTarget.PPMOEEPBHJO.IMMNCAGJJJC, Morphling.morphling.CurrentPet.rend);
                    }
                    else if (Morphling.morphling.CurrentPet)
                    {
                        PlayerControl.SetPlayerMaterialColors(Morphling.morphTarget.PPMOEEPBHJO.IMMNCAGJJJC, Morphling.morphling.CurrentPet.rend);
                    }
                }
            }

            // Set camouflaged look (overrides morphling morphed look if existent)
            if (Camouflager.camouflageTimer > 0f)
            {
                foreach (PlayerControl p in PlayerControl.AllPlayerControls)
                {
                    p.nameText.text = "";
                    p.KJAENOGGEOK.material.SetColor("_BackColor", Palette.AEDCMKGJKAG[6]);
                    p.KJAENOGGEOK.material.SetColor("_BodyColor", Palette.AEDCMKGJKAG[6]);
                    p.KJAENOGGEOK.material.SetFloat("_Outline", 0f);
                    p.HatRenderer.SetHat(0, 0);
                    Helpers.setSkinWithAnim(p.MyPhysics, 0);
                    bool spawnPet = false;
                    if (p.CurrentPet == null)
                    {
                        spawnPet = true;
                    }
                    else if (p.CurrentPet.OPADMIKFGHK != DestroyableSingleton <HatManager> .CHNDKKBEIDG.AllPets[0].OPADMIKFGHK)
                    {
                        UnityEngine.Object.Destroy(p.CurrentPet.gameObject);
                        spawnPet = true;
                    }

                    if (spawnPet)
                    {
                        p.CurrentPet = UnityEngine.Object.Instantiate <PetBehaviour>(DestroyableSingleton <HatManager> .CHNDKKBEIDG.AllPets[0]);
                        p.CurrentPet.transform.position = p.transform.position;
                        p.CurrentPet.Source             = p;
                    }
                }
            }

            // Everyone but morphling reset
            if (oldCamouflageTimer > 0f && Camouflager.camouflageTimer <= 0f)
            {
                Camouflager.resetCamouflage();
            }

            // Morphling reset
            if ((oldMorphTimer > 0f || oldCamouflageTimer > 0f) && Camouflager.camouflageTimer <= 0f && Morphling.morphTimer <= 0f && Morphling.morphling != null)
            {
                Morphling.resetMorph();
            }
        }