View Single Post
Re: Getting the enemy's weapon-help plz
Old
  (#2)
jeefo
путинхуйлоебаное
 
jeefo's Avatar
 
Status: Offline
Posts: 453
Join Date: Nov 2005
Location: Saint-Petersburg
Default Re: Getting the enemy's weapon-help plz - 10-06-2006

weaponmodel field is a string, so you need to use a strcmp() stuff, so i advice you to use bits

if ((targetEnemy->v.weapons & (1 << CS_WEAPON_AWP)))
m_botHasAWP = true;

in this way
  
Reply With Quote