|
Post by therealguymins on May 28, 2011 4:35:35 GMT
I'm going to tell you how to make them, and it's pretty easy. Ok, make a brush that looks like a medkit, and make it a func_button. Go in the flags and tick "Touch only" or whatever it says there. Get rid of the use key flag. Now, make a trigger_hurt around your MedKit/button thing and give it a name. I called mine "healtrigger1". Since there is no disable on start flag for trigger_hurts, you will need to make a logic_auto. On the logic_auto, do "OnMapSpawn>healtrigger1>Disable". Go to healtrigger1. In the outputs, do "OnPlayerHurt>!self>kill". Now set your damage to a negative value so it heals you instead of hurts you. Now, on the unnamed medkit button, in the outputs, do "OnPressed>!self>kill" and "OnPressed>healtrigger1>enable" It will now work fine if you followed those instructions well. Oh yeah, on the medkit brush, tick off "Don't move" in the flags. You won't really see it move anyway, because all of the delays are 0 seconds, but... Well, I did it already, so do it.
|
|
|
Post by Zeph on May 29, 2011 16:47:28 GMT
Nice idea, try:
OnPressed -> !activator -> SetHealth -> 100 OnPressed -> !self -> kill -> Delay -> 0.1
No need for func_hurt, and will only heal the user, not anyone else in the trigger at the time.
|
|
|
Post by therealguymins on May 30, 2011 20:18:39 GMT
Did you try that? Because I tried that before the thing I posted first and it did nothing. D: Oh yeah, I forgot to put something about the trigger_hurt. Make it 1 or 2 units all around the medkit so nobody else can fit in the trigger with you. That is why it is touch only, too.
|
|