Raised This Month: $51 Target: $400
 12% 

Daylight Changer (Downtown1)


Post New Thread Reply   
 
Thread Tools Display Modes
Downtown1
Veteran Member
Join Date: Mar 2004
Old 06-11-2004 , 23:10  
Reply With Quote #21

Quote:
Originally Posted by Johnny got his gun
To once and for all fix the sky would be neat. Dunno if this is possible without modifying client. I've seen some client cheats can do that (make the sky textureless and black)
Hey, I would've had that in the plugin, except that when I talked to Vexd, he said he looked all over the HL SDK (maybe CS has it though, though we aren't getting that SDK) and couldn't find a way to change the sky textures. But hey, maybe someone will get lucky and find it .

As for lightning, I remember Vexd telling me he finally had a function to change player lightning. Also Warcraft 3 the mod changes player lightning (although it could be a side effect of the special effects, but if the special effects change player lightning then there IS a way to change player lightning).

Anyways, good luck with this, I might have an 'official' port of this plugin myself if I ever start coding with Small again .
Downtown1 is offline
[FBX]
Senior Member
Join Date: May 2004
Old 06-12-2004 , 00:48  
Reply With Quote #22

sv_skycolor_r *_g *_b will change the light that the sky gives off, but it wont change the sky itself (i.e. sv_skycolor_g will give all the entities on the map a green tint)
[FBX] is offline
Burnzy
Veteran Member
Join Date: Apr 2004
Old 06-12-2004 , 11:05  
Reply With Quote #23

this would be very cool to add to your server if u have this plugin:
http://forums.alliedmods.net/showthread.php?t=2623
the time announcer...
so like the times int he top corner and stuff so its like a clock and the light changes...
__________________
Burnzy is offline
Send a message via AIM to Burnzy
Burnzy
Veteran Member
Join Date: Apr 2004
Old 06-12-2004 , 23:06  
Reply With Quote #24

can u make a command to turn this on and off?
example
amx_light <1|0>
__________________
Burnzy is offline
Send a message via AIM to Burnzy
|2ob
Senior Member
Join Date: Mar 2004
Location: Ontario, Canada
Old 06-12-2004 , 23:21  
Reply With Quote #25

pause it through amxmodmenu
__________________
24/7 Custom Maps Vitrus | Style by www.WebGZ.net
64.247.24.125:27015

Visit Vitrus's Clan Site!

I would put more, but they have a limit on chars
|2ob is offline
Send a message via AIM to |2ob Send a message via MSN to |2ob
QwertyAccess
Veteran Member
Join Date: Feb 2004
Location: Enjiru Layer
Old 06-13-2004 , 01:09  
Reply With Quote #26

you can change what sky the map has though,
__________________
QwertyAccess is offline
Burnzy
Veteran Member
Join Date: Apr 2004
Old 06-13-2004 , 01:18  
Reply With Quote #27

hmm... i cant pause it over the amxmodmenu... i did it. then i restart. NVM!
Can u please just add a cvar to turn on and off?
__________________
Burnzy is offline
Send a message via AIM to Burnzy
|2ob
Senior Member
Join Date: Mar 2004
Location: Ontario, Canada
Old 06-13-2004 , 02:09  
Reply With Quote #28

sad thing is... i dont know how...
__________________
24/7 Custom Maps Vitrus | Style by www.WebGZ.net
64.247.24.125:27015

Visit Vitrus's Clan Site!

I would put more, but they have a limit on chars
|2ob is offline
Send a message via AIM to |2ob Send a message via MSN to |2ob
Burnzy
Veteran Member
Join Date: Apr 2004
Old 06-13-2004 , 10:06  
Reply With Quote #29

ARE U SERIOUS... look at other plugins... Ill help u if u need, whats ur aim err msnm?
__________________
Burnzy is offline
Send a message via AIM to Burnzy
Downtown1
Veteran Member
Join Date: Mar 2004
Old 06-13-2004 , 16:08  
Reply With Quote #30

Something along the line of.. This should work if there's a get_cvar_num() function .

Code:
#include <amxmodx> #include <engine> #include <string> public updatelights() {     if ( !get_cvar_num("sv_daylightchange") )         return PLUGIN_CONTINUE     new szHours[2]     new iHours     new szLights[2] = "m"     get_time("%H", szHours, 2)     iHours = str_to_num(szHours)     switch(iHours)     {         case 0:szLights = "b"         case 1:szLights = "c"         case 2:szLights = "d"         case 3:szLights = "e"         case 4:szLights = "g"         case 5:szLights = "i"         case 6:szLights = "k"         case 7:szLights = "m"         case 8:szLights = "o"         case 9:szLights = "q"         case 10:szLights = "s"         case 11:szLights = "u"         case 12:szLights = "w"         case 13:szLights = "u"         case 14:szLights = "s"         case 15:szLights = "q"         case 16:szLights = "o"         case 17:szLights = "m"         case 18:szLights = "k"         case 19:szLights = "i"         case 20:szLights = "g"         case 21:szLights = "e"         case 22:szLights = "d"         case 23:szLights = "c"         default:szLights = "m"     }     set_lights(szLights)     return PLUGIN_CONTINUE } public plugin_init() {     register_plugin("Daylight Change","1.1","Downtown1")     register_cvar("sv_daylightchange", "1")     set_task(60.0, "updatelights", 0, "", 0, "b")     return PLUGIN_CONTINUE }
Downtown1 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 10:27.


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