MODSon[line.com] Wiki - Beta 1.0

Call of Duty 4: mapname fx.gsc

From MODSonline Wiki

Jump to: navigation, search

Used to load the effects you wish to use in your map. There are two necessary files for this.

mp_mapname_fx.gsc - Located in raw/maps/mp/

main()
{
	level._effect[ "normal_fire" ]					 		= loadfx( "fire/firelp_barrel_pm" );
	level._effect[ "small_fire" ]					 		= loadfx( "fire/firelp_small_pm" );
	level._effect[ "amb" ]					 			= loadfx( "smoke/amb_dust" );

	if ( getdvar( "clientSideEffects" ) != "1" )
		maps\createfx\mp_mapname_fx::main();

}

Used to define origin and angles of the fx. If you do not have the createfx folder, create it.

mp_mapname_fx.gsc - Located in raw/maps/createfx/

main()
{

	ent = maps\mp\_utility::createOneshotEffect( "fire/firelp_barrel_pm");
	ent.v[ "origin" ] = ( -300, 1128, 204 );
	ent.v[ "angles" ] = ( 0, 270, 0 );
	ent.v[ "fxid" ] = "normal_fire";
	ent.v[ "delay" ] = -1;

	ent = maps\mp\_utility::createOneshotEffect( "fire/firelp_small_pm");
	ent.v[ "origin" ] = ( 140, 544, 100 );
	ent.v[ "angles" ] = ( 0, 180, 0 );
	ent.v[ "fxid" ] = "small_fire";
	ent.v[ "delay" ] = -1;

	ent = maps\mp\_utility::createOneshotEffect( "smoke/amb_dust");
	ent.v[ "origin" ] = ( 191, 1173, -95 );
	ent.v[ "angles" ] = ( 0, 180, 0 );
	ent.v[ "fxid" ] = "amb";
	ent.v[ "delay" ] = -1;

}
Personal tools