View Single Post
Re: Getting the enemy's weapon-help plz
Old
  (#5)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: Getting the enemy's weapon-help plz - 11-06-2006

well he wanted to get the current weapon which the enemy is using, which cannot be done using entvars_t::weapons ...

check for STRING(targetEnemy->v.viewmodel) may be a good idea for this. The values are usually "models/v_[weaponname].mdl" so just use strcmp to check it.
  
Reply With Quote