Raised This Month: $32 Target: $400
 8% 

[CSGO] Client Skybox


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Deathknife
Senior Member
Join Date: Aug 2014
Plugin ID:
5285
Plugin Version:
1.01
Plugin Category:
Fun Stuff
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allows clients to change their skybox, saves their choice.
    Old 07-18-2016 , 14:52   [CSGO] Client Skybox
    Reply With Quote #1

    Description
    Allows clients to change their skybox, saves their choice. Built for CS:GO, but other HL2 games might work.

    Installation
    1. Place skybox.smx in your plugins folder
    2. Configure skybox.ini to your liking
    3. Place skybox.ini in your sourcemod/configs/ folder
    4. Restart map
    5. Enjoy!

    Configuration
    An example of skybox.ini is included, with a package of skyboxes.

    Note: Skyboxes have to be in:
    materials/skybox/

    Commands
    Chat commands:
    !skybox !sky /skybox /sky
    Console commands:
    sm_skybox sm_sky

    ConVars
    sm_skybox_reopenmenu - If enabled, it will re-open the skybox menu whenever a client chooses a skybox.

    Screenshots
    https://steamcommunity.com/sharedfil.../?id=727068398
    https://steamcommunity.com/sharedfil.../?id=727068373
    https://steamcommunity.com/sharedfil.../?id=727068348
    https://steamcommunity.com/sharedfil.../?id=727068318
    https://steamcommunity.com/sharedfil.../?id=727068298
    https://steamcommunity.com/sharedfil.../?id=727068277
    https://steamcommunity.com/sharedfil.../?id=727068222
    https://steamcommunity.com/sharedfil.../?id=727068250
    https://steamcommunity.com/sharedfil.../?id=727068191
    https://steamcommunity.com/sharedfil.../?id=727068161
    https://steamcommunity.com/sharedfil.../?id=727068002
    https://steamcommunity.com/sharedfil.../?id=727067859
    https://steamcommunity.com/sharedfil.../?id=727067770
    https://steamcommunity.com/sharedfil.../?id=727067830

    Download
    Github Repository
    Or use attachments (skyboxes not included because file too large)

    Google Drive


    Special thanks to Crowii for allowing it to go public. <3

    New in v1.01:
    *Fixed a typo that wouldn't compile
    -removed sky_apote01_hdr from skybox.ini by default because it's really large compared to others. If you want to use it, just uncomment it.

    Attached Files
    File Type: sp Get Plugin or Get Source (skybox.sp - 4821 views - 4.2 KB)
    File Type: ini skybox.ini (2.2 KB, 2655 views)
    __________________

    Last edited by Deathknife; 07-19-2016 at 09:47.
    Deathknife is offline
    Deathknife
    Senior Member
    Join Date: Aug 2014
    Old 07-19-2016 , 09:33   Re: [CSGO] Client Skybox
    Reply With Quote #2

    Quote:
    Originally Posted by abrandnewday View Post
    I'm not sure if it'd work with TF2. I know that when setting sv_skyname via RCON on a server, you have to leave and rejoin to see the new skybox. I'm not sure if it'd do that clientside, I've not tested it.

    It might though...
    In that case, they will probably have to rejoin or wait till map change to see effect. This plugin simply sets sv_skyname to appriopriate skybox for that client. In CS:GO, it updates immediately.
    __________________
    Deathknife is offline
    Potato Uno
    Veteran Member
    Join Date: Jan 2014
    Location: Atlanta, Georgia
    Old 07-19-2016 , 10:41   Re: [CSGO] Client Skybox
    Reply With Quote #3

    It works on tf2 if you use it as a global manager and not allow it per-client.

    That is, you set the cvar "sv_skyname" in OnConfigsExecuted (or earlier, if possible) right before a client connects in.

    But as for per-client configurations, not possible in TF2. Still, the concept is there for anyone to use in TF2.
    Potato Uno is offline
    sneaK
    SourceMod Moderator
    Join Date: Feb 2015
    Location: USA
    Old 07-19-2016 , 11:08   Re: [CSGO] Client Skybox
    Reply With Quote #4

    Hey deathknife, this is a sweet plugin, I remember using one similar years ago back in 1.6 and everyone loved it.

    A couple questions, does this apply your selected skybox to every map, or only for whatever map you chose a skybox on?

    Also, is it possible to add a "reset sky" option back to the map default? This would be especially helpful for maps that have custom skyboxes packed in with the bsp, that wouldn't be selectable.

    Last edited by sneaK; 07-19-2016 at 11:08.
    sneaK is offline
    Deathknife
    Senior Member
    Join Date: Aug 2014
    Old 07-19-2016 , 11:32   Re: [CSGO] Client Skybox
    Reply With Quote #5

    Quote:
    Originally Posted by blackhawk74 View Post
    Hey deathknife, this is a sweet plugin, I remember using one similar years ago back in 1.6 and everyone loved it.

    A couple questions, does this apply your selected skybox to every map, or only for whatever map you chose a skybox on?

    Also, is it possible to add a "reset sky" option back to the map default? This would be especially helpful for maps that have custom skyboxes packed in with the bsp, that wouldn't be selectable.
    It applies your selected skybox to every map. There already is "Map Default" at #1 which just sends the server's sv_skyname to the client.
    __________________
    Deathknife is offline
    sneaK
    SourceMod Moderator
    Join Date: Feb 2015
    Location: USA
    Old 07-19-2016 , 13:08   Re: [CSGO] Client Skybox
    Reply With Quote #6

    Quote:
    Originally Posted by Deathknife View Post
    It applies your selected skybox to every map. There already is "Map Default" at #1 which just sends the server's sv_skyname to the client.
    Ahh awesome, didn't realize that was an option. Would there be a way to save players preferences on a per-map basis instead of blanketed for all maps?
    sneaK is offline
    Unbelievable
    Senior Member
    Join Date: Jan 2016
    Old 07-19-2016 , 19:30   Re: [CSGO] Client Skybox
    Reply With Quote #7

    great plugin
    Unbelievable is offline
    Crowii
    Member
    Join Date: Nov 2015
    Location: England.
    Old 07-20-2016 , 14:19   Re: [CSGO] Client Skybox
    Reply With Quote #8

    Quote:
    Originally Posted by Unbelievable View Post
    great plugin
    You're welcome.
    Crowii is offline
    Unbelievable
    Senior Member
    Join Date: Jan 2016
    Old 07-21-2016 , 13:43   Re: [CSGO] Client Skybox
    Reply With Quote #9

    Quote:
    Originally Posted by Crowii View Post
    You're welcome.
    thnx mate
    Unbelievable is offline
    Potato Uno
    Veteran Member
    Join Date: Jan 2014
    Location: Atlanta, Georgia
    Old 07-21-2016 , 23:27   Re: [CSGO] Client Skybox
    Reply With Quote #10

    Quote:
    Originally Posted by abrandnewday View Post
    Ahh, well there's something to bug Valve about; adding in per-client skyboxes.
    Like Valve ever does anything just for the good of the community.

    At least be glad the cvar exists on TF2 and works server-side... mvm_rottenburg at nighttime looks pretty.

    This plugin can be forked and easily remade to a version for TF2 where admins can pick what skybox they want to use on the next map. I'm not saying for the OP to do it, nor do I have the time to do it myself, but the potential is there.

    /thread derail

    Last edited by Potato Uno; 07-21-2016 at 23:29.
    Potato Uno is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 06:47.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode