|
|
#1 |
![]() Join Date: Mar 2011
Reputation: 102
Posts: 846
|
TF2 NPC face player possible?
Using the TF2 hammer, is it possible to make an NPC face the player? And if so, is it server side or client side?
|
|
|
|
|
|
#2 |
![]() Join Date: Mar 2009
Reputation: 148
Posts: 2,632
|
Which npc? An do you mean always face the player no matter where they're standing?
|
|
|
|
|
|
#3 |
![]() Join Date: Mar 2011
Reputation: 102
Posts: 846
|
Yes. Thinking I could do it if I bound an obj_sentrygun inside the model, silenced it, made it invulnerable, made it fire on everyone, and make it do no damage/shoot no bullets. Though if there is a better way I'd like to know. That way seems a bit sloppy if the NPC is too busy rotating to face whoever is near it.
Be cool if I could make the NPC prefer to target the team with the least amount of players too. |
|
|
|
|
|
#4 |
![]() Join Date: Mar 2009
Reputation: 148
Posts: 2,632
|
I don't think you can do that with the sentry gun though. Maybe check if there's a generic monster entity or something like that in the .fgd which faces players.
|
|
|
|
|
|
#5 |
![]() Join Date: Mar 2011
Reputation: 102
Posts: 846
|
Nope. Anyone have any other ideas? I don't see anything that would seem to do it from what I'm looking at.
|
|
|
|
|
|
#6 |
![]() Join Date: Feb 2011
Reputation: 36
Posts: 487
|
Hmm... see if this helps: http://www.gamebanana.com/tuts/9732
Basically, parent the NPC to a function rotate and create trigger_multiples on both sides that cause the NPC to rotate in that direction. It may look kinda weird, so try using something to cover the bottom or something. If there's a way to change its animation, set the triggers to change the animation so it aims that way. |
|
|
|
![]() |
|
||||||
| Thread Tools | |
| Display Modes | |
|
|