[Useful]Strip weapons from players

Q-Ball

L1: Registered
Dec 8, 2009
6
0
So, with this tutorial you'll be capable to strip weapons from all players on your map.

1. Create entity "info_player_teamspawn".
2. Create "trigger_multiple" (It will be the place where server strip the weapons from players).
3. For "trigger_multiple":

- "Delay before Reset" set it to 0 or less (I set it to 0.1)

4. In "Outputs":

- "My output named": OnStartTouch
- "Targets entities named": XXXX*
- "Via this input": kill
*XXXX - its names of *.ctx files which you can find here http://forums.tf2maps.net/showthread.php?t=1805

5. Compile and enjoy!

Hopefully that could be useful for someone besides myself :p
 
Last edited:

Q-Ball

L1: Registered
Dec 8, 2009
6
0
I'm am pretty sure there is a better way
(not needing sv_cheats)
opens hammer right now
EDIT: my method didnt work, but I just hate having to use sv_cheats
The same thing mate!
I only want to show one of the ways to do that.
 
Last edited:

martijntje

L8: Fancy Shmancy Member
Aug 2, 2009
539
334
figured it out
just have a big trigger_multiple or something else that triggers quite often.
and on output have
tf_weapon_Scattergun kill (if you want to remove all the scatterguns and FaN's)
use tf_weapon* to remove all weapons

to look up weapon names: http://forums.tf2maps.net/showthread.php?t=1805

I'll make some prefabs later
 

Daedryon

L3: Member
Dec 5, 2009
134
3
Perfect!

I can use this tutorial to make a Melee Cage that removes all non-melee weapons upon entering!
 

mal415

L1: Registered
May 2, 2012
4
0
Any idea how this trigger could be set up to make it affect only those who touch it? Currently I have it at the entrance of a boxing ring and it's set up to remove all non-melee weapons however as soon as someone touches the trigger it removes weapons from the whole server and not just the person that touched it.

Anyone have any suggestions?

Thanks
 

thecooldude498

L1: Registered
Apr 11, 2011
1
0
Any idea how this trigger could be set up to make it affect only those who touch it? Currently I have it at the entrance of a boxing ring and it's set up to remove all non-melee weapons however as soon as someone touches the trigger it removes weapons from the whole server and not just the person that touched it.

Anyone have any suggestions?

Thanks

pretty sure, using !activator as the target will only happen to the player that touches it.
 

TehStoneMan

L1: Registered
Jun 15, 2012
46
5
You could try having a trigger set up that sends a client comand to the players that are touching it to switch to a melee weapon. That's what I did on my boxing map.
 

moxie2020

L1: Registered
May 18, 2012
24
0
figured it out
just have a big trigger_multiple or something else that triggers quite often.
and on output have
tf_weapon_Scattergun kill (if you want to remove all the scatterguns and FaN's)
use tf_weapon* to remove all weapons

to look up weapon names: http://forums.tf2maps.net/showthread.php?t=1805

I'll make some prefabs later

Does this still work? I see other posts saying this causes crashes after the medic update.
 

henke37

aa
Sep 23, 2011
2,075
515
A more appropriate solution would to set the weapon white list, since that is the provided way to manage weapon availability. Could a point_servercommand point it at a packed in file?
 

henke37

aa
Sep 23, 2011
2,075
515
I don't think that anyone would like a map that messes with what weapons are allowed either. Using a disliked solution to solve a disliked problem seems fitting.
 

moxie2020

L1: Registered
May 18, 2012
24
0
A more appropriate solution would to set the weapon white list, since that is the provided way to manage weapon availability. Could a point_servercommand point it at a packed in file?

Ideally I want a zone that strips weapons only in that zone and not for the entire map. I have not found a solution for this.