Notices

[Useful]Strip weapons from players  Thread Tools Reply
Old 12-11-2009, 05:14 AM   #1
Q-Ball
L1: Registered
 
Q-Ball's Avatar
 
Q-Ball is offline
Posts: 6
Thanks: 2
Thanked: 0

Default [Useful]Strip weapons from players


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
 
Last edited by Q-Ball; 12-11-2009 at 06:57 AM.
Reply With Quote
Advertisement
 
Advertisement
Advertisement Sponsored links

Old 12-11-2009, 05:22 AM   #2
martijntje
Veteran Member
 
martijntje's Avatar
 
martijntje is offline
Posts: 521
Thanks: 91
Thanked: 158

Default [Useful]Strip weapons from players


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

__________________

 
Last edited by martijntje; 12-11-2009 at 05:29 AM.
Reply With Quote
Old 12-11-2009, 05:34 AM   #3
Q-Ball
L1: Registered
 
Q-Ball's Avatar
 
Q-Ball is offline
Posts: 6
Thanks: 2
Thanked: 0

Default [Useful]Strip weapons from players


Quote:
Originally Posted by martijntje View Post
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 by Q-Ball; 12-11-2009 at 05:40 AM.
Reply With Quote
Old 12-11-2009, 06:42 AM   #4
martijntje
Veteran Member
 
martijntje's Avatar
 
martijntje is offline
Posts: 521
Thanks: 91
Thanked: 158

Default [Useful]Strip weapons from players


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

__________________

 
Reply With Quote
The Following User Says Thank You to martijntje For This Useful Post:
Old 12-13-2009, 04:45 PM   #5
Daedryon
L3: Junior Member
 
Daedryon is offline
Posts: 130
Thanks: 17
Thanked: 3

Default [Useful]Strip weapons from players


Perfect!

I can use this tutorial to make a Melee Cage that removes all non-melee weapons upon entering!
 
Reply With Quote
Old 05-05-2012, 12:36 AM   #6
mal415
L1: Registered
 
mal415 is offline
Posts: 4
Thanks: 0
Thanked: 0

Default [Useful]Strip weapons from players


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
 
Reply With Quote
Old 07-17-2012, 11:25 AM   #7
thecooldude498
L1: Registered
 
thecooldude498's Avatar
 
thecooldude498 is offline
Posts: 1
Thanks: 0
Thanked: 0

Default [Useful]Strip weapons from players


Quote:
Originally Posted by mal415 View Post
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.

__________________
THE IMPOSSIBLE SOMETIMES CAN BE POSSIBLE
 
Reply With Quote
Old 07-17-2012, 05:58 PM   #8
TehStoneMan
L1: Registered
 
TehStoneMan's Avatar
 
TehStoneMan is offline
Posts: 41
Thanks: 1
Thanked: 3

Default [Useful]Strip weapons from players


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.
 
Reply With Quote
Old 01-22-2013, 12:55 AM   #9
moxie2020
L1: Registered
 
moxie2020 is offline
Posts: 24
Thanks: 0
Thanked: 0

Default [Useful]Strip weapons from players


Quote:
Originally Posted by martijntje View Post
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.
 
Reply With Quote
Old 01-22-2013, 02:56 AM   #10
henke37
L5: Alleged Expert
 
henke37's Avatar
 
henke37 is offline
Posts: 404
Thanks: 27
Thanked: 76

Default [Useful]Strip weapons from players


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?

__________________
Needs more trains.
 
Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Advertisement

Reply  

Previous Thread Next Thread
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -5. The time now is 05:11 AM.