| 281 | } |
| 282 | |
| 283 | bool CBot::SelectGun(int Gun) |
| 284 | { |
| 285 | if(!m_pMyEnt->weapons[Gun]->selectable()) return false; |
| 286 | if(m_pMyEnt->weaponsel->reloading || m_pMyEnt->weaponchanging) return false; |
| 287 | m_pMyEnt->gunselect = Gun; |
| 288 | if(m_pMyEnt->weaponsel->type != Gun) |
| 289 | { |
| 290 | m_pMyEnt->weaponswitch(m_pMyEnt->weapons[Gun]); |
| 291 | m_iChangeWeaponDelay = lastmillis + 1000; |
| 292 | } |
| 293 | return true; |
| 294 | } |
| 295 | |
| 296 | bool CBot::IsVisible(entity *e, bool CheckPlayers) |
| 297 | { |
nothing calls this directly
no test coverage detected