help me with nuclear? xD

Have questions about CoD2 mapping that aren't covered in the tutorials section? Post here!

Moderator: Core Staff

Post Reply
Levcek
CJ Fan
CJ Fan
Posts: 129
Joined: March 7th, 2010, 11:37 am
Location: sLOVEnia, stajerska FTW

help me with nuclear? xD

Post by Levcek » June 27th, 2010, 3:02 pm

well im making my map and i put in my barrelnuke :) well map works and other works but when i shot the barrel, barrel explodes but not with atom_smoke.efx but it explodes with barrel_explode.efx

Code: Select all

main()
{

level._effect["barrelexpl"] = loadfx("fx/explosions/atom_smoke.efx");


voor = getent("barrelv1","targetname");
naexp = getent("barrelN1","targetname");
trigger = getent("barrelt1","targetname");
fxorigin = getent("barrelo1","targetname");
explode1 = getent("floor_hide","targetname");
explode2 = getent("floor_show","targetname");

naexp hide();
naexp notsolid();

trigger waittill("damage");

playfx(level._effect["barrelexpl"], fxorigin.origin);
fxorigin playsound("expltonnen");

trigger delete();
voor hide();
voor notsolid();
explode1 delete();
explode2 show();
naexp show();
naexp solid();
}

to anybody know why??? (i put atom_smoke.efx in iw_07.iwd)ž

tnx:D
__________________________________________________________

Image THE MAPPER
__________________________________________________________

Image

User avatar
Rezil
Core Staff
Core Staff
Posts: 2030
Joined: July 24th, 2006, 11:21 am
Location: Cramped in a small cubicle/making another jump map

Re: help me with nuclear? xD

Post by Rezil » June 27th, 2010, 6:32 pm

Code: Select all

main()
{
	thread explode();
}

explode()
{

	fx = loadfx("fx/fire/atom_smoke.efx");
	voor = getent("barrelv1","targetname");
	naexp = getent("barrelN1","targetname");
	trigger = getent("barrelt1","targetname");
	fxorigin = getent("barrelo1","targetname");
	explode1 = getent("floor_hide","targetname");
	explode2 = getent("floor_show","targetname");

	naexp hide();
	naexp notsolid();

	trigger waittill("trigger",other);

	playfx(fx, fxorigin.origin);
	fxorigin playsound("expltonnen");

	trigger delete();
	voor hide();
	voor notsolid();
	explode1 delete();
	explode2 show();
	naexp show();
	naexp solid();
	other iprintlnbold ("^1BoOM!!!!!!");
	wait 2;
}
You were playing "barrelexp1" instead of your own effect(it was overwritten). Should work now as long as atom_smoke.efx is in fx/fire.
Drofder2004: Drofder's rules for reviewing a map
[...]
#5 If your name is Rezil, minimum 5/5.
---
<LT>YosemiteSam[NL]:
I heard somewhere that the best way to start is juggling 2 balls with one hand, so you will get a feel for it.

Levcek
CJ Fan
CJ Fan
Posts: 129
Joined: March 7th, 2010, 11:37 am
Location: sLOVEnia, stajerska FTW

Re: help me with nuclear? xD

Post by Levcek » June 27th, 2010, 6:35 pm

tnx m8 ur the best :P
__________________________________________________________

Image THE MAPPER
__________________________________________________________

Image

Levcek
CJ Fan
CJ Fan
Posts: 129
Joined: March 7th, 2010, 11:37 am
Location: sLOVEnia, stajerska FTW

Re: help me with nuclear? xD

Post by Levcek » June 27th, 2010, 7:17 pm

hm.. still dont work map dont start xD
__________________________________________________________

Image THE MAPPER
__________________________________________________________

Image

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests