Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds
Watch MODSonair

Members Online

»
0 Active | 12 Guests
Online:

LATEST FORUM THREADS

»
water
CoD4 MP Mapping
ugw2gold
Starcraft 2
Rainbow HELP....
CoD4 MP Mapping
help pls
CoD2 Scripting

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 2
Category: CoD2 Scripting
Scripting and coding with Call of Duty 2.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Restricted Access
Page
Next Page
subscribe
Author Topic: Fog and Smoke
TheArmy
General Member
Since: Jun 23, 2006
Posts: 599
Last: Dec 24, 2009
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Thursday, Jul. 26, 2007 08:37 pm
Can someone tell me how to script thick white fog and i also need a small smoke effect like smoke coming out of a bunker vent.
Share |
TheArmy
General Member
Since: Jun 23, 2006
Posts: 599
Last: Dec 24, 2009
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Friday, Jul. 27, 2007 10:43 am
bump please
Share |
XICXAC
General Member
Since: Jun 3, 2007
Posts: 91
Last: Mar 28, 2008
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Friday, Jul. 27, 2007 11:33 am
For the smoke effect, go into your Call of duty 2/main folder. Open up iw_07.iwd with winrar or program of your choise then click fx/smoke/ . Pick the effect you want and play it with playfx() or loopfx()
Share |
Snake-nl
General Member
Since: May 30, 2004
Posts: 394
Last: Jan 22, 2011
[view latest posts]
Level 5
Category: CoD2 Scripting
Posted: Friday, Jul. 27, 2007 12:28 pm
for making smoke (and fire) you can use this tutorial:
http://www.modsonline.com/Tutorials-read-345.html

For making fog you can see at this tutorial:
http://www.modsonline.com/Tutorials-read-324.html

setExpFog(0.0001, 0.55, 0.6, 0.55, 0);
just play with the numbers and see what the best option is for your fog.

:)
Share |
TheArmy
General Member
Since: Jun 23, 2006
Posts: 599
Last: Dec 24, 2009
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Friday, Jul. 27, 2007 10:59 pm
lets forget about the smoke for a second. when i say fog i mean is there a way i can script it like dust so i can control where it is. for example:

maps\mp\_fx::loopfx("dust_wind", (-928,3736,216), 3, (-928,3736,224));

this is a script for dust. is there a thick whit fog effect that i can replace dust_wind with. i know I've seen white fog before in maps. usually night maps.
Share |
R4R44VIS
General Member
Since: Apr 22, 2005
Posts: 553
Last: Jul 24, 2008
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Saturday, Jul. 28, 2007 12:31 am
If you want fog in a few areas rather than having it over the whole map, you'll have to use FX. Just have it looping, and if it isnt thick enough, then you can have the same effect looping in the same place, just with different timing, so when one is dying out, the new one starts.

You'll just have to find the FX, which suits you best.
Share |
TheArmy
General Member
Since: Jun 23, 2006
Posts: 599
Last: Dec 24, 2009
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Saturday, Jul. 28, 2007 12:36 am
1) Where can i find the different types of fx to choose from?

2) Maybe it will help if you understand why I want fog. I am building a small bash map that takes place at the top of a building. However, I don't plan on building the side of the building. What the fog will do is block the view so the player does'nt realize that the building isn't there, or in other words making the illusion that the building is there. So I need fog surrounding my building and not throughout the entire map. Almost as if the building is surrounded by clouds. What do you recommend I do?
Share |
R4R44VIS
General Member
Since: Apr 22, 2005
Posts: 553
Last: Jul 24, 2008
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Saturday, Jul. 28, 2007 12:49 am
As someone said all FX are found in iw_07.iwd

If your map is atop a "building", and only takes place up there, how is a person ever gonna see the side of the building? I just dont think you'll be able to get FX thick enough to give the impression your in the coulds (or if there anything white enough). The only thing you would be able to get thick enough is "setexpfog" as someone said eariler but the does effect the whole map.
Share |
TheArmy
General Member
Since: Jun 23, 2006
Posts: 599
Last: Dec 24, 2009
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Saturday, Jul. 28, 2007 01:00 am
ok i looked through iw07 and found some fx that i will try out. what about the fx editior though. could that be used to make the fx that i want and if so how the hell do you use that thing.
Share |
R4R44VIS
General Member
Since: Apr 22, 2005
Posts: 553
Last: Jul 24, 2008
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Saturday, Jul. 28, 2007 01:10 am
You could use FX editor to make your own FX< but like you i have no idea how it works.
Share |
Restricted Access Restricted Access
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 Scripting

Latest Syndicated News

»
Why console gaming is dying
Quote:Consider this: Dedicated gaming sales — including living-room consoles...
Devs: Games are being dumb...
Click 'read more' to view the contents of this post.
Loadout
Gun Crafting to the Max. edited on Sep. 25, 2012 06:57 pm by Morp...
Introducing the Source Fil...
Surprised this wasn't made a long time ago. Sounds like a nice little feature.
Introducing the Source Fil...
The Source Filmmaker (SFM) is the movie-making tool built and used by us he...

Partners & Friends

»