added support for bot avatars in scoreboard in cs 1.6
This commit is contained in:
parent
be7780949f
commit
ac8bf86c18
4 changed files with 28 additions and 8 deletions
|
|
@ -485,6 +485,11 @@ void InitConfig (void)
|
|||
{
|
||||
SKIP_COMMENTS ();
|
||||
|
||||
Array <String> pair = String (line).Split ("\t\t");
|
||||
|
||||
if (pair.GetElementNumber () > 1)
|
||||
strcpy (line, pair[0].Trim ().GetBuffer ());
|
||||
|
||||
strtrim (line);
|
||||
line[32] = 0;
|
||||
|
||||
|
|
@ -494,6 +499,9 @@ void InitConfig (void)
|
|||
item.name = line;
|
||||
item.used = false;
|
||||
|
||||
if (pair.GetElementNumber () > 1)
|
||||
item.steamId = pair[1].Trim ();
|
||||
|
||||
g_botNames.Push (item);
|
||||
}
|
||||
fp.Close ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue