Page 1 of 1

MOHDM1 Skybox

Posted: Thu Jul 15, 2004 8:32 pm
by strafer
I am making server side map mods for Allied Asssault TDM maps and I always edit the maps so it is foggy and I want to make Southern France dark out. I have used :

$world farplane_color ".03 .05 .09"
$world farplane 1000

and this makes it dark out, but the skybox is still the same. What can I do to change that?

Posted: Thu Jul 15, 2004 9:38 pm
by bdbodger
You can try this I seen the r_fastsky used in a map the r_drawSun is just a guess .

for(local.i=1;local.i<=$player.size;local.i++)
{
$player[local.i] stufftext "r_fastsky 1"
$player[local.i] stufftext "r_drawSun" 1
}

// r_fastsky - don't render the sky, just clear it with the current sky color (default 0)

// r_drawSun - whether or not to draw the sun in the sky (default 0)

Posted: Fri Jul 16, 2004 4:12 am
by strafer
The sky works fine, but the sun is still there :( . Thanks for your help 8-) . Tell me if you know anything about the sun later on please :D .

Posted: Fri Jul 16, 2004 3:11 pm
by lizardkid
$world is the entity for worldspawn. suncolor is a property.

so

$world.suncolor 20 20 20

might make it better. you could also tone down the ambientlight to create a better effect using the same thing.

$world.ambientlight 5 5 5

:wink:

Posted: Fri Jul 16, 2004 4:59 pm
by strafer
That doesn't work :( . It says bad token string in the console.

Posted: Fri Jul 16, 2004 7:24 pm
by lizardkid
waht's the token? there's no equals signs or anything thing there.....\
if i'm not mistaken it'll be after level waittill prespawn. if not it's before it.

sun

Posted: Fri Jul 16, 2004 11:28 pm
by tltrude
You can't adjust suncolor and ambient light in the script because those are add in the compile.
If you are trying to get rid of the sunflare, then it would be.

"r_drawSun" 0

or just leve that line out.

Also try this.

$world.sunflarename = "none"

Posted: Sat Jul 17, 2004 6:35 am
by strafer
Neither of those work. When I try "r_drawsun" 0, it spams "r_drawsun is set to '1' default '0'" Nothing happened when I tried $world.sunflarename = "none", not even an error message.

Skybox removal script not working

Posted: Tue Jul 20, 2004 3:36 pm
by IvanTheTerrible
I've tried the script as shown by bdbodger without any luck. I've embeded it into the main thread of the script as well as created a seperate thread for it and it still doesn't work...any ideas?

Skybox removal not working

Posted: Tue Jul 20, 2004 3:39 pm
by IvanTheTerrible
Oh, by the way...I wasn't refering to the sun removal not working...the skybox removal is not working.

Posted: Tue Jul 20, 2004 11:52 pm
by strafer
Try this:

Code: Select all

level waittill spawn

thread sky

end

sky:

	for(local.i=1;local.i<=$player.size;local.i++) 
	{ 
	$player[local.i] stufftext "r_fastsky 1" 
	} 
wait .1

goto sky

end
Make it loop so it happens when the map first loads for the player and when it restarts. 8-)

Thanks Strafer

Posted: Thu Jul 29, 2004 8:04 am
by IvanTheTerrible
Thanks Strafer...I just made it a while loop.