fixed incorrent player_weaponstrip "fix"

remove set_model call for csdm, as it useless
This commit is contained in:
jeefo 2016-01-03 23:18:47 +03:00
commit f621ff05e1
2 changed files with 26 additions and 20 deletions

View file

@ -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);