I'm currently using:
This on a rapid pulse creates an aimbot effect.
What I want to figure out how to do is set the player to look halfway between where he's looking and where the victim is.
Example:
The player is looking forward.
The victim is 90 degrees off to the side.
When the first pulse is triggered, he looks 45 degrees to the side, halfway between his current lookpos and the victim's position.
When the second pulse is triggered, he looks 22.5 degrees further in that direction, exactly half-way between his current lookpos and a lookpos that would make him look straight at the victim.
How could I acheive something like this?
Code:
look_vector=vectorsub(getthingpos(victim), getthingpos(player)); setthinglook(player, look_vector);
This on a rapid pulse creates an aimbot effect.
What I want to figure out how to do is set the player to look halfway between where he's looking and where the victim is.
Example:
The player is looking forward.
The victim is 90 degrees off to the side.
When the first pulse is triggered, he looks 45 degrees to the side, halfway between his current lookpos and the victim's position.
When the second pulse is triggered, he looks 22.5 degrees further in that direction, exactly half-way between his current lookpos and a lookpos that would make him look straight at the victim.
How could I acheive something like this?