Pseudo code for an aimlock?
I am trying to code an aimlock and I'm trying to make some pseudo code, or a list of the functions I need for the aimlock. Here's what I have on my paper:
What would be next? Writing the angle to your player's viewangles?
Thanks.
- Cycle thru Ent. List
- Find closest enemy to your player
- Get coords of target enemy's bone
- Calculate angle between you and the bone
- Clamp the angle
What would be next? Writing the angle to your player's viewangles?
Thanks.

