View Single Post
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 10-03-2015 , 02:02   Re: [CSGO]BOT's Only Head Aiming
Reply With Quote #3

run cmd will do it, just fire a trace to see if they have an enemy targeted and then fire another to aim for head and see if that shot is valid, and adjust angles. you can do most with getclienteyeposition/angles.

something like so
check if bot has in attack button
get eye pos, eye angle, fire ray
test if ray hits an enemy
get enemy eye pos and angle
fire a ray to enemy
if ray hits, set eye angles so the bot uses the ray angles
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.

Last edited by friagram; 10-03-2015 at 02:11.
friagram is offline