MOHDM1 Skybox

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
strafer
Captain
Posts: 237
Joined: Sat Jan 31, 2004 11:29 pm
Location: The Motherland..
Contact:

MOHDM1 Skybox

Post 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?
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post 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)
Image
strafer
Captain
Posts: 237
Joined: Sat Jan 31, 2004 11:29 pm
Location: The Motherland..
Contact:

Post 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 .
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post 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:
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
strafer
Captain
Posts: 237
Joined: Sat Jan 31, 2004 11:29 pm
Location: The Motherland..
Contact:

Post by strafer »

That doesn't work :( . It says bad token string in the console.
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post 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.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

sun

Post 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"
Tom Trude,

Image
strafer
Captain
Posts: 237
Joined: Sat Jan 31, 2004 11:29 pm
Location: The Motherland..
Contact:

Post 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.
User avatar
IvanTheTerrible
Sergeant
Posts: 55
Joined: Thu Jun 26, 2003 7:35 pm
Location: Upland, CA

Skybox removal script not working

Post 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?
Image
User avatar
IvanTheTerrible
Sergeant
Posts: 55
Joined: Thu Jun 26, 2003 7:35 pm
Location: Upland, CA

Skybox removal not working

Post by IvanTheTerrible »

Oh, by the way...I wasn't refering to the sun removal not working...the skybox removal is not working.
Image
strafer
Captain
Posts: 237
Joined: Sat Jan 31, 2004 11:29 pm
Location: The Motherland..
Contact:

Post 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-)
User avatar
IvanTheTerrible
Sergeant
Posts: 55
Joined: Thu Jun 26, 2003 7:35 pm
Location: Upland, CA

Thanks Strafer

Post by IvanTheTerrible »

Thanks Strafer...I just made it a while loop.
Image
Post Reply