public void LoadEnd() { MenuServers.tBlack = TEX.GetTextureByName("black"); MenuServers.tOrange = TEX.GetTextureByName("orange"); MenuServers.tGray = TEX.GetTextureByName("gray"); MenuServers.tWhite = TEX.GetTextureByName("white"); MenuServers.tBlue = TEX.GetTextureByName("lightblue"); }
public void PostAwake() { TopBar.tBlack = TEX.GetTextureByName("black"); TopBar.tOrange = TEX.GetTextureByName("orange"); TopBar.tBlue = TEX.GetTextureByName("lightblue"); TopBar.tGreen = TEX.GetTextureByName("green"); this.OnResize(); }
public void PostAwake() { ChooseTeam.tAngle0 = TEX.GetTextureByName("GUI/menu_angle0"); ChooseTeam.tAngle1 = TEX.GetTextureByName("GUI/menu_angle1"); ChooseTeam.tWhite = TEX.GetTextureByName("white"); ChooseTeam.tBlack = TEX.GetTextureByName("black"); ChooseTeam.show = false; this.OnResize(); }
public void PostAwake() { this.tBlack = TEX.GetTextureByName("black"); this.tBlue = TEX.GetTextureByName("blue"); this.tRed = TEX.GetTextureByName("red"); this.tBombIconActive = TEX.GetTextureByName("GUI/c4_red"); this.OnResize(); ScoreTop.show = false; }
private void LoadEnd() { BottomBar.tBlack = TEX.GetTextureByName("black"); BottomBar.tWhite = TEX.GetTextureByName("white"); BottomBar.tVolume = TEX.GetTextureByName("volume"); BottomBar.tScreen = TEX.GetTextureByName("widescreen"); BottomBar.tWid = TEX.GetTextureByName("wid"); BottomBar.tLang = TEX.GetTextureByName("lang"); }
public void PostAwake() { MenuBanList.tBlack = TEX.GetTextureByName("black"); MenuBanList.tGray = TEX.GetTextureByName("gray"); MenuBanList.tRed = TEX.GetTextureByName("red"); MenuBanList.tOrange = TEX.GetTextureByName("orange"); this.OnResize(); MenuBanList.show = false; }
public void PostAwake() { Zombie.tInfectedScreen = Resources.Load <Texture2D>("Textures/blood_w"); Zombie.infectionSound = SND.GetSoundByName("zombie_infection"); Zombie.attackSound = SND.GetSoundByName("zombie_attack"); this.tGradient = TEX.GetTextureByName("GUI/left_gradient"); Zombie.infectedScreen = false; this.OnResize(); }
public void PostAwake() { this.tBlack = TEX.GetTextureByName("black"); this.tWhite = TEX.GetTextureByName("white"); this.tGray0 = TEX.GetTextureByName("gray0"); this.tGray2 = TEX.GetTextureByName("gray2"); this.tBlue = TEX.GetTextureByName("blue"); this.tRed = TEX.GetTextureByName("red"); }
public void LoadEnd() { MenuGold.tBlack = TEX.GetTextureByName("black"); MenuGold.tWhite = TEX.GetTextureByName("white"); MenuGold.tBuy = TEX.GetTextureByName("lightblue"); MenuGold.tOrange = TEX.GetTextureByName("orange"); MenuGold.tGray = TEX.GetTextureByName("gray"); MenuGold.tGold = TEX.GetTextureByName("gold_64"); MenuGold.tVK = TEX.GetTextureByName("vk"); }
public void PostAwake() { Profile.tBlack = TEX.GetTextureByName("black"); Profile.tWhite = TEX.GetTextureByName("white"); Profile.tGray = TEX.GetTextureByName("gray"); Profile.tBlue = TEX.GetTextureByName("lightblue"); Profile.tOrange = TEX.GetTextureByName("orange"); Profile.tGreen = TEX.GetTextureByName("green"); this.OnResize(); }
public void PostAwake() { this.LocalPlayer = GameObject.Find("LocalPlayer"); this.tRed = TEX.GetTextureByName("red"); this.tWhite = TEX.GetTextureByName("white"); this.tYellow = TEX.GetTextureByName("yellow"); this.tRadar = TEX.GetTextureByName("warradar"); this.tTeam = TEX.GetTextureByName("teammate"); this.tBombIcon = TEX.GetTextureByName("GUI/c4_orange"); this.OnResize(); }
public void LoadEnd() { TopBar.tHeader_logo = TEX.GetTextureByName("warlogo"); TopBar.tPlay[0] = TEX.GetTextureByName("waricon_play"); TopBar.tPlay[1] = TEX.GetTextureByName("waricon_play_hover"); TopBar.tShop[0] = TEX.GetTextureByName("waricon_shop"); TopBar.tShop[1] = TEX.GetTextureByName("waricon_shop_hover"); TopBar.tOptions[0] = TEX.GetTextureByName("waricon_options"); TopBar.tOptions[1] = TEX.GetTextureByName("waricon_options_hover"); TopBar.tClose = TEX.GetTextureByName("shutdown"); }
private void LoadEnd() { Profile.tGold = TEX.GetTextureByName("gold_64"); Profile.tBadgeBack = TEX.GetTextureByName("warbadge_hor_empty"); Profile.tBadgeIcon = TEX.GetTextureByName("warbadge_icon_empty"); Profile.tPlayer[0] = TEX.GetTextureByName("player"); Profile.tPlayer[1] = TEX.GetTextureByName("player_hover"); Profile.tInventory[0] = TEX.GetTextureByName("inventory"); Profile.tInventory[1] = TEX.GetTextureByName("inventory_hover"); Profile.tMercMask = TEX.GetTextureByName("merc_default"); Profile.tCorpMask = TEX.GetTextureByName("warcorp_default"); }
public void PostAwake() { MenuPlayer.tBlack = TEX.GetTextureByName("black"); MenuPlayer.tBlue = TEX.GetTextureByName("lightblue"); MenuPlayer.tOrange = TEX.GetTextureByName("orange"); MenuPlayer.show = false; MenuPlayer.playermodel = -1; if (ContentLoader_.proceed) { MenuPlayer.show = true; } }
public void PostAwake() { this.tblack = TEX.GetTextureByName("black"); this.twhite = TEX.GetTextureByName("white"); this.tCrosshairHit = TEX.GetTextureByName("GUI/crosshair_hit"); Crosshair.c[0] = new Color(1f, 1f, 1f, 0.75f); Crosshair.c[1] = new Color(1f, 1f, 1f, 0.5f); Crosshair.c[2] = new Color(1f, 1f, 1f, 0.25f); this.OnResize(); Crosshair.offsettime = 0f; Crosshair.SetActive(false); }
private void LoadEnd() { GUIM.fontlist[0] = ContentLoader_.LoadFont("Play-Regular"); GUIM.fontlist[1] = ContentLoader_.LoadFont("Play-Bold"); GUIM.tDebug = TEX.GetTextureByName("red"); GUIM.tBar[0] = TEX.GetTextureByName("tr"); GUIM.tBar[1] = TEX.GetTextureByName("scroll_middle"); GUIM.tBar[2] = TEX.GetTextureByName("tr"); GUIM.tBar[3] = TEX.GetTextureByName("slider_normal"); GUIM.tBar[4] = TEX.GetTextureByName("slider_active"); GUIM.tBar[5] = TEX.GetTextureByName("slider_back"); GUIM.tButton = TEX.GetTextureByName("button"); }
private void LoadEnd() { GameObject gameObject = GameObject.Find("Camera"); if (gameObject && gameObject.GetComponent <AudioSource>()) { gameObject.GetComponent <AudioSource>().clip = ContentLoader_.LoadAudio("maintheme"); gameObject.GetComponent <AudioSource>().Play(); gameObject.GetComponent <AudioSource>().volume = Options.menuvol; } Main.tVig = TEX.GetTextureByName("vig"); MonoBehaviour.print("MAIN.LOADEND"); }
public void LoadEnd() { MenuShop.currData = null; MenuShop.tBlack = TEX.GetTextureByName("black"); MenuShop.tOrange = TEX.GetTextureByName("orange"); MenuShop.tGray = TEX.GetTextureByName("gray"); MenuShop.tWhite = TEX.GetTextureByName("white"); MenuShop.tGreen = TEX.GetTextureByName("green"); MenuShop.apply = TEX.GetTextureByName("apply"); MenuShop.view = TEX.GetTextureByName("search"); MenuShop.tGold = TEX.GetTextureByName("gold_64"); MenuShop.Init(); }
public void PostAwake() { HUD.cs = this; this.tBlack = TEX.GetTextureByName("black"); this.tGray0 = TEX.GetTextureByName("gray0"); this.tWhite = TEX.GetTextureByName("white"); this.tYellow = TEX.GetTextureByName("yellow"); this.tHealthIcon = TEX.GetTextureByName("GUI/health_icon"); this.tArmorIcon = TEX.GetTextureByName("GUI/armor_icon"); this.tAmmoIcon = TEX.GetTextureByName("GUI/ammo_icon"); this.tFGIconOrange = TEX.GetTextureByName("GUI/fg_orange"); this.tFGIconGray = TEX.GetTextureByName("GUI/fg_gray"); this.tFGIconWhite = TEX.GetTextureByName("GUI/fg_white"); this.tFBIconOrange = TEX.GetTextureByName("GUI/fb_orange"); this.tFBIconGray = TEX.GetTextureByName("GUI/fb_gray"); this.tFBIconWhite = TEX.GetTextureByName("GUI/fb_white"); this.tSGIconOrange = TEX.GetTextureByName("GUI/sg_orange"); this.tSGIconGray = TEX.GetTextureByName("GUI/sg_gray"); this.tSGIconWhite = TEX.GetTextureByName("GUI/sg_white"); this.tBombIconNormal = TEX.GetTextureByName("GUI/c4_orange"); this.tBombIconActive = TEX.GetTextureByName("GUI/c4_red"); this.tDiffuseIconNormal = TEX.GetTextureByName("GUI/defuse_orange"); this.tDiffuseIconActive = TEX.GetTextureByName("GUI/defuse_red"); this.tGradientLeft = TEX.GetTextureByName("GUI/left_gradient"); this.tGradientRight = TEX.GetTextureByName("GUI/right_gradient"); this.tAmmoIcon = TEX.GetTextureByName("GUI/bullets_icon"); this.tMoneyIcon = TEX.GetTextureByName("GUI/money_icon"); this.tRed = TEX.GetTextureByName("red"); this.tBlue = TEX.GetTextureByName("blue"); this.OnResize(); HUD.sHealth = "-"; HUD.sArmor = "-"; HUD.sMoney = "0"; HUD.Money = 0; HUD.bombState = 0; HUD.diffuseState = 0; HUD.show = false; if (HUD.a == null) { HUD.a = base.gameObject.AddComponent <AudioSource>(); } if (HUD.briefing == null) { HUD.briefing = ContentLoader_.LoadAudio("briefing"); } if (HUD.champion == null) { HUD.champion = ContentLoader_.LoadAudio("champion"); } }
public void PostAwake() { Main.tBlack = TEX.GetTextureByName("black"); Main.tLoadingBackgr = (Resources.Load("GUI/loading_backgr") as Texture2D); Main.tLoadingCooler = (Resources.Load("GUI/loading_cooler") as Texture2D); Main.tLoadingProgr0 = (Resources.Load("GUI/loading_progr0") as Texture2D); Main.tLoadingProgr1 = (Resources.Load("GUI/loading_progr1") as Texture2D); Main.tLoadingProgr2 = (Resources.Load("GUI/loading_progr2") as Texture2D); Main.tLoadingProgr3 = (Resources.Load("GUI/loading_progr3") as Texture2D); Main.tLoadingProgr4 = (Resources.Load("GUI/loading_progr4") as Texture2D); Main.tLoadingProgr5 = (Resources.Load("GUI/loading_progr5") as Texture2D); Main.tLoadingProgr6 = (Resources.Load("GUI/loading_progr6") as Texture2D); Main.tLoadingProgr7 = (Resources.Load("GUI/loading_progr7") as Texture2D); this.OnResize(); Options.Load(); Options.Apply(); Options.ApplyResolutionOnce(); if (GameData.gSteam) { Steam.Init(); } if (GameData.gSteam) { this.LoadAvatar(); } Main.HideAll(); if (GameData.gSteam) { Main.MainAuthSteam(); } if (GameData.gSteam) { WebHandler.get_servers(); } if (GameData.gSteam && Steam.active && Steam.logged) { Main.MainInventory(); } if (GameData.gSteam) { MenuFriends.Load(); } if (PlayerPrefs.HasKey("reconnect")) { PlayerPrefs.DeleteKey("reconnect"); Application.LoadLevel("game"); } }
public static void SetMaskTexture(int index, MenuShop.CShopData data) { GameObject gameObject; if (index == 0) { gameObject = GameObject.Find(MenuPlayer.goPlayer.name + "/player_merc"); } else { gameObject = GameObject.Find(MenuPlayer.goPlayer.name + "/player_warcorp"); } Texture2D textureByName = TEX.GetTextureByName("_" + data.iconname); gameObject.GetComponent <SkinnedMeshRenderer>().materials[0].SetTexture(0, textureByName); }
public CShopData(int wid, string iconname, string name, int section, string prefabname, int cost, int level = 0) { this.iconname = iconname; this.icon = TEX.GetTextureByName(iconname); if (this.icon == null) { this.icon = TEX.GetTextureByName("red"); } this.name = name; this.name2 = prefabname; this.wid = wid; this.section = section; this.cost = cost; this.level = level; MenuShop.CShopData.catcount[section]++; }
public void PostAwake() { this.tBlack = TEX.GetTextureByName("black"); this.tGray0 = TEX.GetTextureByName("gray0"); this.tLoad = TEX.GetTextureByName("wmload"); this.tLogo = TEX.GetTextureByName("warlogo"); this.tKey0 = TEX.GetTextureByName("wmkey0_" + Lang.GetLanguage()); this.tKey1 = TEX.GetTextureByName("wmkey1_" + Lang.GetLanguage()); if (this.tKey0 == null) { this.tKey0 = TEX.GetTextureByName("wmkey0"); } if (this.tKey1 == null) { this.tKey1 = TEX.GetTextureByName("wmkey1"); } this.OnResize(); EscapeMenu.show = false; }
public void PostAwake() { Award.tWhite = TEX.GetTextureByName("white"); Award.tAwardBack = TEX.GetTextureByName("kill_spray"); Award.tAwardTeam0[0] = TEX.GetTextureByName("kill_headshot_orange"); Award.tAwardTeam1[0] = TEX.GetTextureByName("kill_headshot_blue"); Award.tAwardTeam0[1] = TEX.GetTextureByName("kill_bloodsteel_orange"); Award.tAwardTeam1[1] = TEX.GetTextureByName("kill_bloodsteel_blue"); Award.tAwardTeam0[2] = TEX.GetTextureByName("kill_doublekill_orange"); Award.tAwardTeam1[2] = TEX.GetTextureByName("kill_doublekill_blue"); Award.tAwardTeam0[3] = TEX.GetTextureByName("kill_triplekill_orange"); Award.tAwardTeam1[3] = TEX.GetTextureByName("kill_triplekill_blue"); Award.tAwardTeam0[4] = TEX.GetTextureByName("kill_megakill_orange"); Award.tAwardTeam1[4] = TEX.GetTextureByName("kill_megakill_blue"); Award.tAwardTeam0[5] = TEX.GetTextureByName("kill_niceone_orange"); Award.tAwardTeam1[5] = TEX.GetTextureByName("kill_niceone_blue"); Award.sAssist = Lang.Get("_ASSIST"); Award.lastaward = 0; this.OnResize(); }
private void Start() { MapLoader.cs = this; this.LoadEnd(); this.tKey0 = TEX.GetTextureByName("wmkey0_" + Lang.GetLanguage()); this.tKey1 = TEX.GetTextureByName("wmkey1_" + Lang.GetLanguage()); this.tLoad = TEX.GetTextureByName("wmload"); this.tGray = TEX.GetTextureByName("gray0"); if (this.tKey0 == null) { this.tKey0 = TEX.GetTextureByName("wmkey0"); } if (this.tKey1 == null) { this.tKey1 = TEX.GetTextureByName("wmkey1"); } for (int i = 0; i < 9; i++) { this.tNumbers[i] = TEX.GetTextureByName("progress" + i.ToString()); } }
public static void SetSkin(GameObject go, string name) { Texture2D textureByName = TEX.GetTextureByName(name); Texture2D texture2D = null; if (textureByName == null) { TEX.GetTextureByName("white"); } if (name == "glock17_camo_badboy") { texture2D = TEX.GetTextureByName(name + "_s"); } Component[] componentsInChildren = go.GetComponentsInChildren(typeof(Renderer)); for (int i = 0; i < componentsInChildren.Length; i++) { Renderer renderer = (Renderer)componentsInChildren[i]; renderer.materials[0].SetTexture(0, textureByName); if (texture2D) { renderer.materials[0].SetTexture("_SpecGlossMap", texture2D); } } }
public void LoadEnd() { MenuPreview.tBlack = TEX.GetTextureByName("black"); }
public void PostAwake() { global::Console.cs = this; this.tblack = TEX.GetTextureByName("black"); this.OnResize(); }
public void LoadEnd() { MenuOptions.tBlack = TEX.GetTextureByName("black"); MenuOptions.tWhite = TEX.GetTextureByName("white"); MenuOptions.tGray = TEX.GetTextureByName("gray"); }
private void ParsingCommand(string cmd) { this.AddLogString(cmd); this.inputstore = cmd; string[] array = cmd.Split(new char[] { ' ' }); if (array[0] == "map") { if (array.Length != 2) { return; } MapLoader mapLoader = (MapLoader)UnityEngine.Object.FindObjectOfType(typeof(MapLoader)); PlayerPrefs.SetInt("localplay", 1); mapLoader.Load(array[1]); } else if (array[0] == "devmap") { if (array.Length != 2) { return; } MapLoader mapLoader2 = (MapLoader)UnityEngine.Object.FindObjectOfType(typeof(MapLoader)); PlayerPrefs.SetInt("localplay", 2); mapLoader2.DevLoad(array[1]); } else if (array[0] == "team") { if (array.Length != 3) { return; } int num = 0; int num2 = 0; if (!int.TryParse(array[1], out num)) { return; } if (!int.TryParse(array[2], out num2)) { return; } if (num < 0 || num >= 2) { return; } if (num2 < 0 || num2 >= 8) { return; } UnityEngine.Object[] array2 = UnityEngine.Object.FindObjectsOfType(typeof(Spawn)); List <Spawn> list = new List <Spawn>(); List <Spawn> list2 = new List <Spawn>(); UnityEngine.Object[] array3 = array2; for (int i = 0; i < array3.Length; i++) { Spawn spawn = (Spawn)array3[i]; if (spawn.Team == 0) { list.Add(spawn); } else if (spawn.Team == 1) { list2.Add(spawn); } } GameObject gameObject = null; if (num == 0) { if (num2 >= list.Count) { return; } gameObject = list[num2].gameObject; } else if (num == 1) { if (num2 >= list2.Count) { return; } gameObject = list2[num2].gameObject; } MonoBehaviour.print("spawn"); GameObject gameObject2 = GameObject.Find("LocalPlayer"); vp_FPCamera vp_FPCamera = (vp_FPCamera)UnityEngine.Object.FindObjectOfType(typeof(vp_FPCamera)); gameObject2.transform.position = gameObject.transform.position; vp_FPCamera.SetRotation(new Vector2(0f, gameObject.transform.eulerAngles.y), true, true); } else if (array[0] == "sky") { if (array.Length != 2) { return; } } else if (array[0] == "sun_shadowbias" || array[0] == "sun_shadows") { if (array.Length != 2) { return; } UnityEngine.Object[] array4 = UnityEngine.Object.FindObjectsOfType(typeof(Light)); Light light = null; UnityEngine.Object[] array5 = array4; for (int j = 0; j < array5.Length; j++) { Light light2 = (Light)array5[j]; if (light2.type == LightType.Directional) { light = light2; break; } } if (light == null) { return; } if (array[0] == "sun_shadowbias") { float shadowBias = 0f; if (!float.TryParse(array[1], out shadowBias)) { return; } light.shadowBias = shadowBias; } if (array[0] == "sun_shadows") { int num3 = 0; if (!int.TryParse(array[1], out num3)) { return; } switch (num3) { case 0: light.shadows = LightShadows.None; break; case 1: light.shadows = LightShadows.Hard; break; case 2: light.shadows = LightShadows.Soft; break; } } } if (array[0] == "shadow_cascades") { if (array.Length != 2) { return; } int num4 = 0; if (!int.TryParse(array[1], out num4)) { return; } switch (num4) { case 0: QualitySettings.shadowCascades = 0; break; case 1: QualitySettings.shadowCascades = 2; break; case 2: QualitySettings.shadowCascades = 4; break; } } if (array[0] == "shadow_distance") { if (array.Length != 2) { return; } int num5 = 0; if (!int.TryParse(array[1], out num5)) { return; } QualitySettings.shadowDistance = (float)num5; } if (array[0] == "shadow_projection") { if (array.Length != 2) { return; } int num6 = 0; if (!int.TryParse(array[1], out num6)) { return; } int num7 = num6; if (num7 != 0) { if (num7 == 1) { QualitySettings.shadowProjection = ShadowProjection.StableFit; } } else { QualitySettings.shadowProjection = ShadowProjection.CloseFit; } } if (array[0] == "fx_ssao") { if (array.Length != 2) { return; } if (global::Console.ssao == null) { global::Console.ssao = (ScreenSpaceAmbientOcclusion)UnityEngine.Object.FindObjectOfType(typeof(ScreenSpaceAmbientOcclusion)); } if (global::Console.ssao == null) { return; } int num8 = 0; if (!int.TryParse(array[1], out num8)) { return; } if (num8 > 0) { global::Console.ssao.enabled = true; } else { global::Console.ssao.enabled = false; } } if (array[0] == "fx_sharpness") { if (array.Length != 2) { return; } if (global::Console.sharpness == null) { global::Console.sharpness = (ContrastEnhance)UnityEngine.Object.FindObjectOfType(typeof(ContrastEnhance)); } if (global::Console.sharpness == null) { return; } int num9 = 0; if (!int.TryParse(array[1], out num9)) { return; } if (num9 > 0) { global::Console.sharpness.enabled = true; } else { global::Console.sharpness.enabled = false; } } if (array[0] == "fx_noise") { if (array.Length != 2) { return; } if (global::Console.noise == null) { global::Console.noise = (NoiseAndGrain)UnityEngine.Object.FindObjectOfType(typeof(NoiseAndGrain)); } if (global::Console.noise == null) { return; } int num10 = 0; if (!int.TryParse(array[1], out num10)) { return; } if (num10 > 0) { global::Console.noise.enabled = true; } else { global::Console.noise.enabled = false; } } if (array[0] == "fx_tone") { if (array.Length != 2) { return; } if (global::Console.tone == null) { global::Console.tone = (Tonemapping)UnityEngine.Object.FindObjectOfType(typeof(Tonemapping)); } if (global::Console.tone == null) { return; } int num11 = 0; if (!int.TryParse(array[1], out num11)) { return; } if (num11 > 0) { global::Console.tone.enabled = true; } else { global::Console.tone.enabled = false; } } if (array[0] == "fx_vig") { if (array.Length != 2) { return; } if (global::Console.vig == null) { global::Console.vig = (VignetteAndChromaticAberration)UnityEngine.Object.FindObjectOfType(typeof(VignetteAndChromaticAberration)); } if (global::Console.vig == null) { return; } int num12 = 0; if (!int.TryParse(array[1], out num12)) { return; } if (num12 > 0) { global::Console.vig.enabled = true; } else { global::Console.vig.enabled = false; } } if (array[0] == "fx_dl") { if (array.Length != 2) { return; } if (global::Console.dl == null) { global::Console.dl = GameObject.Find("Directional light"); } if (global::Console.dl == null) { return; } int num13 = 0; if (!int.TryParse(array[1], out num13)) { return; } if (num13 > 0) { global::Console.dl.SetActive(true); } else { global::Console.dl.SetActive(false); } } if (array[0] == "fx_shadowweapon") { if (array.Length != 2) { return; } GameObject gameObject3 = GameObject.Find("maplight"); if (gameObject3) { gameObject3.SetActive(false); } } if (array[0] == "fx_lightweapon") { if (array.Length != 2) { return; } GameObject gameObject4 = GameObject.Find("lights"); if (gameObject4) { gameObject4.SetActive(false); } } if (array[0] == "devconnect") { PlayerPrefs.SetInt("localplay", 0); array[0] = "connect"; } if (array[0] == "connect") { if (array.Length < 3) { Client.cs.Connect(); return; } Client.IP = array[1]; int.TryParse(array[2], out Client.PORT); if (array.Length == 4) { Client.PASSWORD = array[3]; } else { Client.PASSWORD = string.Empty; } Client.cs.Connect(); } if (array[0] == "deadcam") { DeadCam.SetActive(true); } if (array[0] == "test") { Award.SetPoints(100); Award.SetCustomPoints(23, 0); } if (array[0] == "sens") { if (array.Length != 2) { return; } float num14; if (!float.TryParse(array[1], out num14)) { return; } vp_FPCamera.SetMouseSensitivity(num14); Options.sens = num14; PlayerPrefs.SetFloat("sens", num14); } if (array[0] == "zoomsens") { if (array.Length != 2) { return; } float num15; if (!float.TryParse(array[1], out num15)) { return; } vp_FPCamera.SetZoomSensitivity(num15); Options.zoomsens = num15; PlayerPrefs.SetFloat("zoomsens", num15); } if (array[0] == "disconnect") { GameObject gameObject5 = GameObject.Find("LocalPlayer"); GameObject gameObject6 = GameObject.Find("Sky"); GameObject gameObject7 = GameObject.Find("Sky Manager"); GameObject gameObject8 = GameObject.Find("GUI"); GameObject gameObject9 = GameObject.Find("Core"); if (gameObject5) { UnityEngine.Object.Destroy(gameObject5); } if (gameObject6) { UnityEngine.Object.Destroy(gameObject6); } if (gameObject7) { UnityEngine.Object.Destroy(gameObject7); } if (gameObject8) { UnityEngine.Object.Destroy(gameObject8); } if (gameObject9) { UnityEngine.Object.Destroy(gameObject9); } Client.cs.CloseClient(); Application.LoadLevel("main"); Screen.lockCursor = false; Cursor.visible = true; } if (array[0] == "crosshair_size") { if (array.Length != 2) { return; } int crosshairSize; if (!int.TryParse(array[1], out crosshairSize)) { return; } Crosshair.SetCrosshairSize(crosshairSize); } if (array[0] == "crosshair_color") { if (array.Length != 4) { return; } int r; if (!int.TryParse(array[1], out r)) { return; } int g; if (!int.TryParse(array[2], out g)) { return; } int b; if (!int.TryParse(array[3], out b)) { return; } Crosshair.SetCrosshairColor(r, g, b); } if (array[0] == "disableskymanager") { } if (array[0] == "atest") { Award.SetDeath(26, 0); } if (array[0] == "chat") { if (array.Length != 2) { return; } int num16; if (!int.TryParse(array[1], out num16)) { return; } if (num16 == 0) { Message.blockchat = true; } else { Message.blockchat = false; } } if (array[0] == "hud") { if (array.Length != 2) { return; } int num17 = 0; if (!int.TryParse(array[1], out num17)) { return; } if (num17 == 0 || num17 == 2) { HUD.ForceHide(true); Crosshair.ForceHide(true); Message.ForceHide(true); ScoreTop.SetActive(false); PlayerNames.SetActive(false); GameObject gameObject10 = GameObject.Find("WeaponCamera"); if (num17 == 2) { gameObject10.GetComponent <Camera>().cullingMask = -2147483648; Crosshair.ForceHide(false); } else { gameObject10.GetComponent <Camera>().cullingMask = 0; } } else if (num17 == 3) { HUD.ForceHide(true); Crosshair.ForceHide(true); Message.ForceHide(false); ScoreTop.SetActive(true); PlayerNames.SetActive(true); GameObject gameObject11 = GameObject.Find("WeaponCamera"); gameObject11.GetComponent <Camera>().cullingMask = 0; } else { HUD.ForceHide(false); Crosshair.ForceHide(false); Message.ForceHide(false); ScoreTop.SetActive(true); PlayerNames.SetActive(true); GameObject gameObject12 = GameObject.Find("WeaponCamera"); gameObject12.GetComponent <Camera>().cullingMask = -2147483648; } } if (array[0] == "spectator") { if (array.Length != 2) { return; } int num18 = 0; if (!int.TryParse(array[1], out num18)) { return; } if (num18 == 1) { SpecCam.show = true; Client.cs.send_chooseteam(255); GameObject gameObject13 = GameObject.Find("WeaponCamera"); gameObject13.GetComponent <Camera>().cullingMask = 0; } else { SpecCam.show = false; Client.cs.send_chooseteam(3); GameObject gameObject14 = GameObject.Find("WeaponCamera"); gameObject14.GetComponent <Camera>().cullingMask = -2147483648; } } if (array[0] == "m_steps") { if (array.Length != 2) { return; } int num19 = 0; if (!int.TryParse(array[1], out num19)) { return; } if (num19 > 20) { num19 = 20; } if (num19 < 1) { num19 = 1; } vp_FPCamera.MouseSmoothSteps = num19; } if (array[0] == "m_weight") { if (array.Length != 2) { return; } float num20 = 0f; if (!float.TryParse(array[1], out num20)) { return; } if (num20 > 1f) { num20 = 1f; } if (num20 < 0f) { num20 = 0f; } vp_FPCamera.MouseSmoothWeight = num20; } if (array[0] == "extralod") { if (array.Length != 2) { return; } int num21 = 0; if (!int.TryParse(array[1], out num21)) { return; } if (num21 == 0) { PlayerControll.extralod = false; } else { PlayerControll.extralod = true; } } if (array[0] == "showfps") { if (array.Length != 2) { return; } int num22 = 0; if (!int.TryParse(array[1], out num22)) { return; } if (num22 == 0) { global::Console.showfps = false; } else { global::Console.showfps = true; } } if (array[0] == "ping") { if (PlayerPrefs.GetString("devpass") != "6f66a0d73e9894e62fe0ee48c209911b") { return; } if (array.Length != 2) { return; } int num23 = 0; if (!int.TryParse(array[1], out num23)) { return; } PlayerPrefs.SetInt("ShowPing", num23); if (num23 == 1) { global::Ping.cs.ShowPing(true); } else { global::Ping.cs.ShowPing(false); } } if (array[0] == "nord") { if (array.Length != 2) { return; } int num24 = 0; if (!int.TryParse(array[1], out num24)) { return; } if (num24 == 0) { PlayerControll.nord = false; } else { PlayerControll.nord = true; } } if (array[0] == "devunlock") { } if (array[0] == "devnext") { } if (array[0] == "forcewin") { Client.cs.send_consolecmd(array[0], string.Empty); } if (array[0] == "name") { if (array.Length != 2) { return; } MonoBehaviour.print(array[0] + array[1]); Client.cs.send_consolecmd(array[0], array[1]); } else if (array[0] == "kill") { Client.cs.send_consolecmd(array[0], string.Empty); } else if (array[0] == "rcon") { if (array.Length != 2) { return; } Client.cs.send_consolecmd(array[0], array[1]); } else if (array[0] == "kick") { if (array.Length != 2) { return; } Client.cs.send_consolecmd(array[0], array[1]); } else if (array[0] == "banlist") { Client.cs.send_consolecmd(array[0], string.Empty); } else if (array[0] == "ban") { if (array.Length != 2) { return; } Client.cs.send_consolecmd(array[0], array[1]); } else if (array[0] == "password") { if (array.Length != 2) { return; } Client.cs.send_consolecmd(array[0], array[1]); } else if (array[0] == "startmoney") { if (array.Length != 2) { return; } int num25; if (!int.TryParse(array[1], out num25)) { return; } Client.cs.send_consolecmd(array[0], array[1]); } else if (array[0] == "fraglimit") { if (array.Length != 2) { return; } int num26; if (!int.TryParse(array[1], out num26)) { return; } Client.cs.send_consolecmd(array[0], array[1]); } else if (array[0] == "rr" || array[0] == "restart") { Client.cs.send_consolecmd(array[0], string.Empty); } else if (array[0] == "live") { Client.cs.send_consolecmd(array[0], string.Empty); } else if (array[0] == "skin_test") { if (array.Length != 2) { return; } Texture2D textureByName = TEX.GetTextureByName(array[1]); vp_FPWeapon vp_FPWeapon = (vp_FPWeapon)UnityEngine.Object.FindObjectOfType(typeof(vp_FPWeapon)); if (vp_FPWeapon.m_WeaponCoreModel != null && textureByName != null) { Component[] componentsInChildren = vp_FPWeapon.m_WeaponCoreModel.GetComponentsInChildren(typeof(Renderer)); for (int k = 0; k < componentsInChildren.Length; k++) { Renderer renderer = (Renderer)componentsInChildren[k]; if (!(renderer.name == "merc_hands")) { if (!(renderer.name == "warcorp_hands")) { renderer.materials[0].SetTexture(0, textureByName); } } } } } }