| 131 | } |
| 132 | |
| 133 | void CBot::AimToVec(const vec &o) |
| 134 | { |
| 135 | m_pMyEnt->targetpitch = atan2(o.z-m_pMyEnt->o.z, GetDistance(o))*180/PI; |
| 136 | m_pMyEnt->targetyaw = -(float)atan2(o.x - m_pMyEnt->o.x, o.y - |
| 137 | m_pMyEnt->o.y)/PI*180+180; |
| 138 | } |
| 139 | |
| 140 | void CBot::AimToIdeal() |
| 141 | { |
nothing calls this directly
no test coverage detected