Melee On Trigger?

NeonHeights

L1: Registered
Apr 27, 2012
25
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.
 

ics

http://ics-base.net
aa
Jun 17, 2010
841
543
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 }.
 

NeonHeights

L1: Registered
Apr 27, 2012
25
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:

henke37

aa
Sep 23, 2011
2,075
515
The empty triggers are very likely used by a server plugin.
 
Oct 6, 2008
1,948
446
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.

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.