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:
jeefo 2022-08-03 23:59:57 +03:00 committed by GitHub
commit b606b78cda
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 34 additions and 11 deletions

View file

@ -31,7 +31,8 @@ CR_DECLARE_SCOPED_ENUM (NetMsg,
FlashBat = 20,
Fashlight = 21,
ItemStatus = 22,
ScoreInfo = 23
ScoreInfo = 23,
ScoreAttrib = 24
)
// vgui menus (since latest steam updates is obsolete, but left for old cs)
@ -118,6 +119,10 @@ private:
void netMsgNVGToggle ();
void netMsgFlashBat ();
void netMsgScoreInfo ();
void netMsgScoreAttrib ();
private:
Bot *pickBot (int32 index);
public:
MessageDispatcher ();