Raised This Month: $51 Target: $400
 12% 

NPC AIM


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 10-17-2014 , 22:36   NPC AIM
Reply With Quote #1

How can I make my NPC aim at something like a player? (only moving upper body.)
pev_v_angle doesn't work for some reason :/
__________________
and once again
usaexelent is offline
Send a message via Skype™ to usaexelent
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 10-18-2014 , 04:38   Re: NPC AIM
Reply With Quote #2

try
PHP Code:
set_pev(npcpev_anglesangles)
set_pev(npcpev_fixangle1
__________________
Impossible is Nothing
Sylwester is offline
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 10-18-2014 , 14:48   Re: NPC AIM
Reply With Quote #3

NPC can't aim up or down, it changes whole model angle, and I only need upper body :/
__________________
and once again

Last edited by usaexelent; 10-18-2014 at 15:03.
usaexelent is offline
Send a message via Skype™ to usaexelent
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 10-18-2014 , 16:43   Re: NPC AIM
Reply With Quote #4

Try changing only angles[1], that is yaw. Maybe it is possible to move its head by rotating a head bone, but I am not sure if somebody has already done that.
klippy is offline
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 10-18-2014 , 18:46   Re: NPC AIM
Reply With Quote #5

Sh** then there's no way to make npc act like in hl game :/
__________________
and once again
usaexelent is offline
Send a message via Skype™ to usaexelent
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 10-19-2014 , 05:34   Re: NPC AIM
Reply With Quote #6

If you want to rotate model, try messing with pev_controller.
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 10-19-2014 , 14:08   Re: NPC AIM
Reply With Quote #7

does anyone has an example of pev_controller? A snippet would be great
__________________
and once again

Last edited by usaexelent; 10-19-2014 at 14:08.
usaexelent is offline
Send a message via Skype™ to usaexelent
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:34.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode