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
|
|
@ -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 ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue