no message

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@360 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2006-08-27 18:27:57 +00:00
parent 4c21758964
commit a22d3755dc
27 changed files with 188 additions and 149 deletions
+5 -9
View File
@@ -113,7 +113,7 @@ void CBot::Think()
m_pMyEnt->move = 0;
moveplayer(m_pMyEnt, 1, false);
}
else if (!m_arena)
else if (!m_arena && lastmillis-m_pMyEnt->lastaction>5000)
Spawn();
SendBotInfo();
@@ -373,14 +373,10 @@ float CBot::GetDistance(entity *e)
bool CBot::SelectGun(int Gun)
{
if (m_pMyEnt->ammo[Gun])
{
//temporary doc out argh
/* if (m_pMyEnt->gunselect != Gun) botplaysound(S_WEAPLOAD, m_pMyEnt); */
m_pMyEnt->gunselect = Gun;
return true;
}
return false;
if(m_pMyEnt->reloading) return false;
if (m_pMyEnt->gunselect != Gun) botplaysound(S_GUNCHANGE, m_pMyEnt);
m_pMyEnt->gunselect = Gun;
return true;
}
bool CBot::IsVisible(entity *e, bool CheckPlayers)