Skip to content

Commit

Permalink
Merge pull request #28 from sapphonie/mc-100p-hack
Browse files Browse the repository at this point in the history
morecolors 100p port
  • Loading branch information
sapphonie authored Feb 7, 2025
2 parents 9a20cfb + dbcb1ac commit adde7b0
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions addons/sourcemod/scripting/include/morecolors.inc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
#endif
#define _more_colors_included

#pragma newdecls optional
#pragma semicolon 1
#pragma newdecls required

#include <regex>

#define MORE_COLORS_VERSION "2.0.0-MC"
Expand All @@ -21,7 +23,11 @@

#define MC_GAME_DODS 0

bool MC_SkipList[MAXPLAYERS + 1];
// hack for no sm 1.12
// -sappho
#define TF_MAXPLAYERS 101

bool MC_SkipList[TF_MAXPLAYERS + 1];
StringMap MC_Trie;
int MC_TeamColors[][] = {{0xCCCCCC, 0x4D7942, 0xFF4040}}; // Multi-dimensional array for games that don't support SayText2. First index is the game index (as defined by the GAME_ defines), second index is team. 0 = spectator, 1 = team1, 2 = team2

Expand Down Expand Up @@ -990,6 +996,6 @@ stock StringMap MC_InitColorTrie() {
hTrie.SetValue("whitesmoke", 0xF5F5F5);
hTrie.SetValue("yellow", 0xFFFF00);
hTrie.SetValue("yellowgreen", 0x9ACD32);

return hTrie;
}
}

0 comments on commit adde7b0

Please sign in to comment.