MODSonline
  Welcome Guest to MODSonline Home | Forums | Register | Login
Main-Menu
Home
Login
Register
Add Download
Add News
Add Tutorial *
Forums

Advertise
Affiliate Store US *
Affiliate Store UK *
Affiliate Store CA *
Angry Letter Generator
Avatar Upload
Calendar of Games
Contact
Downloads
FAQs
Forums
Member List
Member Projects
News
News Grabber *
Policy
Polls
Private Messages
Reviews
Screenshot Gallery
Search
Servers - Game
Store - Shirts *
Subscribe
Topics
Tutorials
Weblinks
Wiki *
Tutorials
CoD Mapping
CoDUO Mapping
CoD2 Mapping
CoD4 Mapping
CoD FAQs
HL2 Mapping
HL2 FAQs
SOF1 Mapping
Crysis Mapping
Q4 Mapping
Doom 3 Mapping
Doom 3 FAQs
UT2K3 Mapping
SOF2 Mapping
SOF2 FAQs

Lightray Modeling
General Modeling
General Modding
Adobe Photoshop
Common Mapping Errors

Readme.txt Generator
Members-Online
jtin [Forum]
1ninjaman1 [Downl]

2 Members and 11 Guests
Chat MODSonline
0 People Now Chatting
MODSOnline TeamSpeak

download TeamSpeak

In-The-News
Sunday, Oct. 12th
MODSonair 149 Live
Friday, Oct. 10th
Far Cry 2 Money, Diamonds, and Blood Trailer
Friday, Oct. 10th
MODSonair Episode 148
Thursday, Oct. 9th
Multiplayer Game Modes Interview
Sunday, Oct. 5th
Help MODSonline Heal Kids and Fight Cancer!
Latest Poll
Would you pay for mod tools?
I would pay a one time fee for mod tools for my favorite title 12.75%
I would pay a monthly/yearly subsrciption fee for mod tools for my favorite title 0%
I already paid for the game - Tools should come bundled because I am just fixing what the developers broke 58.82%
100% definitely NOT! 22.55%
I haven't seen a game yet that wasn't 100% perfect when the developers released it 3.92%
Games are the devil! 1.96%
Read More...
10 comments

Newsletter
Name:
Email:
Newsletter Archives
Your Membership
User Name:
Password:
Register.
In The Forums
[UPDATE] mp_NVABase2008_final
CoD4 Custom Map .. Posts: (1) Views: (10) by MonKeYPaWs
Call Of Duty 5 Beta Officially Started
News Around the .. Posts: (2) Views: (12) by CptCool
custom textures
CoD4 Custom Map .. Posts: (4) Views: (24) by COLMAC
2 script for one object
CoD2 Scripting.. Posts: (6) Views: (45) by COLMAC
Extra Life - Save Kids Half-Life 2 Mods for Dummies
Forums
MODSonline.com 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, rEdrUmMDK, Foxhound, Wyatt_Earp, Rasta, StrYdeR, The_Caretaker, Cypher2004, batistablr, Welshy
Latest Posts
Subscribed Posts
Search
Restricted Access Restricted Access
Page
Next Page
subscribe
Author Topic: adding rain
TheArmy
General Member
Since: Jun 23, 2006
Posts: 593
Last: Sep 20, 2008
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Tuesday, Mar. 18, 2008 02:15 am
I have followed the tutorials, but I keep getting a script compile error and when I look in the console I can't seem to find the error. So I am going to post my code and if someone could please take a look I would really appreciate it. Or if someone else can show me another way to have rain. Thanks.

mp_mymapname.gsc

Code:


mp_mymapname_fx.gsc

Code:


mp_rain.gsc

Code:
TheArmy
General Member
Since: Jun 23, 2006
Posts: 593
Last: Sep 20, 2008
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Tuesday, Mar. 18, 2008 09:54 am
bump please
TheArmy
General Member
Since: Jun 23, 2006
Posts: 593
Last: Sep 20, 2008
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Tuesday, Mar. 18, 2008 06:02 pm
bump please
TheArmy
General Member
Since: Jun 23, 2006
Posts: 593
Last: Sep 20, 2008
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Wednesday, Mar. 19, 2008 11:49 am
bump please
Sevenz
General Member
Since: Apr 24, 2006
Posts: 1064
Last: Oct 12, 2008
[view latest posts]
Level 8
Category: CoD2 Scripting
Posted: Wednesday, Mar. 19, 2008 11:56 am
mp_rain.gsc:

Code:
TheArmy
General Member
Since: Jun 23, 2006
Posts: 593
Last: Sep 20, 2008
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Wednesday, Mar. 19, 2008 01:07 pm
thanks that seemed to work. couple more things.

1) It rains inside buildings. Help with that please.

2) How do I add lightning?

Thanks...
Sevenz
General Member
Since: Apr 24, 2006
Posts: 1064
Last: Oct 12, 2008
[view latest posts]
Level 8
Category: CoD2 Scripting
Posted: Wednesday, Mar. 19, 2008 02:18 pm
// increase value if rain goes through buildings (default: -250)
trace = bulletTrace(pos,pos +(0,0,-250), true, undefined);



(TUTORIAL).. How to add Rain/Thunder & Lightning to your Maps. (CoD4)

really old tutorial: Adding Thunder and Lightning (CoD1)
Sevenz
General Member
Since: Apr 24, 2006
Posts: 1064
Last: Oct 12, 2008
[view latest posts]
Level 8
Category: CoD2 Scripting
Posted: Wednesday, Mar. 19, 2008 02:31 pm
sorry, link was to page 4 of the thread:

http://www.modsonline.com/Forums-top-75472-0.html
COLMAC
General Member
Since: Sep 15, 2006
Posts: 562
Last: Oct 13, 2008
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Wednesday, Mar. 19, 2008 02:58 pm
i just full clip the roofs and it wont rain in side "easy way for me"
as for lightning in weather for us dummys there is a gsc copy it from mine add were you want it to go in the lines
maps\mp\_fx::loopfx('lightning",(000, 000, 000), 3)
first 3 are where ,the last number is how often
TheArmy
General Member
Since: Jun 23, 2006
Posts: 593
Last: Sep 20, 2008
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Thursday, Mar. 20, 2008 03:09 am
i tried the full clip it did not work??? and none of those tutorials are for cod2, will they still work???

edited on Mar. 20, 2008 03:20 am by TheArmy
Restricted Access Restricted Access
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 Scripting
All logos and trademarks and information in this site are property of MODSonline LLC © 2008.
The comments are property of their posters.
RSS news feeds for MODSonline can be found News.php.
MODSonline Subscriptions
Partners
Battle for Europe COD2
Frag Universe
Call of Duty Headquarters
modbase.be
The Firing Box
CODAddicts - Call of Duty News & Downloads
XoXide
Ask About
Advertising
Friends
Volcano
Canada Kicks Ass Clan
The Clan Database
Ask About
Advertising
Link to Us
MODSonair
View in iTunes
Please help us to raise in the ranks of podcasting and subscribe to our itunes feed using the link above.
MODSonair Releases
MODSonair Episode 148
MODSonair Episode 147
MODSonair Episode 146
MODSonair Episode 145
MODSonair Episode 144
Next Show
The next MODSonair show will air LIVE on:
10/19/2008 11:00 EDT

Time remaining:
Copyright © 2008 MODSonline
Tresware Content Management System Copyright © 2008 Tresware
Website Designed and Hosted   Tresware