mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-05-09 12:08:12 +03:00
Actor Improvements p3_3
This commit is contained in:
parent
c665915d0f
commit
ec4ae7d79d
20 changed files with 322 additions and 503 deletions
|
@ -680,15 +680,15 @@ void vectoangles( const vec3_t value1, vec3_t angles ) {
|
|||
}
|
||||
}
|
||||
else {
|
||||
if ( value1[0] ) {
|
||||
//if ( value1[0] ) {
|
||||
yaw = ( atan2 ( value1[1], value1[0] ) * 180 / M_PI );
|
||||
}
|
||||
else if ( value1[1] > 0 ) {
|
||||
yaw = 90;
|
||||
}
|
||||
else {
|
||||
yaw = 270;
|
||||
}
|
||||
//}
|
||||
//else if ( value1[1] > 0 ) {
|
||||
// yaw = 90;
|
||||
//}
|
||||
//else {
|
||||
// yaw = 270;
|
||||
//}
|
||||
if ( yaw < 0 ) {
|
||||
yaw += 360;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue