Removing sky..?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Barttje
Sergeant Major
Posts: 111
Joined: Sat Aug 20, 2005 8:52 pm

Removing sky..?

Post by Barttje »

Image

how can I remove the day light sky into black or something? :roll:
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â„¢ »

on a map your making or a stock map?
Image[ Formerly Known As Snakeâ„¢ ]
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

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 »

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
User avatar
Axion
Major General
Posts: 683
Joined: Mon Sep 29, 2003 5:14 am
Location: Northern California
Contact:

Post by Axion »

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
"The work of a thousand years is nothing but rubble."
- Dr. Carl Goerdeler (1943)
Visit my mapping site: http://www.freewebs.com/axion9
Image
Barttje
Sergeant Major
Posts: 111
Joined: Sat Aug 20, 2005 8:52 pm

Post by Barttje »

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 »

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 »

okeey, tnx all for your good help :P :)
Old nickname: Bartjerambo
New nickname: Barttje
Post Reply