So I've tried everything I can think of and its not working for me.
I'm making a castle map and I created a torch prefab. I'm trying to make fire play at every torch in the map but I only get the Missing FX image playing instead of the fire fx.
Here's my torch script (mp_castle2_fire.gsc):
Code:
main()
{
Torch = getentarray("torch", "targetname");
for(i = 0; i < Torch.size; i++)
{
maps\mp\_fx::loopfx("fire", Torch[i].origin, 0.5);
maps\mp\_fx::loopfx("smoke", Torch[i].origin, 0.5);
}
//maps\mp\_fx::loopfx("fire", Torch.origin, 0.5);
}
mp_castle2.gsc:
Code:
main()
{
maps\mp\mp_castle2_fire::main();
maps\mp\mp_castle2_fx::main();
maps\mp\_load::main();
//maps\mp\mp_castle2_efx::main();
//maps\mp\_compass::setupMiniMap("compass_map_mp_bog");
ambientPlay("ambient_crossfire");
game["allies"] = "marines";
game["axis"] = "opfor";
game["attackers"] = "axis";
game["defenders"] = "allies";
game["allies_soldiertype"] = "desert";
game["axis_soldiertype"] = "desert";
setdvar( "r_specularcolorscale", "2" );
setdvar("compassmaxrange","1800");
}
mp_castle2_fx.gsc:
Code:
main()
{
level._effect["fire"] = loadfx("fire\firelp_small_dl");
level._effect["smoke"] = loadfx("smoke\thin_black_smoke_M");
}
My zone file has:
Code:
ignore,code_post_gfx_mp
ignore,common_mp
ignore,localized_code_post_gfx_mp
ignore,localized_common_mp
col_map_mp,maps/mp/mp_castle2.d3dbsp
rawfile,maps/mp/mp_castle2.gsc
rawfile,maps/mp/mp_castle2_fire.gsc
rawfile,maps/mp/mp_castle2_fx.gsc
impactfx,mp_castle2
sound,common,mp_castle2,!all_mp
sound,generic,mp_castle2,!all_mp
sound,voiceovers,mp_castle2,!all_mp
sound,multiplayer,mp_castle2,!all_mp
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
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
fx,fire/firelp_small_dl
fx,smoke/thin_black_smoke_m
IDK what else to do.. I've created fx before with no problems lol
Thanks =)
edited on Mar. 4, 2010 12:40 am by Vistrum
*EDIT*
Also, when i load the game my zone file puts messed up versions of the fx on the left side:
fx,firefirelp_small_dl
fx,smoke hin_black_smoke_m