fixed incorrent player_weaponstrip "fix"
remove set_model call for csdm, as it useless
This commit is contained in:
parent
4bf4dded12
commit
f621ff05e1
2 changed files with 26 additions and 20 deletions
|
|
@ -1188,16 +1188,7 @@ void Bot::StartGame (void)
|
|||
|
||||
FakeClientCommand (GetEntity (), "jointeam %d", m_wantedTeam);
|
||||
|
||||
if (m_wantedTeam == 2)
|
||||
{
|
||||
SET_MODEL (GetEntity (), ENGINE_STR ("models/player/Counter-Terrorists/Counter-Terrorists.mdl"));
|
||||
SET_CLIENT_KEYVALUE (GetIndex (), GET_INFOKEYBUFFER (GetEntity ()), "model", "Counter-Terrorists");
|
||||
}
|
||||
else
|
||||
{
|
||||
SET_MODEL (GetEntity (), ENGINE_STR ("models/player/Terrorists/Terrorists.mdl"));
|
||||
SET_CLIENT_KEYVALUE (GetIndex (), GET_INFOKEYBUFFER (GetEntity ()), "model", "Terrorists");
|
||||
}
|
||||
SET_CLIENT_KEYVALUE (GetIndex (), GET_INFOKEYBUFFER (GetEntity ()), "model", m_wantedTeam == 2 ? "Counter-Terrorists" : "Terrorists");
|
||||
|
||||
if (Random.Long (0, 100) < 20)
|
||||
ChatMessage (CHAT_WELCOME);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue