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

Members Online

»
0 Active | 8 Guests
Online:

LATEST FORUM THREADS

»
water
CoD4 MP Mapping
Rainbow HELP....
CoD4 MP Mapping

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
Previous Page
subscribe
Author Topic: Fog and Smoke
XICXAC
General Member
Since: Jun 3, 2007
Posts: 91
Last: Mar 28, 2008
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Saturday, Jul. 28, 2007 05:20 am
The effects ediot don't really make sence to me, i say keep to the fx that came with the game. Place out a script_origin and name it, where you want to have your smoke/fog. Then use like
Code:

main() {
level._effect["buildingfog"] = loadfx("fx/theeffect");
thread fog(); }

fog() {
origin = getent("origin","targetname");
origin = origin getorigin();
loopfx(level._effect["buildingfog"], origin);
}

or something like that
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:37 pm
ok what do i name the script origin and where does this code go.
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD2 Scripting
Posted: Sunday, Jul. 29, 2007 01:57 am
you give the script_origin a targetname of "origin"
And the code goes in your .gsc file..

However.. as I posted in another post... it's better to just write down the coordinates and use those instead of this way with the script_origin.
Share |
Restricted Access Restricted Access
Page
Previous 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

»