Welcome to Mappers United

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more!

This message will be removed once you have signed in.

Archived

This topic is now archived and is closed to further replies.

Dundy

Rain

Had it working but not anymore....what am i missing..

 

Here the mp_alcatraz.csv

ignore,code_post_gfx_mp
ignore,common_mp
ignore,localized_code_post_gfx_mp
ignore,localized_common_mp
col_map_mp,maps/mp/mp_alcatraz.d3dbsp
impactfx,mp_alcatraz
sound,common,mp_alcatraz,!all_mp
sound,generic,mp_alcatraz,!all_mp
sound,voiceovers,mp_alcatraz,!all_mp
sound,multiplayer,mp_alcatraz,!all_mp
xmodel,static_mp_supplies_x
xmodel,static_mp_supplies
xmodel,body_mp_usmc_specops
xmodel,head_mp_usmc_tactical_mich_stripes_nomex
xmodel,body_mp_usmc_sniper
xmodel,head_mp_usmc_tactical_baseball_cap
xmodel,body_mp_usmc_recon
xmodel,head_mp_usmc_nomex
xmodel,body_mp_usmc_assault
xmodel,head_mp_usmc_tactical_mich
xmodel,body_mp_usmc_support
xmodel,head_mp_usmc_shaved_head
xmodel,body_mp_arab_regular_cqb
xmodel,head_mp_arab_regular_headwrap
xmodel,viewhands_desert_opfor
xmodel,body_mp_arab_regular_sniper
xmodel,head_mp_arab_regular_sadiq
xmodel,body_mp_arab_regular_engineer
xmodel,head_mp_arab_regular_ski_mask
xmodel,body_mp_arab_regular_assault
xmodel,head_mp_arab_regular_suren
xmodel,body_mp_arab_regular_support
xmodel,head_mp_arab_regular_asad
rawfile,vision/mp_alcatraz.vision
rawfile,maps/mp/_ac_fan_script.gsc
rawfile,maps/mp/mp_alcatraz.gsc
rawfile,maps/mp/mp_alcatraz_struct.gsc
fx,ambient_runners/mp_farm_water_noise_ud01
fx,ambient_runners/mp_farm_water_noise01
fx,weather/rain_heavy_cloudtype
fx,weather/lightning_a

Here is 

mp_alcatraz.gsc

 

main()
{
        maps\mp\_load::main();	
        maps\mp\mp_alcatraz_struct::main();	
	
        setdvar ( "scr_sd_multibomb", "1" );
	
	maps\mp\_ac_fan_script::main();
	maps\mp\_compass::setupMiniMap("compass_map_mp_bloc");

	ambientPlay("ambient_middleeast_ext");

	game["allies"] = "sas";
	game["axis"] = "russian";
	game["attackers"] = "axis";
	game["defenders"] = "allies";
	game["allies_soldiertype"] = "woodland";
	game["axis_soldiertype"] = "woodland";

	setdvar( "r_specularcolorscale", "4" );
        //setVolFog(60, 736, 2500, 0, 0.125, 0.157, 0.212, 0.0);
        
	setdvar("compassmaxrange","2000");
	
	// raise up planes to avoid them flying through buildings
	level.airstrikeHeightScale = 1.8;
}

Here is the mp_alcatraz_struct.gsc

#include common_scripts\utility;
#include maps\mp\_utility;

// This script automaticly plays a users specified oneshot effect on all prefabs that have the
// specified "script_struct" and "targetname" It also excepts angles from the "script_struct"
// but will set a default angle of ( 0, 0, 0 ) if none is defined.
//
// example of the syntax:
// global_FX( "targetname", "fxIDname", "fxFile", "delay"

main()
{

randomStartDelay = randomfloatrange( -20, -15);


global_FX( "rain_heavy_cloudtypeFX_origin", "rain_heavy_cloudtype", "weather/rain_heavy_cloudtype", randomStartDelay );
global_FX( "lightning_aFX_origin", "lightning_a", "weather/lightning_a", randomStartDelay );



}

global_FX( targetname, fxName, fxFile, delay, soundalias )
{
// script_structs
ents = getstructarray(targetname,"targetname");
if ( !isdefined( ents ) )
return;
if ( ents.size <= 0 )
return;

for ( i = 0 ; i < ents.size ; i++ )
ents[i] global_FX_create( fxName, fxFile, delay, soundalias );
}

global_FX_create( fxName, fxFile, delay, soundalias )
{
if ( !isdefined( level._effect ) )
level._effect = [];
if ( !isdefined( level._effect[ fxName ] ) )
level._effect[ fxName ] = loadfx( fxFile );

// default effect angles if they dont exist
if ( !isdefined( self.angles ) )
self.angles = ( 0, 0, 0 );

ent = createOneshotEffect( fxName );
ent.v[ "origin" ] = ( self.origin );
ent.v[ "angles" ] = ( self.angles );
ent.v[ "fxid" ] = fxName;
ent.v[ "delay" ] = delay;
if ( isdefined( soundalias ) )
{
ent.v[ "soundalias" ] = soundalias;
}
}

 

Share this post


Link to post

Why dont you do the whole thunder, rain and lightning thing?  I have all the stuff from my tutorial on this if you want it.

 

The complete package is in our Download Section.

1 person likes this

Share this post


Link to post

Will have a go at it....

Share this post


Link to post

i already used that, and it works

 

 

C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\zone_source\mp_yourmap.csv

rawfile,maps/mp/yourmap.gsc
rawfile,maps/mp/yourmap_fx.gsc
rawfile,maps/createfx/yourmap_fx.gsc
....

fx, weather/rain_mp_farm
fx, weather/lightning_mp_farm

 

 

C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\raw\maps\mp\mp_yourmap.gsc

main()
{
maps\mp\mp_yourmap_fx::main();
maps\createfx\mp_yourmap_fx::main();  
maps\mp\_load::main();
maps\mp\_compass::setupMiniMap("compass_map_mp_yourmap");

game["allies"] = "marines";
game["axis"] = "opfor";

............

setdvar("compassmaxrange","1800");;
}

 

 

 

C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\raw\maps\mp\mp_yourmap_fx.gsc

main()
{
level._effect[ "rain_heavy_mist" ] = loadfx("weather/rain_mp_farm");
level._effect[ "lightning" ] = loadfx("weather/lightning_mp_farm");

/#
if ( getdvar( "clientSideEffects" ) != "1" )
maps\createfx\yourmap_fx::main();
#/

}

 

 

C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\raw\maps\createfx\mp_yourmap_fx_fx.gsc

main()
{

ent = maps\mp\_utility::createOneshotEffect( "weather/rain_mp_farm");
ent.v[ "origin" ] = ( 1500, 1000, 2000 );
ent.v[ "angles" ] = ( 270, 276, 0 );
ent.v[ "fxid" ] = "rain_heavy_mist";
ent.v[ "delay" ] = -1;

ent = maps\mp\_utility::createOneshotEffect( "weather/rain_mp_farm");
ent.v[ "origin" ] = ( 1500, 3000, 2000 );
ent.v[ "angles" ] = ( 270, 276, 0 );
ent.v[ "fxid" ] = "rain_heavy_mist";
ent.v[ "delay" ] = -1;


ent = maps\mp\_utility::createOneshotEffect( "weather/lightning_mp_farm");
ent.v[ "origin" ] = ( 32, -16, 2000 );
ent.v[ "angles" ] = ( 270, 276, 0 );
ent.v[ "fxid" ] = "lightning";
ent.v[ "delay" ] = -1;

}

 

 

1 person likes this

Share this post


Link to post

Got it working just have to tweak the height..and i chanced the rain fx...

Share this post


Link to post

Map Hosting by 4T4Chris

QRSB1oT.jpg

For all your Call of Duty

Map Hosting and Download needs!

Click on the link below

Click Here!

Banner / Logo

Feel Free to Use at your site!

Cut and Paste

Click on the link below to download the images together:

Click Here

Native image size is 400x400

mubutton.png

mubutton.png