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
CoDWW 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
cerialus117 [Downl]
ghostryder07 [Tutor]
Zestycookie [Forum]
SparkyMcSp... [Today]

4 Members and 10 Guests
Chat MODSonline
0 People Now Chatting
MODSOnline TeamSpeak

download TeamSpeak

In-The-News
Sunday, Jan. 4th
MODSonair 161 Live
Friday, Jan. 2nd
MODSonair Episode 160
Thursday, Jan. 1st
HAPPY NEW YEAR MODSONLINE AND ALL
Sunday, Dec. 28th
MODSonair 160 Live
Saturday, Dec. 27th
MODSonline Holiday Pwnage
Latest Poll
Modsonair audio or video?
Video from here on. 48.57%
Sticking with audio. 2.86%
Either is good. 17.14%
What is modsonair? 31.43%
Read More...
4 comments

Newsletter
Name:
Email:
Newsletter Archives
Your Membership
User Name:
Password:
Register.
In The Forums
How 'bout law?
MODSonline.. Posts: (6) Views: (46) by Strid3r
Players enter game when running from Launcher??
CoD:WW Multiplay.. Posts: (1) Views: (13) by {PP}Bloodletter
Secret Keypad Door.... Help :'(
CoD 2 Level Desi.. Posts: (1) Views: (17) by NotDeadYet
Zombies Crashing?
CoD:WW Zombie/Co.. Posts: (3) Views: (29) by Sgt.Rampage
Google 468 Banner Quake 4 Mods for Dummies
CoDWW Download
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
Category: CoD Level Design
CoD mapping and level design.
Moderators: foyleman, rEdrUmMDK, Foxhound, Wyatt_Earp, Rasta, StrYdeR, The_Caretaker, Cypher2004, supersword, supersword, batistablr, Welshy
Latest Posts
Subscribed Posts
Search
Restricted Access Restricted Access
Page
Previous Page
subscribe
Author Topic: Adding snow to you map
GOA-NITRO
General Member
Since: Apr 15, 2006
Posts: 13
Last: Aug 26, 2008
[view latest posts]
Level 1
Category: CoD Level Design
Posted: Tuesday, Aug. 19, 2008 03:45 pm
Rasta writes...
Quote:
So you do have a .gsc called snow_effects right?


Yes m8 everything is in there:

main()
{
level.snoweffect = loadfx("fx/weather/snowfallfor5seconds.efx");
snowmitters = getentarray("snow","targetname");
delay = 5;
initialoffset = 0;
for(i=0;i {
snow thread snowblow(delay,initialoffset);
if(initialoffset < 5)
{
initialoffset += .2;
}
else
initialoffset = 0;

}
}

snowblow(delay,initialoffset)
{
wait initialoffset;
while(1)
{
playfx (level.snoweffect,self.origin);
wait delay;
}

}


and

main()
{


maps\mp\_load::main();

maps\mp\snow_effects::main();


game["allies"] = "american";
game["axis"] = "german";

game["american_soldiertype"] = "airborne";
game["american_soldiervariation"] = "winter";
game["german_soldiertype"] = "waffen";
game["german_soldiervariation"] = "winter";

game["attackers"] = "allies";
game["defenders"] = "axis";



}


and the FX you submitted


Thanks again

Jay
silly_boy
General Member
Since: Apr 12, 2008
Posts: 24
Last: Oct 1, 2008
[view latest posts]
Level 1
Category: CoD Level Design
Posted: Saturday, Aug. 23, 2008 06:17 am
Hey Rasta i added the script_origins to my map and did the necessary scripting and when i tested the map it crashed while it was loading[confused]
GOA-NITRO
General Member
Since: Apr 15, 2006
Posts: 13
Last: Aug 26, 2008
[view latest posts]
Level 1
Category: CoD Level Design
Posted: Tuesday, Aug. 26, 2008 04:00 pm
Hi again....dunno if this is the problem....i had a look in my PK.5 in my main and couldnt find Weather in the FX and no EFX for snow...any help please...thanks guys

Regards
Rasta
Preferred Member
Since: Apr 10, 2004
Posts: 4397
Last: Jan 8, 2009
[view latest posts]
Level 9
Forum Moderator
Im a fan of MODSonair
Im a HOST of MODSonair
Category: CoD Level Design
Posted: Tuesday, Aug. 26, 2008 06:23 pm
To be honest guys this is such an old thread from years ago, since which i have redone the script to make it much more suitable for all maps. Try this following:
To prevent lagg and the game draw efx over the whole map, we are going to 'spawn' the rain or snow in front of the actual player.

First you need to create a new .gsc file, and then your need the following script, so just copy and paste it into the new .gsc:


Code:
main()

{
     level thread rasta_rain();
}


rasta_rain() 
{    
zufall = RandomInt(100);        
while(1) 
{
players = getentarray("player", "classname");        
if(players.size > 0) 
{
max_nodes         = 20;
max_nodes_per_player     = max_nodes/players.size;
for(ii=0;ii


Now lets save this as rain.gsc

2) Next step is to load the rain or snow effects, so somewhere in 'yourmap.gsc' add the following line:


Code:
level.rasta_rain   = loadfx("name of effects");


You will also need to add another line to 'yourmap.gsc'


Code:
      maps\mp\rain::main();
Go ahead... You Play I Mod : MODSonline.com
Support Modsonline by becoming a PREFERRED MEMBER today
Have you heard the MODSonair Podcast?: www.modsonair.com
We are game enthusiasts from the MODSonline.com community bringing you news, updates and opinions of the week's current events. Tune in every Friday for a new episode.
Restricted Access Restricted Access
Page
Previous Page
subscribe
MODSonline.com Forums : Call of Duty : CoD Level Design
All logos and trademarks and information in this site are property of MODSonline LLC © 2009.
The comments are property of their posters.
RSS news feeds for MODSonline can be found News.php.
Art of War Central
Partners
Frag Universe
modbase.be
XoXide
Battle for Europe COD2
Call of Duty Headquarters
CODAddicts - Call of Duty News & Downloads
The Firing Box
Ask About
Advertising
Friends
ModTheater
After Life Gaming
CoD 4 Base
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 160
MODSonair Episode 159
MODSonair Episode 158
MODSonair Episode 157
MODSonair Episode 156
Next Show
The next MODSonair show will air LIVE on:
01/11/2009 12:00 EST

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