ticzz

Skybox Changer

Dec 22nd, 2021 (edited)
858
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.01 KB | None | 0 0
  1. --[[
  2.         Skybox Changer for Aimware
  3.  
  4.         Download for the skyboxes used in script                --> https://mega.nz/file/yLQxFIJC#eVdoc9Fwx_BPcJxt6vBNi0PQ0Sc9tunXesdTM_vt2tI
  5.        
  6.         Open Skybox.rar and drag skybox folder into         --> steamapps\common\Counter-Strike Global Offensive\csgo\materials\
  7.         so that the final path looks like this                          --> steamapps\common\Counter-Strike Global Offensive\csgo\materials\skybox\
  8.        
  9.         Now copy the .vmt and .vtf files into the skybox folder and add them to the Script..
  10.         You just need to add a new entry to local skyboxes list and call it like the skybox file is named (without the last three letters and without the file extension)  
  11.         and you also need to add a new entry in the local skyboxesMenu list. This is how the new skybox will be called in the Aimware Menu.
  12.         it´s very easy..
  13.        
  14.         PS: if u want more/other skyboxes u can go to            --> https://gamebanana.com/mods/cats/653
  15. ]]--
  16.  
  17. local ref = gui.Reference("Visuals", "World", "Materials", "Skybox")
  18.  
  19. local skyboxes = { "", "amethyst", "dreamyocean", "greenscreen", "night2", "night5", "projektd", "sky_descent", "otherworld", "sky091",
  20. "space_1", "space_3", "space_4", "space_5", "space_6", "space_7", "space_8", "space_9", "space_10", "space_13"};
  21.  
  22.  
  23. local skyboxesMenu = { "Default", "Amethyst", "Dreamy Ocean", "Greenscreen", "Night 2", "Night 5", "pAnime", "Galaxy", "Other World", "Sky091",
  24. "Space 1", "Space 3", "Space 4", "Space 5", "Space 6", "Space 7", "Space 8", "Space 9", "Space 10", "Space 13"};
  25.  
  26.  
  27. ref:SetOptions(unpack(skyboxesMenu));
  28.  
  29. local set = client.SetConVar;
  30.  
  31. local last = ref:GetValue();
  32.  
  33.  
  34. local function SkyBox()
  35.  
  36.     if last ~= ref:GetValue() then
  37.  
  38.         set("sv_skyname" , skyboxes[ref:GetValue() + 1], true);
  39.  
  40.         last = ref:GetValue();
  41.  
  42.     end
  43.  
  44. end
  45.  
  46.  
  47. callbacks.Register("Unload", function()
  48.    
  49.     client.SetConVar("sv_skyname" , skyboxes[ref:SetValue(0)], true)
  50.  
  51. end)
  52.  
  53. --fixed skybox unloading.. now the default skybox will be activated if u unload/reset the script!!  [12/23/2021]
Add Comment
Please, Sign In to add comment