Post your scripting questions / solutions here
Moderator: Moderators
Barttje
Sergeant Major
Posts: 111 Joined: Sat Aug 20, 2005 8:52 pm
Post
by Barttje » Tue Jul 04, 2006 8:04 pm
how can I remove the day light sky into black or something?
Old nickname: Bartjerambo
New nickname: Barttje
Ophisâ„¢
Colonel
Posts: 461 Joined: Sun Mar 12, 2006 2:30 pm
Location: England, Manchester
Contact:
Post
by Ophisâ„¢ » Tue Jul 04, 2006 10:03 pm
on a map your making or a stock map?
lizardkid
Windows Zealot
Posts: 3672 Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT
Post
by lizardkid » Tue Jul 04, 2006 10:37 pm
you can try using a different sky...
if its on a stock map night mod you'll need to assign a cvar to players' configs that's considered a hack and looks terrible, and they wont know how to get rid of it.
Moderator
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
Barttje
Sergeant Major
Posts: 111 Joined: Sat Aug 20, 2005 8:52 pm
Post
by Barttje » Wed Jul 05, 2006 4:45 am
It's Remagen, isn't it level.farplane because I don't know if there is a different between $world farplane and level.farplane...
does somebody know the different and maybe to change the sky..?
Old nickname: Bartjerambo
New nickname: Barttje
Axion
Major General
Posts: 683 Joined: Mon Sep 29, 2003 5:14 am
Location: Northern California
Contact:
Post
by Axion » Wed Jul 05, 2006 5:30 am
You could use this as a global .scr and execute it in your main script file- I think it should work, although it does play around with cvars, which probably makes it an impractical solution:
Code: Select all
night:
setcvar "night" "1"
while(1)
{
while((getcvar "night") == "")
{wait 1}
if(int(getcvar "night") == 1)
{
local.player = $player[local.i]
local.player stufftext ("r_fastsky 1")
$world farplane 6000
$world farplane_color ( 0 0 0 )
wait 3
}
else
{
local.player = $player[local.i]
local.player stufftext ("r_fastsky 0")
$world farplane 99999
$world farplane_color ( 0 0 0 )
setcvar "night" ""
}
}
end
Barttje
Sergeant Major
Posts: 111 Joined: Sat Aug 20, 2005 8:52 pm
Post
by Barttje » Wed Jul 05, 2006 2:01 pm
Tnx he's doing it now
but do you or is it possible to remove the sun too?
Old nickname: Bartjerambo
New nickname: Barttje
cardevsan
Corporal
Posts: 28 Joined: Wed May 19, 2004 9:06 pm
Post
by cardevsan » Wed Jul 05, 2006 6:46 pm
Sun can't be removed Server side.....
Clientside its kinda a cheat....
So answer on Removing Sun from Stock maps...
NADA!!!!!
Barttje
Sergeant Major
Posts: 111 Joined: Sat Aug 20, 2005 8:52 pm
Post
by Barttje » Wed Jul 05, 2006 10:13 pm
okeey, tnx all for your good help
Old nickname: Bartjerambo
New nickname: Barttje