| 710 | } |
| 711 | |
| 712 | void CBot::CheckReload() // reload gun if no enemies are around |
| 713 | { |
| 714 | if(m_pMyEnt->mag[m_pMyEnt->weaponsel->type] >= WeaponInfoTable[m_pMyEnt->weaponsel->type].sMinDesiredAmmo) return; // do not reload if mindesiredammo is satisfied |
| 715 | if(m_pMyEnt->enemy && m_pMyEnt->mag[m_pMyEnt->weaponsel->type]) |
| 716 | { |
| 717 | return; // ignore the enemy, if no ammo in mag. |
| 718 | } |
| 719 | tryreload(m_pMyEnt); |
| 720 | return; |
| 721 | } |
| 722 | |
| 723 | void CBot::CheckScope() |
| 724 | { |
nothing calls this directly
no test coverage detected