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

Members Online

»
0 Active | 66 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP 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 MP Mapping
CoD 2 mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Next Page
subscribe
Author Topic: Snow problem
cod2fun
General Member
Since: Aug 26, 2009
Posts: 75
Last: Sep 13, 2010
[view latest posts]
Level 3
Category: CoD2 MP Mapping
Posted: Friday, Sep. 10, 2010 02:01 pm
every time my map load and i start get this error message...and after that ctd ...[banghead]

******* script runtime error *******
type undefined is not an int: (file 'maps/mp/mp_snow.gsc', line 37)
if(trace["fraction"] != 1) playfx(level.rasta_cod2_rain,trace["position"]);
*
started from:
(file 'maps/mp/mp_snow.gsc', line 38)
wait 0.05;
*
************************************

this is snow gsc
Code:
//Script by rasta, please credit if used
main()
{
     level thread rasta_cod2_rain();
}

rasta_cod2_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<max_nodes_per_player;ii++) {
         
            for(i = 0; i < players.size; i++) {
                  
               player = players[i];
                     
               if(isAlive(player)) {
               
                  x= 350-randomfloat(700);
                  y= 350-randomfloat(700);               
            
                     pos = player.origin +(x,y,200) ;                  
                     trace = bulletTrace(pos,pos +(0,0,-250), true, undefined);
                     
                     if(trace["fraction"] != 1) playfx(level.rasta_cod2_rain,trace["position"]);            
                     wait 0.05;
                                           
               }                  
            }
         }               
      }
      
      wait 0.05;
   }   
}


Share |
ivan_cro
General Member
Since: Jul 21, 2008
Posts: 463
Last: Oct 27, 2010
[view latest posts]
Level 5
Category: CoD2 MP Mapping
Posted: Friday, Sep. 10, 2010 05:19 pm
This has to work.

Your mapname.gsc:

Code:
main()
{

maps\mp\_load::main();
maps\mp\YOURMAPNAME_fx::main();

level.rasta_cod2_rain = loadfx ("fx/misc/snow_light.efx");

}


Your mapname_fx.gsc:

Code:
//Script by rasta, please credit if used
main()
{
     level thread rasta_cod2_rain();
}

rasta_cod2_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<max_nodes_per_player;ii++) {
         
            for(i = 0; i < players.size; i++) {
                  
               player = players[i];
                     
               if(isAlive(player)) {
               
                  x= 350-randomfloat(700);
                  y= 350-randomfloat(700);               
            
                     pos = player.origin +(x,y,200) ;                  
                     trace = bulletTrace(pos,pos +(0,0,-250), true, undefined);
                     
                     if(trace["fraction"] != 1) playfx(level.rasta_cod2_rain,trace["position"]);            
                     wait 0.05;
                                           
               }                  
            }
         }               
      }
      
      wait 0.05;
   }   
}


Hope this works for ya.

ivan_cro




Share |
cod2fun
General Member
Since: Aug 26, 2009
Posts: 75
Last: Sep 13, 2010
[view latest posts]
Level 3
Category: CoD2 MP Mapping
Posted: Friday, Sep. 10, 2010 07:51 pm
lol i forgot about my fx ...
Puno hvala ... [rocking]
Share |
lineage2soul
General Member
Since: Oct 25, 2010
Posts: 24
Last: Nov 8, 2010
[view latest posts]
Level 1
Category: CoD2 MP Mapping
Posted: Monday, Oct. 25, 2010 06:24 pm
its able to get snow or rain efx for Graphic Directx7?
Share |
clanhelio
General Member
Since: Aug 30, 2008
Posts: 223
Last: Mar 24, 2011
[view latest posts]
Level 4
Category: CoD2 MP Mapping
Posted: Tuesday, Oct. 26, 2010 10:12 am
Rain yes, Snow no.
Share |
lineage2soul
General Member
Since: Oct 25, 2010
Posts: 24
Last: Nov 8, 2010
[view latest posts]
Level 1
Category: CoD2 MP Mapping
Posted: Tuesday, Oct. 26, 2010 10:45 am
but why no?
Share |
IzNoGoD
General Member
Since: Nov 29, 2008
Posts: 694
Last: Nov 10, 2012
[view latest posts]
Level 6
Category: CoD2 MP Mapping
Posted: Tuesday, Oct. 26, 2010 01:12 pm
Snow in air is possible. Snow on ground is impossible.
Share |
BraX
General Member
Since: Apr 29, 2008
Posts: 413
Last: May 26, 2012
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD2 MP Mapping
Posted: Tuesday, Oct. 26, 2010 04:28 pm
IzNoGoD writes...
Quote:
Snow in air is possible. Snow on ground is impossible.

It is possible but you will have to create new effect for that or edit old one.

lineage2soul writes...
Quote:
its able to get snow or rain efx for Graphic Directx7?

Sure it is rain and snow are just 2d particles, they can be rendered in both modes.

I will correct ivan's script:

Code:
main()
{
maps\mp\_load::main();
level.rasta_cod2_rain = loadfx ("fx/misc/snow_light.efx"); // this must be before calling fx script
maps\mp\YOURMAPNAME_fx::main();
}
Share |
clanhelio
General Member
Since: Aug 30, 2008
Posts: 223
Last: Mar 24, 2011
[view latest posts]
Level 4
Category: CoD2 MP Mapping
Posted: Tuesday, Oct. 26, 2010 07:53 pm
IzNoGoD writes...
Quote:
Snow in air is possible. Snow on ground is impossible.

Wat.
Share |
IzNoGoD
General Member
Since: Nov 29, 2008
Posts: 694
Last: Nov 10, 2012
[view latest posts]
Level 6
Category: CoD2 MP Mapping
Posted: Tuesday, Oct. 26, 2010 08:31 pm
clanhelio writes...
Quote:
IzNoGoD writes...
Quote:
Snow in air is possible. Snow on ground is impossible.

Wat.


Snow in air (aka: snowing) is possible, but snow on ground like in cod4 crash snow is impossible, it requires a whole new map
Share |
Restricted Access Topic is Locked
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 MP Mapping

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»