bot menu fixed

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@405 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2006-09-17 20:21:16 +00:00
parent 96a3a4a298
commit ed6feb0c1d
15 changed files with 44 additions and 54 deletions
+2 -2
View File
@@ -139,7 +139,7 @@ void CACBot::BotPain(int damage, dynent *d, bool gib)
{
if(m_pMyEnt->state!=CS_ALIVE || editmode || intermission) return;
//fixmebot
int ad = damage/**(m_pMyEnt->armourtype+1)*20/100*/; // let armour absorb when possible
int ad = damage*30/100;
if(ad>m_pMyEnt->armour) ad = m_pMyEnt->armour;
m_pMyEnt->armour -= ad;
damage -= ad;
@@ -167,7 +167,7 @@ void CACBot::BotPain(int damage, dynent *d, bool gib)
else if (d->monsterstate)
conoutf("%s got killed by %s", m_pMyEnt->name, d->name);
else
{
{
int KillerIndex = -1;
if (d == m_pMyEnt)