Melee On Trigger?

Discussion in 'Mapping Questions & Discussion' started by NeonHeights, Dec 30, 2014.

  1. NeonHeights

    NeonHeights L1: Registered

    Messages:
    25
    Positive Ratings:
    5
    Does anybody know how you can enable melee mode on trigger or within a trigger box so that it can be enabled/disabled? I dont think there is a cvar for it and the tf_add_condition for "cannot_switch_from_melee" is kinda buggy. I know Valve was able to do it in sd_doomsday_event but the decompiled map refuses to load in hammer so I cant see how they programmed it.
     
  2. ics

    aa ics http://ics-base.net

    Messages:
    682
    Positive Ratings:
    416
    I decompiled the map but there isn't much info on this or the decompile wasn't complete. Latest BSPSource will work, you just need to edit the vmf with a text editor and add ending bracket to the end }.
     
  3. NeonHeights

    NeonHeights L1: Registered

    Messages:
    25
    Positive Ratings:
    5
    Ive seen some servers with triggers that force melee-on-touch and when I decompiled the maps it was just a blank trigger_multiple that was named. No outputs or inputs or anything related to it.

    I know theres a way to do it im just not sure how at this point
     
    Last edited: Dec 30, 2014
  4. NeonHeights

    NeonHeights L1: Registered

    Messages:
    25
    Positive Ratings:
    5
    Kinda answered my own question. Condition 85 is the condition Valve added for the 2014 event. It forces melee mode on the player, but also makes them tiny, increases speed and activates third person mode. Im just going to use a trigger_add_tf_condition and set it up that way.
     
  5. henke37

    aa henke37

    Messages:
    1,890
    Positive Ratings:
    443
    The empty triggers are very likely used by a server plugin.
     
  6. Kill_the_Bug

    Kill_the_Bug L14: Epic Member

    Messages:
    1,466
    Positive Ratings:
    237
    Can you explain how this is done and does this work when someone goes into the trigger?

    Example - player hits a teleporter - gets teleported to a room hits the trigger brush is shrunk and into that mode while regular game everywhere else goes on - then hitting another teleporter returning them back to regular size, guns, etc.