planting one useable nade

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

Moderator: Core Staff

Post Reply
User avatar
waywaaaard
Core Staff
Core Staff
Posts: 2214
Joined: February 6th, 2006, 3:18 pm
Location: Germany/Bayern

planting one useable nade

Post by waywaaaard » May 23rd, 2007, 3:48 pm

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
THAT HANDS WERE NOT TRACED!
visit my blog: Link
Soviet wrote:Yeah, watch out, Peds will hit you with his +5 D-Battleaxe of homosexuality :roll:

User avatar
Nightmare
Core Staff
Core Staff
Posts: 2688
Joined: January 12th, 2006, 10:09 pm
Contact:

Post by Nightmare » May 23rd, 2007, 8:42 pm

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.
Coding is Poetry. Mapping is Art.
"Cause im the sexiest mapper ever...except for nm, that sexy man" - Soviet

-=[CoDJumper.com Movies]=-
[Ambush] || [Backlot] || [Bloc] || [Bog] || [Broadcast] || [Chinatown] || [Countdown]
[Crash] || [Creek] || [Crossfire] || [District] || [Downpour] || [Killhouse] || [Overgrown]
[Pipeline] || [Shipment & Wetwork] || [Showdown] || [Strike] || [Vacant]

User avatar
waywaaaard
Core Staff
Core Staff
Posts: 2214
Joined: February 6th, 2006, 3:18 pm
Location: Germany/Bayern

Post by waywaaaard » May 23rd, 2007, 9:47 pm

ok it was just a cool effect with the nade so i will make it like the other damage_trigger with level.AddDamage1
THAT HANDS WERE NOT TRACED!
visit my blog: Link
Soviet wrote:Yeah, watch out, Peds will hit you with his +5 D-Battleaxe of homosexuality :roll:

User avatar
[SoE]_Zaitsev
Core Staff
Core Staff
Posts: 14220
Joined: October 21st, 2004, 7:17 pm
Location: Holland
Contact:

Post by [SoE]_Zaitsev » May 24th, 2007, 5:31 pm

Are you trying to shoot a nade so it destroys like a Satchel Charge or ?
matt101harris wrote:big cock was the first thing that came to my head lol

User avatar
waywaaaard
Core Staff
Core Staff
Posts: 2214
Joined: February 6th, 2006, 3:18 pm
Location: Germany/Bayern

Post by waywaaaard » May 24th, 2007, 5:43 pm

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
THAT HANDS WERE NOT TRACED!
visit my blog: Link
Soviet wrote:Yeah, watch out, Peds will hit you with his +5 D-Battleaxe of homosexuality :roll:

User avatar
[SoE]_Zaitsev
Core Staff
Core Staff
Posts: 14220
Joined: October 21st, 2004, 7:17 pm
Location: Holland
Contact:

Post by [SoE]_Zaitsev » May 24th, 2007, 7:04 pm

Ah right :)
matt101harris wrote:big cock was the first thing that came to my head lol

Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests