MOHDM1 Skybox
Moderator: Moderators
MOHDM1 Skybox
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?
$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?
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)
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)
$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

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
Moderator
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
sun
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"
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"
- IvanTheTerrible
- Sergeant
- Posts: 55
- Joined: Thu Jun 26, 2003 7:35 pm
- Location: Upland, CA
Skybox removal script not working
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?

- IvanTheTerrible
- Sergeant
- Posts: 55
- Joined: Thu Jun 26, 2003 7:35 pm
- Location: Upland, CA
Skybox removal not working
Oh, by the way...I wasn't refering to the sun removal not working...the skybox removal is not working.

Try this:
Make it loop so it happens when the map first loads for the player and when it restarts. 
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- IvanTheTerrible
- Sergeant
- Posts: 55
- Joined: Thu Jun 26, 2003 7:35 pm
- Location: Upland, CA

