Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void AimAt( Vec3 target ) {
- Vec3 diff = target - cg_refdef->vieworg;
- Vec3 temp = diff.toAngles( );
- Vec3 angle = AngleNormalize360( temp - refdefViewAngles );
- *( float* ) 0x123 += angle.pitch;
- *( float* ) 0x127 += angle.yaw;
- }
Add Comment
Please, Sign In to add comment