Forum

Fog...

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Fog...

Postby sniperz227 » Sat Oct 29, 2011 6:44 pm

Hey, i was wondering what i would have to do if i wanted fog to show up in my map sorta like this :http://www.moddb.com/games/nazi-zombies-portable/images/weekly-update-13#imagebox
i just want there too be fog all aorund the map cuz its a graveyard map n i wanted to make it more realistic :P thanks
sniperz227
 
Posts: 112
Joined: Sat Apr 09, 2011 3:19 am

Re: Fog...

Postby Nahuel » Sat Oct 29, 2011 8:46 pm

you have many ways, the classic is to add a newspecific to worldspawn called "fog" with the value
for example
{
"sounds" "4"
"classname" "worldspawn"
"wad" "gfx/start.wad"
"message" "Introduction"
"worldtype" "0"
"fog" "0.2 0.2 0.2 0.25"
}
hi, I am nahuel, I love quake and qc.
User avatar
Nahuel
 
Posts: 492
Joined: Wed Jan 12, 2011 8:42 pm
Location: mar del plata

Re: Fog...

Postby sniperz227 » Sat Oct 29, 2011 10:00 pm

i dont get what you mean?
sniperz227
 
Posts: 112
Joined: Sat Apr 09, 2011 3:19 am

Re: Fog...

Postby Nahuel » Sat Oct 29, 2011 10:40 pm

sniperz227 wrote:i dont get what you mean?

srry, my english is very bad. If you do not want to add a specific in the map you can have the fog via qc with a stuffcdm. But the easy way is to do it in the specifics of the map, you can edit the bsp with quark and add the specific in "worldspawn"
hi, I am nahuel, I love quake and qc.
User avatar
Nahuel
 
Posts: 492
Joined: Wed Jan 12, 2011 8:42 pm
Location: mar del plata

Re: Fog...

Postby necros » Sun Oct 30, 2011 5:38 am

in nahuel's post, he just means in the worlspawn entity, add a new key with the name "fog" and the value "0.2 0.2 0.2 0.25" (no quotes).
necros
 
Posts: 77
Joined: Thu Dec 16, 2004 10:32 pm

Re: Fog...

Postby Seven » Sun Oct 30, 2011 6:47 pm

Hello sniperz,

maybe you want/need some more information.
If not, I am sorry to bump.
I assume you are using DarkPlaces.

First of all, to get the needed .ent file of your map, please start the map and type this in the console:
sv_saveentfile
(be careful, existing ones will be overwritten)
The file will be in your maps folder.

Now you can edit (with notepad for example), your .ent file
and add the fog line from Nahuel in it (in the end of first block).

If you want to know more about the values, here is the description:
fog : set global fog parameters (density red green blue [alpha [mindist [maxdist [top [fadedepth]]]]])

Have fun with your spookie fog. :)
Seven
Seven
 
Posts: 301
Joined: Sat Oct 06, 2007 8:49 pm
Location: Germany


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest