tf_point_weapon_mimic

xomp

L1: Registered
Jun 28, 2008
33
8
Is there any way in Hammer to have projectiles that spawn in tf_point_weapon_mimic be the type that "home in on" the player in the trigger?

Thanks!
 
Last edited:
D

Digaag Wa Riz

Start with the logic_timer disabled (I assume you have it refire every 5 seconds non-randomly). Have the timer fire the tf_point_weapon_mimic on its OnTimer output. Have the trigger brush enable the logic_timer when someone enters it (if you use the OnStartTouchAll the timer will only be enabled when someone has entered the trigger brush if there was no one in it at that point. Give the trigger brush this output as well: OnEndTouchAll (when the last person left in the trigger brush leaves this will fire, so as to not disable the timer when anyone leaves at any time) , disable (NOT KILL) the logic_timer.

EDIT: You edited your post after I answered your original question. Although I have an unorthodox solution to your other problem. I'll get back to you when I have a look at an old vmf. Please note however that if you have in mind the type of "homing in" that is featured in Pyro Dodgeball then I'm not sure how to do it. My method simply aims the tf_point_weapon_mimic at an object, fires, and forgets.
 
Last edited by a moderator:

xomp

L1: Registered
Jun 28, 2008
33
8
Start with the logic_timer disabled (I assume you have it refire every 5 seconds non-randomly). Have the timer fire the tf_point_weapon_mimic on its OnTimer output. Have the trigger brush enable the logic_timer when someone enters it (if you use the OnStartTouchAll the timer will only be enabled when someone has entered the trigger brush if there was no one in it at that point. Give the trigger brush this output as well: OnEndTouchAll (when the last person left in the trigger brush leaves this will fire, so as to not disable the timer when anyone leaves at any time) , disable (NOT KILL) the logic_timer.

EDIT: You edited your post after I answered your original question. Although I have an unorthodox solution to your other problem. I'll get back to you when I have a look at an old vmf. Please note however that if you have in mind the type of "homing in" that is featured in Pyro Dodgeball then I'm not sure how to do it. My method simply aims the tf_point_weapon_mimic at an object, fires, and forgets.

Sorry, I edited my original post the moment I found a way to achieve what I was after (Messing around in Hammer FTW!) Yes, I'm trying to have the rocket home in on the first person who enters the trigger area and follow them until it hits. If the player moves out of the trigger area and there happens to be another player in the trigger area, have it refocus on that new player until they move out of the trigger.
 
D

Digaag Wa Riz

Sorry I can't help with the homing aspect. You might have to use server plugins to get what you want. Here's a link.

The most I can give you is a prefab I've made. It doesn't do exactly what you want but I reckon it'll still be useful.