Page 1 of 1

planting one useable nade

Posted: May 23rd, 2007, 3:48 pm
by waywaaaard
hi normally on maps without nadejumps the nades are disabeled on the cj-server but i need one nade due to a cool effect
and i want only one nade there and the next respawning only if the trigger isnt moved; is that possible?

Code: Select all

floor6_vent_des()
{
des_trig = getent ("floor6_vent_trigger", "targetname");
fd_static = getent ("floor6_vent_static", "targetname");
while(1)
{
des_trig waittill ("damage");
fd_static hide();
des_trig enablelinkto();
des_trig linkto(fd_static);
fd_static moveY (46, 1, 0.5, 0.5);
break;
}
}

before: http://leviathan-design.de/~upload1/shot0066.jpg
nade : http://leviathan-design.de/~upload1/shot0067.jpg
des : http://leviathan-design.de/~upload1/shot0068.jpg

hope someone can help me

Posted: May 23rd, 2007, 8:42 pm
by Nightmare
there is an easier way to make the script.

Code: Select all

floor6_vent_des()
{
des_trig = getent ("floor6_vent_trigger", "targetname");
fd_static = getent ("floor6_vent_static", "targetname");
while(1)
{
des_trig waittill ("damage");
fd_static hide();
fd_static notsolid();
}
}
As for the grenade, I am afraid its not possible. But, you could try shooting it.

Posted: May 23rd, 2007, 9:47 pm
by waywaaaard
ok it was just a cool effect with the nade so i will make it like the other damage_trigger with level.AddDamage1

Posted: May 24th, 2007, 5:31 pm
by [SoE]_Zaitsev
Are you trying to shoot a nade so it destroys like a Satchel Charge or ?

Posted: May 24th, 2007, 5:43 pm
by waywaaaard
no try this version; the last part with the elevator once u got to the a-labs floor there is a vent
and up to now the first one who reaches this place has to destroy it with an nade

http://leviathan-design.de/~upload1/jum ... lities.iwd

Posted: May 24th, 2007, 7:04 pm
by [SoE]_Zaitsev
Ah right :)