View Single Post
Re: shield issues...
Old
  (#3)
szfzafa
Member
 
Status: Offline
Posts: 24
Join Date: Apr 2010
Location: Nanjing, PRC
Default Re: shield issues... - 15-05-2010

i wrote this at the end of FocusEnemy
Quote:
// don't shoot to enemy if enemy with shield & facing us, we can't hurt it
if (IsEnemyProtectedByShield (m_enemy))
{
m_wantsToFire = false;
m_enemy = NULL;
}
i works...partly, through sometimes...

i tested this with a zbot as a teammate(bot_zombie 1) following me, and i'm using shield facing a YaPB enemy. When the YaPB caught sight of my teammate zbot it would usually kill him. But there are times when the YaPB just aim the zbot without shooting, the moment i ran away/turned off shield, the YaPB killed zbot just then, i showed up before that, and YaPB keep shooting at me!
--it seems the YaPB's m_wantsToFire property was applied to wrong enemies!
lol
  
Reply With Quote