*** 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user