修订版 | f9c1ffa51c7885521c5629dff44b16322dea42ac (tree) |
---|---|
时间 | 2023-02-27 10:08:55 |
作者 | TDRR <srb2gamer@gmai...> |
Commiter | TDRR |
Moved bot pitch reset to StopAimingAtEnemy command.
@@ -1773,6 +1773,10 @@ | ||
1773 | 1773 | pBot->m_AngleDelta = 0; |
1774 | 1774 | pBot->m_AngleOffBy = 0; |
1775 | 1775 | pBot->m_AngleDesired = 0; |
1776 | + | |
1777 | + // [TDRR] Move pitch resetting to here, so custom bots can have | |
1778 | + // their pitch changed with ACS (and because it makes more sense). | |
1779 | + pBot->GetPlayer()->mo->pitch = 0; | |
1776 | 1780 | } |
1777 | 1781 | |
1778 | 1782 | //***************************************************************************** |
@@ -3592,8 +3592,6 @@ | ||
3592 | 3592 | } |
3593 | 3593 | } |
3594 | 3594 | } |
3595 | - else | |
3596 | - m_pPlayer->mo->pitch = 0; | |
3597 | 3595 | } |
3598 | 3596 | |
3599 | 3597 | //***************************************************************************** |