Droping Weapons Trigger?

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
RaptorX9
Private
Posts: 7
Joined: Thu Feb 03, 2005 4:27 am

Droping Weapons Trigger?

Post by RaptorX9 »

Yep... another n00b question >.<

The map I have created is in a jail setting, and I added underground network ect ect, hid weapons over the area...

Thing is when the allies spawn they have weapons, usually I jest say to every one drop your weapons to the axis, but currently we all want it to automatically drop are weapons,

So I?m asking on how to make a trigger, that makes it when the player spawns in a certain area (namely jail spawn) they drop all there weapons and cant pick them back up
(NOTE, lets say a allied FINDS a weapon, and he re-enters the jail<Not spawn, enter> I do NOT want it to drop jest because he ENTERD the area)

Could any one tell me how to do this?

Thanks
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Post by Master-Of-Fungus-Foo-D »

so, i think you want it to be like liberation in Breakthru, but you dont want the prisoners to come out of jail with weapons, they have to find the scattered ones... is that what youre saying?
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

parm.other takeall
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post by wacko »

lizardkid wrote:parm.other takeall
something like that, maybe. if there was a trigger_multiple doing this where players spawn, this would help. Plus another trigger multiple just outside the cell which would set a variable remembering that he has left the cell or whatever spawnplace before and deactivating the takeall trigger for that player.
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Post by Master-Of-Fungus-Foo-D »

(NOTE, lets say a allied FINDS a weapon, and he re-enters the jail<Not spawn, enter> I do NOT want it to drop jest because he ENTERD the area
to do that you cant use a trigger.. you gotta script it in, or make the trigger nottriggerable when the dor is open...
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

No just use trigger_multipleall (!) in combination with takeall... set a variable for the player when weapons have been taken so the script won't take again... just reset the variable when player dies and you're done :)
Image
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post by wacko »

jv_map wrote:No just use trigger_multipleall (!) in combination with takeall... set a variable for the player when weapons have been taken so the script won't take again... just reset the variable when player dies and you're done :)
errrm, no, this would take weapons for of all players entering the cell for the 1st time, bad for axis :wink: U'd need the trigger outside the door to deactivate the takeall thing

but why a trigger_multipleall instead of trigger_multiple? Don't get the difference :oops: .
Did u know that this is the only post with the word 'trigger_multipleall'?! :wink:
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Oh uhm obviously don't take weapons when dmteam is axis :wink:

trigger_multipleall fires for all players in a trigger (parm.other changes every firing), trigger_multiple keeps firing for the same player all the time (parm.other doesn't change).
Image
RaptorX9
Private
Posts: 7
Joined: Thu Feb 03, 2005 4:27 am

Post by RaptorX9 »

Ok... thanks for all the replies, they?ve kind of told me that I got to make a trigger multiple and have it kind of pop out the door a little... I got that but you guys never told me what to put in its values lol...

And remember this is Team Death Match, and if I do have to script could some one give me an example of what it would look like with all the other things :oops:


Thanks
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post by wacko »

ok. try this.
it's map, bsp and script. didn't test it in mp, so dunno what could happen there... Here's the script

Code: Select all

main:
	level waittill prespawn
	level waittill spawn
end
keepweapon:
$keepweapontrigger nottriggerable
level.player = parm.other
level.player.keepweapon = 1
$keepweapontrigger triggerable
wait .5
end

unarm:
$unarmtrigger nottriggerable
level.player = parm.other
if !(level.player.keepweapon)
	{
	level.player takeall
	}
wait .5
$unarmtrigger triggerable
end
In the map there is: in the cell a trigger_multipleall with targetname/unarmtrigger and setthread/unarm and in the cell's door, there's another trigger_multipleall with targetname/keepweapontrigger and setthread/keepweapon
Hopefully someone who can script better will tell u how it should be done :oops:
Post Reply