*** empty log message ***

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1274 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2007-08-26 00:00:21 +00:00
parent ffc2b584ff
commit 2ac12cf158
5 changed files with 41 additions and 36 deletions
+2 -2
View File
@@ -760,11 +760,11 @@ int CBot::GetShootDelay()
// UNDONE
if ((WeaponInfoTable[m_pMyEnt->gunselect].eWeaponType == TYPE_MELEE) ||
(WeaponInfoTable[m_pMyEnt->gunselect].eWeaponType == TYPE_AUTO))
return m_pMyEnt->gunwait;
return m_pMyEnt->gunwait[m_pMyEnt->gunselect];
float flMinShootDelay = m_pBotSkill->flMinAttackDelay;
float flMaxShootDelay = m_pBotSkill->flMaxAttackDelay;
return max(m_pMyEnt->gunwait, int(RandomFloat(flMinShootDelay, flMaxShootDelay) * 1000.0f));
return max(m_pMyEnt->gunwait[m_pMyEnt->gunselect], int(RandomFloat(flMinShootDelay, flMaxShootDelay) * 1000.0f));
}
void CBot::CheckReload() // reload gun if no enemies are around