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

Members Online

»
0 Active | 61 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 Scripting
Scripting and coding with Call of Duty 2.
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: bug fx
TheArmy
General Member
Since: Jun 24, 2006
Posts: 599
Last: Dec 25, 2009
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Wednesday, Mar. 5, 2008 09:02 am
how do i add that bug or fly fx that is usually found near kitchens or by dead animals?
Share |
TheArmy
General Member
Since: Jun 24, 2006
Posts: 599
Last: Dec 25, 2009
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Wednesday, Mar. 5, 2008 05:36 pm
bump please
Share |
TheArmy
General Member
Since: Jun 24, 2006
Posts: 599
Last: Dec 25, 2009
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Wednesday, Mar. 5, 2008 10:18 pm
here is my code for my fx.gsc file. the map loads without any errors but i dont see the flies.

Code:
main()
{
precacheFX();
ambientFX();
level.scr_sound["flak88_explode"] = "flak88_explode";
}

precacheFX()
{

level._effect["flak_explosion"] = loadfx("fx/explosions/flak88_explosion.efx");
level._effect["ground_fire_med"] = loadfx("fx/fire/ground_fire_med.efx");
level._effect["dust_wind"] = loadfx ("fx/dust/dust_wind_brown_thick.efx");
level._effect["tank_fire_engine"] = loadfx ("fx/fire/tank_fire_engine.efx");
level._effect["tiger_fire_turret_large"] = loadfx ("fx/fire/tiger_fire_turret_large.efx"); 
level._effect["insects_carcass_flies"] = loadfx ("fx/misc/insects_carcass_flies.efx"); 

}

ambientFX()
{

level._effect["thin_light_smoke_L"] = loadfx ("fx/smoke/thin_light_smoke_L.efx");

level._effect["fogbank_small_duhoc"] = loadfx ("fx/misc/fogbank_small_duhoc.efx");

level._effect["insects_carcass_flies"] = loadfx ("fx/misc/insects_carcass_flies.efx");

level._effect["building_fire_distant"] = loadfx ("fx/fire/building_fire_distant.efx");

maps\mp\_fx::loopfx("dust_wind", (148,976,8), 3, (148,976,16));

maps\mp\_fx::loopfx("tiger_fire_turret_large", (-2286, 975, 96), 1, (-2286, 975, 110));

maps\mp\_fx::loopfx("tank_fire_engine", (-2312, 1072, 0), 1, (-2312, 1072, 16));

maps\mp\_fx::loopfx("tank_fire_engine", (-2264, 872, 0), 1, (-2264, 872, 16));

maps\mp\_fx::soundfx("medfire", (-2294, 975, 64));

maps\mp\_fx::loopfx("insects_carcass_flies", ("-2368, -560, 48"), 1, ("-2368, -560, 56"));

maps\mp\_fx::loopfx("insects_carcass_flies", ("-1528, 768, 40"), 1, ("-1528, 768, 48"));

maps\mp\_fx::loopfx("insects_carcass_flies", ("-1864, 2864, 40"), 1, ("-1864, 2864, 48"));

maps\mp\_fx::loopfx("insects_carcass_flies", ("-144, 2904, 56"), 1, ("-144, 2904, 64"));

maps\mp\_fx::loopfx("insects_carcass_flies", ("664, 1296, 40"), 1, ("664, 1296, 48"));

}
Share |
TheArmy
General Member
Since: Jun 24, 2006
Posts: 599
Last: Dec 25, 2009
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Thursday, Mar. 6, 2008 04:28 am
bump please
Share |
SWS2000
General Member
Since: May 12, 2006
Posts: 193
Last: Jun 14, 2008
[view latest posts]
Level 4
Category: CoD2 Scripting
Posted: Thursday, Mar. 6, 2008 04:17 pm
Did you put the fx in missing asset?

I put mine in like"fx,explosions/grenadeexp_concrete_2"

edited on Mar. 6, 2008 11:17 am by {MASS}Sgt
Share |
TheArmy
General Member
Since: Jun 24, 2006
Posts: 599
Last: Dec 25, 2009
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Thursday, Mar. 6, 2008 04:31 pm
i dont know what u mean by missing asset? i just tried to follow this:
http://www.modsonline.com/Forums-top-66151-0.html%23589437
Share |
SWS2000
General Member
Since: May 12, 2006
Posts: 193
Last: Jun 14, 2008
[view latest posts]
Level 4
Category: CoD2 Scripting
Posted: Thursday, Mar. 6, 2008 04:38 pm
What I even found is that this fx is looped by its own (Effects Ed), maybe you need to go for playfx instead of loopfx

When you update your zonefile put this in the right side
"fx,misc/insects_carcass_flies"

maps\mp\_fx::loopfx("insects_carcass_flies", ("-1864, 2864, 40"), 1));

for each coordibate you have to load the fx seperate, too. wait i edit your script
edited on Mar. 6, 2008 11:40 am by {MASS}Sgt

edited on Mar. 6, 2008 11:43 am by {MASS}Sgt
Share |
SWS2000
General Member
Since: May 12, 2006
Posts: 193
Last: Jun 14, 2008
[view latest posts]
Level 4
Category: CoD2 Scripting
Posted: Thursday, Mar. 6, 2008 04:49 pm
try this
Code:
main()
{
precacheFX();
ambientFX();
level.scr_sound["flak88_explode"] = "flak88_explode";
}

precacheFX()
{

level._effect["flak_explosion"] = loadfx("fx/explosions/flak88_explosion.efx");
level._effect["ground_fire_med"] = loadfx("fx/fire/ground_fire_med.efx");
level._effect["dust_wind"] = loadfx ("fx/dust/dust_wind_brown_thick.efx");
level._effect["tank_fire_engine"] = loadfx ("fx/fire/tank_fire_engine.efx");
level._effect["tiger_fire_turret_large"] = loadfx ("fx/fire/tiger_fire_turret_large.efx"); 
level._effect["insects_carcass_flies"] = loadfx ("fx/misc/insects_carcass_flies.efx"); 

}

ambientFX()
{

level._effect["thin_light_smoke_L"] = loadfx ("fx/smoke/thin_light_smoke_L.efx");

level._effect["fogbank_small_duhoc"] = loadfx ("fx/misc/fogbank_small_duhoc.efx");

level._effect["insects_carcass_flies"] = loadfx ("fx/misc/insects_carcass_flies.efx");

level._effect["building_fire_distant"] = loadfx ("fx/fire/building_fire_distant.efx");

maps\mp\_fx::loopfx("dust_wind", (148,976,8), 3, (148,976,16));

maps\mp\_fx::loopfx("tiger_fire_turret_large", (-2286, 975, 96), 1));
maps\mp\_fx::loopfx("tiger_fire_turret_large", (-2286, 975, 110), 1));

maps\mp\_fx::loopfx("tank_fire_engine", (-2312, 1072, 0), 1));
maps\mp\_fx::loopfx("tank_fire_engine", (-2312, 1072, 16), 1));

maps\mp\_fx::loopfx("tank_fire_engine", (-2264, 872, 0), 1));
maps\mp\_fx::loopfx("tank_fire_engine", (-2264, 872, 16), 1));

maps\mp\_fx::soundfx("medfire", (-2294, 975, 64));

maps\mp\_fx::loopfx("insects_carcass_flies", ("-2368, -560, 48"), 1));
maps\mp\_fx::loopfx("insects_carcass_flies", ("-2368, -560, 56"), 1));

maps\mp\_fx::loopfx("insects_carcass_flies", ("-1528, 768, 40"), 1));
maps\mp\_fx::loopfx("insects_carcass_flies", ("-1528, 768, 48"), 1));

maps\mp\_fx::loopfx("insects_carcass_flies", ("-1864, 2864, 40"), 1,));
maps\mp\_fx::loopfx("insects_carcass_flies", ("-1864, 2864, 48"), 1,));

maps\mp\_fx::loopfx("insects_carcass_flies", ("-144, 2904, 56"), 1));
maps\mp\_fx::loopfx("insects_carcass_flies", ("-144, 2904, 64"), 1));

maps\mp\_fx::loopfx("insects_carcass_flies", ("664, 1296, 40"), 1));
maps\mp\_fx::loopfx("insects_carcass_flies", ("664, 1296, 48"), 1));

}
Share |
TheArmy
General Member
Since: Jun 24, 2006
Posts: 599
Last: Dec 25, 2009
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Thursday, Mar. 6, 2008 04:59 pm
ill try the code, but please note that this is for COD2 not COD4, there is no zone file
Share |
SWS2000
General Member
Since: May 12, 2006
Posts: 193
Last: Jun 14, 2008
[view latest posts]
Level 4
Category: CoD2 Scripting
Posted: Thursday, Mar. 6, 2008 05:07 pm
K, was still at COD 4, bvut with the coordinates it was the same in COD2. For each coordinate i had to load the fx seperate. Sorry for the cod4 stuff
Share |
Restricted Access Topic is Locked
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 Scripting

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

»