AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CSGO] Client Skybox (https://forums.alliedmods.net/showthread.php?t=285353)

Deathknife 07-18-2016 14:52

[CSGO] Client Skybox
 
2 Attachment(s)
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.


Deathknife 07-19-2016 09:33

Re: [CSGO] Client Skybox
 
Quote:

Originally Posted by abrandnewday (Post 2437587)
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.

Potato Uno 07-19-2016 10:41

Re: [CSGO] Client Skybox
 
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.

sneaK 07-19-2016 11:08

Re: [CSGO] Client Skybox
 
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.

Deathknife 07-19-2016 11:32

Re: [CSGO] Client Skybox
 
Quote:

Originally Posted by blackhawk74 (Post 2437777)
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.

sneaK 07-19-2016 13:08

Re: [CSGO] Client Skybox
 
Quote:

Originally Posted by Deathknife (Post 2437784)
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?

Unbelievable 07-19-2016 19:30

Re: [CSGO] Client Skybox
 
great plugin :D

Crowii 07-20-2016 14:19

Re: [CSGO] Client Skybox
 
Quote:

Originally Posted by Unbelievable (Post 2437911)
great plugin :D

You're welcome.

Unbelievable 07-21-2016 13:43

Re: [CSGO] Client Skybox
 
Quote:

Originally Posted by Crowii (Post 2438109)
You're welcome.

thnx mate :D

Potato Uno 07-21-2016 23:27

Re: [CSGO] Client Skybox
 
Quote:

Originally Posted by abrandnewday (Post 2437903)
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


All times are GMT -4. The time now is 23:11.

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