Author |
Topic: fx issue with my map |
damo56 |
General Member Since: May 29, 2009 Posts: 29 Last: Aug 20, 2010 [view latest posts] |
|
|
Category: CoD4 MP Mapping Posted: Monday, Apr. 5, 2010 09:30 am |
|
i have added in fx using gsc scripts but they dont show in game. i tried using a script_struct for my fireplace and it worked.
i have searched on a couple of different forums and havent been able to work this out yet.
these are my gsc files
mp_snow.gsc
main()
{
maps\mp\_load::main();
maps\mp\mp_snow_fx::main();
maps\mp\_breakglass::main();
game["allies"] = "sas";
game["axis"] = "russian";
game["attackers"] = "allies";
game["defenders"] = "axis";
game["allies_soldiertype"] = "woodland";
game["axis_soldiertype"] = "woodland";
setdvar( "r_specularcolorscale", "1" );
}
mp_snow_fx (in maps/mp)
main()
{
level._effect[ "water_level_edge" ] = loadfx( "misc/water_level_edge" );
level._effect[ "car_damage_blacksmoke" ] = loadfx( "smoke/car_damage_blacksmoke" );
level._effect[ "snow" ] = loadfx( "snow_damo" );
/#
if ( getdvar( "clientSideEffects" ) != "1" )
maps\createfx\mp_snow_fx::main();
#/
}
mp_snow_fx (in maps/createfx)
main()
{
ent = maps\mp\_utility::createLoopEffect("water_level_edge" );
ent.v[ "origin" ] = ( -952, 8, -1032 );
ent.v[ "angles" ] = ( 0, 2.50448, 0 );
ent.v[ "fxid" ] = "water_level_edge";
ent.v[ "delay" ] = -15;
ent = maps\mp\_utility::createLoopEffect("car_damage_blacksmoke" );
ent.v[ "origin" ] = ( -736, 944, -944 );
ent.v[ "angles" ] = ( 0, 0, 0 );
ent.v[ "fxid" ] = "car_damage_blacksmoke";
ent.v[ "delay" ] = -15;
ent = maps\mp\_utility::createOneshotEffect( "snow" );
ent.v[ "origin" ] = ( 0, 0, -1232 );
ent.v[ "angles" ] = ( 270, 0, 0 );
ent.v[ "fxid" ] = "snow";
ent.v[ "delay" ] = -15;
}
just so you know snow_damo is a custom fx
thanks in advance |
|
|
|
cskiller86 |
|
General Member Since: Nov 23, 2009 Posts: 528 Last: Oct 25, 2011 [view latest posts] |
|
|
|
Infern4ll |
|
General Member Since: Feb 8, 2010 Posts: 94 Last: Jun 4, 2010 [view latest posts] |
|
|
Category: CoD4 MP Mapping Posted: Tuesday, Apr. 6, 2010 05:19 pm |
|
I hope You didn't forgot to add Your effects into zone file ;)
Code:
fx,misc/water_edge
fx,smoke/car_damage_blacksmoke
fx,smoke_damo
If You did forgot, add them and rebuild fast files ;) |
|
|
|
damo56 |
General Member Since: May 29, 2009 Posts: 29 Last: Aug 20, 2010 [view latest posts] |
|
|
|
Infern4ll |
|
General Member Since: Feb 8, 2010 Posts: 94 Last: Jun 4, 2010 [view latest posts] |
|
|
Category: CoD4 MP Mapping Posted: Wednesday, Apr. 7, 2010 09:26 pm |
|
Code: //_createfx generated. Do not touch!!
Add this line at the beinning of mp_snow_fx.gsc in maps/createfx
Trust me it will work.
I had the same problem
Script should look like that:
Code:
//_createfx generated. Do not touch!!
main()
{
ent = maps\mp\_utility::createLoopEffect("water_level_edge" );
ent.v[ "origin" ] = ( -952, 8, -1032 );
ent.v[ "angles" ] = ( 0, 2.50448, 0 );
ent.v[ "fxid" ] = "water_level_edge";
ent.v[ "delay" ] = -15;
ent = maps\mp\_utility::createLoopEffect("car_damage_blacksmoke" );
ent.v[ "origin" ] = ( -736, 944, -944 );
ent.v[ "angles" ] = ( 0, 0, 0 );
ent.v[ "fxid" ] = "car_damage_blacksmoke";
ent.v[ "delay" ] = -15;
ent = maps\mp\_utility::createOneshotEffect( "snow" );
ent.v[ "origin" ] = ( 0, 0, -1232 );
ent.v[ "angles" ] = ( 270, 0, 0 );
ent.v[ "fxid" ] = "snow";
ent.v[ "delay" ] = -15;
}
Btw. If fx is not loading allways check console in game "shift + ~" and look for red infos :)
|
|
|
|
damo56 |
General Member Since: May 29, 2009 Posts: 29 Last: Aug 20, 2010 [view latest posts] |
|
|
|
DemonSeed |
General Member Since: Apr 30, 2009 Posts: 1362 Last: Feb 19, 2018 [view latest posts] |
|
|
|
Category: CoD4 MP Mapping Posted: Thursday, Apr. 8, 2010 08:53 am |
|
Infern4ll writes...Quote: Code: //_createfx generated. Do not touch!!
Add this line at the beinning of mp_snow_fx.gsc in maps/createfx
Trust me it will work.
I had the same problem
LoL how can a commented out line help? Its a developer note. Nothing more, nothing less. It isnt used by the code at all - the double forward slashes make the dev note "invisible" to the game. |
|
|
|
damo56 |
General Member Since: May 29, 2009 Posts: 29 Last: Aug 20, 2010 [view latest posts] |
|
|
|
DemonSeed |
General Member Since: Apr 30, 2009 Posts: 1362 Last: Feb 19, 2018 [view latest posts] |
|
|
|
Category: CoD4 MP Mapping Posted: Thursday, Apr. 8, 2010 11:41 am |
|
Try this;
Code: main()
{
ent = maps\mp\_utility::createoneshot( "water_level_edge" );
ent.v[ "origin" ] = ( -952, 8, -1032 );
ent.v[ "angles" ] = ( 0, 0, 0 );
ent.v[ "fxid" ] = "water_level_edge";
ent.v[ "delay" ] = -15;
ent = maps\mp\_utility::createoneshot( "car_damage_blacksmoke" );
ent.v[ "origin" ] = ( -736, 944, -944 );
ent.v[ "angles" ] = ( 0, 0, 0 );
ent.v[ "fxid" ] = "car_damage_blacksmoke";
ent.v[ "delay" ] = -15;
ent = maps\mp\_utility::createoneshot( "snow" );
ent.v[ "origin" ] = ( 0, 0, -1232 );
ent.v[ "angles" ] = ( 0, 0, 0 );
ent.v[ "fxid" ] = "snow";
ent.v[ "delay" ] = -15;
}
Never change the delay - its always -15 no matter what.
Also, I would hazard a guess and say the reason your effects werent working is because of the angels. If an effect doesnt show but the code is ok and everything is compiled properly, its usually the down to 2 things: the delay time is wrong or the angles are wrong. Thats when an FX wont show. |
|
|
|
cskiller86 |
|
General Member Since: Nov 23, 2009 Posts: 528 Last: Oct 25, 2011 [view latest posts] |
|
|
|