View Single Post
Re: The f____ shield. How to get bots to deal with it?
Old
  (#5)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: The f____ shield. How to get bots to deal with it? - 20-01-2004

why so complicated, guys ?
Code:
// is enemy looking at more than 90° aside of the bot's forward direction ?
if (fabs (WrapAngle (pEnemyEdict->v.v_angle.y - pBotEdict->v.v_angle.y)) > 90)
{
   // yes, it is (meaning, bot sees the back of its enemy)
}
else
{
   // no, it is not (enemy is facing the bot)
}



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."

Last edited by Pierre-Marie Baty; 20-01-2004 at 21:49..
  
Reply With Quote