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.
|