[Useful]Strip weapons from players

Discussion in 'Tutorials & Resources' started by Q-Ball, Dec 11, 2009.

  1. Q-Ball

    Q-Ball L1: Registered

    Messages:
    6
    Positive Ratings:
    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: Dec 11, 2009
  2. martijntje

    martijntje L8: Fancy Shmancy Member

    Messages:
    539
    Positive Ratings:
    168
    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: Dec 11, 2009
  3. Q-Ball

    Q-Ball L1: Registered

    Messages:
    6
    Positive Ratings:
    0
    The same thing mate!
    I only want to show one of the ways to do that.
     
    Last edited: Dec 11, 2009
  4. martijntje

    martijntje L8: Fancy Shmancy Member

    Messages:
    539
    Positive Ratings:
    168
    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
     
    • Thanks Thanks x 1
  5. Daedryon

    Daedryon L3: Member

    Messages:
    134
    Positive Ratings:
    3
    Perfect!

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

    mal415 L1: Registered

    Messages:
    4
    Positive Ratings:
    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
     
  7. thecooldude498

    thecooldude498 L1: Registered

    Messages:
    1
    Positive Ratings:
    0
    pretty sure, using !activator as the target will only happen to the player that touches it.
     
  8. TehStoneMan

    TehStoneMan L1: Registered

    Messages:
    46
    Positive Ratings:
    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.
     
  9. moxie2020

    moxie2020 L1: Registered

    Messages:
    24
    Positive Ratings:
    0
    Does this still work? I see other posts saying this causes crashes after the medic update.
     
  10. henke37

    aa henke37

    Messages:
    1,945
    Positive Ratings:
    461
    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?
     
  11. Bloodhound

    Bloodhound L6: Sharp Member

    Messages:
    316
    Positive Ratings:
    248
    Henke, nobody likes point_servercommand. And probably nobody will run your map if you use it.
     
  12. henke37

    aa henke37

    Messages:
    1,945
    Positive Ratings:
    461
    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.
     
  13. moxie2020

    moxie2020 L1: Registered

    Messages:
    24
    Positive Ratings:
    0
    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.