improve: use ScoreAttrib message to detect if bot is a VIP or not. (#356)
This should resolve problems with bot behavior, when plugins changes VIP player model to something else.
This commit is contained in:
parent
659f69d0f0
commit
b606b78cda
4 changed files with 34 additions and 11 deletions
|
|
@ -3001,10 +3001,6 @@ void Bot::update () {
|
|||
m_team = game.getTeam (ent ());
|
||||
m_healthValue = cr::clamp (pev->health, 0.0f, 100.0f);
|
||||
|
||||
if (game.mapIs (MapFlags::Assassination) && !m_isVIP) {
|
||||
m_isVIP = util.isPlayerVIP (ent ());
|
||||
}
|
||||
|
||||
if (m_team == Team::Terrorist && game.mapIs (MapFlags::Demolition)) {
|
||||
m_hasC4 = !!(pev->weapons & cr::bit (Weapon::C4));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue