Raised This Month: $ Target: $400
 0% 

Custom Sky - Add a cool new sky to dull maps


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Siska1
Senior Member
Join Date: Feb 2020
Location: BedRock
Old 09-22-2023 , 18:40   Re: Custom Sky - Add a cool new sky to dull maps
Reply With Quote #1

Quote:
Originally Posted by DJEarthQuake View Post
The plugin is not needed at all to control sv_skyname in configs/maps.
The problem is very big. Only this doesn't work if I want to replace with new files. However, the problem is that it doesn't work when I want to change the sky defaults and have it work for all players. But I found a plugin that does it and everyone sees the same sky. Do you understand me ?
__________________
Siska1 is offline
Send a message via Skype™ to Siska1
mlibre
Veteran Member
Join Date: Nov 2015
Location: return PLUGIN_CONTINUE
Old 09-23-2023 , 08:10   Re: Custom Sky - Add a cool new sky to dull maps
Reply With Quote #2

@Siska1 your sky is not supported somehow, this stock collects by default all existing names, this way we avoid repetitions, you can call it in "plugin_int" or in "plugin_precache"

PHP Code:
stock set_skyName()
{
    new const 
szSkyNames[][] =
    {
        
//valve
        
"2desert",
        
"alien1""alien2""alien3",
        
"cliff",
        
"desert",
        
"dusk",
        
"morning",
        
"neb1""neb6""neb7",
        
"night",
        
"space",
        
"xen8""xen9""xen10",
        
        
//cstrkie
        
"backalley",
        
"badlands",
        
"blue",
        
"city",
        
"cx",
        
"de_storm",
        
"Des",
        
"doom1",
        
"DrkG",
        
"forest",
        
"green",
        
"grnplsnt",
        
"hav",
        
"morningdew",    //maxsize = 10->getSky=11
        
"office",
        
"snow",
        
"tornsky",
        
"TrainYard",
        
"tsccity_"
    
}
        
    new 
num random_num(0charsmax(szSkyNames))
    
    new 
getSky[11]; get_cvar_string("sv_skyname"getSkycharsmax(getSky))
    
    if(
equal(getSkyszSkyNames[num]))
    {
        
set_skyName()
        
        return

    }
    
    
set_cvar_string("sv_skyname"szSkyNames[num])

__________________
mlibre is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 09-23-2023 , 09:18   Re: Custom Sky - Add a cool new sky to dull maps
Reply With Quote #3

What I was going to suggest next is check 'fast download' 'error log'. File permissions can play a role in this. Also if you have any other plugins that control the skys loaded disable those. This plugin has never failed me when I used to use it.
DJEarthQuake is offline
mlibre
Veteran Member
Join Date: Nov 2015
Location: return PLUGIN_CONTINUE
Old 09-23-2023 , 12:18   Re: Custom Sky - Add a cool new sky to dull maps
Reply With Quote #4

enable the developer "1" command in your console to see more details there we rule out fastdl bugs
__________________
mlibre is offline
Reply



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 19:49.


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