In the FOG

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
Gen Cobra
Major General
Posts: 739
Joined: Tue Jan 28, 2003 4:26 pm

In the FOG

Post by Gen Cobra »

I've tried applying the fog from the scr and I can't seem to get it to work. I'm getting kinda fed up with it. If someone could post exactly where it goes in the script and what it is it would really help me right now. THANK YOU.

I put mine after exec global/ambient.scr
but failed to get it to work.

$world farplane_color "0.752941 0.752941 0.752941"
level.fogplane = 3500
$world farplane level.fogplane
Image
Angex
Major
Posts: 293
Joined: Mon Dec 30, 2002 1:23 pm
Contact:

Post by Angex »

Is it neccessary to use a script, could you add it to your worldspawn instead. Or are you attempting to change it via a script ?
User avatar
Gen Cobra
Major General
Posts: 739
Joined: Tue Jan 28, 2003 4:26 pm

Post by Gen Cobra »

How do I do it via worldspawn? Haven't done this before.
Image
CHeesER
Corporal
Posts: 25
Joined: Wed Feb 19, 2003 2:55 am
Location: Canada

Post by CHeesER »

Your script should work,if its after waitTill prespawn.
The only thing I noticed is you have some spaces in this line

level.fogplane = 3500

maybe try removing the spaces ,level.fogplane=3500

I don't Know if this will make a difference or not.But it is the only difference that I can see from the one I am using.
TheShiznaeSpe
Major
Posts: 304
Joined: Wed Feb 05, 2003 11:45 pm
Location: US
Contact:

Post by TheShiznaeSpe »

no spaces are important

try

Code: Select all

level.farplane = 2000.000000  //fog distance
$world farplane level.farplane
$world farplane_color (.333 .333 .333)
that works for me[/code]
CHeesER
Corporal
Posts: 25
Joined: Wed Feb 19, 2003 2:55 am
Location: Canada

Post by CHeesER »

Your just using the map script to get your fog right?Your not using brushs and the fog texture.Because that fog texture doesn't work as far as I know.
User avatar
MPowell1944
Moderator
Posts: 287
Joined: Thu Jan 09, 2003 7:06 am
Location: Woodstock, GA
Contact:

Post by MPowell1944 »

To add fog via the Worldspawn function, use these 2 sets.

Farplane :

Key : farplane
Value : #

Farplane Color :

Key : farplane_color
Value : #

Much easier than using script, but would require recompiling if you were testing several different farplane values. That would be the case where applying farplane via the .scr file would come in handy.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Hint

Post by jv_map »

Recompile with -onlyents and you're ready within two minutes 8).
Image
User avatar
Gen Cobra
Major General
Posts: 739
Joined: Tue Jan 28, 2003 4:26 pm

Post by Gen Cobra »

Yeah I got it to work. I am trying to provide the right atmosphere for the end objective in IRON TUSK single player campaign. Vassili Zaitsev joins you and follows you to help defeat the final boss. Mmm i wonder who that could be?
Image
User avatar
MPowell1944
Moderator
Posts: 287
Joined: Thu Jan 09, 2003 7:06 am
Location: Woodstock, GA
Contact:

Post by MPowell1944 »

Michael Jackson? jk. :shock:
Surgeon
Site Admin
Posts: 1386
Joined: Tue Jun 04, 2002 1:15 am
Location: Stirling, Scotland
Contact:

Post by Surgeon »

LOL ........ Some Nazi General - Make one up
Admin
Image

.map Forums

Truth and Honor.
User avatar
Gen Cobra
Major General
Posts: 739
Joined: Tue Jan 28, 2003 4:26 pm

Post by Gen Cobra »

If you watched ENEMY AT THE GATES or have any clue about WWII history I do not need to tell you. 8)
Image
User avatar
MPowell1944
Moderator
Posts: 287
Joined: Thu Jan 09, 2003 7:06 am
Location: Woodstock, GA
Contact:

Post by MPowell1944 »

So, did you get the farplane to function via worldspawn?
User avatar
Gen Cobra
Major General
Posts: 739
Joined: Tue Jan 28, 2003 4:26 pm

Post by Gen Cobra »

Yes but what is the correct values for the color.
The farplane works right but how do I do the fog part with the editor? :?
Image
Post Reply