Skip to content

Commit

Permalink
1.13.1 support
Browse files Browse the repository at this point in the history
  • Loading branch information
dysphie committed Dec 1, 2022
1 parent 8c42928 commit ccbbb7e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 3 additions & 3 deletions gamedata/map-translator.games.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,21 @@
"CGameText::Display"
{
"library" "server"
"windows" "\x55\x8B\xEC\x56\x8B\xF1\x57\x8B\x7D\x08\x83\xBE\x78\x03\x00\x00\x00\x74\x2A\x57\xFF\xB6\x78\x03\x00\x00\xE8\x2A\x2A\x2A\x2A\x83\xC4\x08\x84\xC0\x74\x2A\xF6\x86\x00\x01\x00\x00\x01"
"windows" "\x55\x8B\xEC\x56\x8B\xF1\x57\x8B\x7D\x08\x83\xBE\x7C\x03\x00\x00\x00\x74\x2A\x57\xFF\xB6\x7C\x03\x00\x00\xE8\x2A\x2A\x2A\x2A\x83\xC4\x08\x84\xC0\x74\x2A\xF6\x86\x04\x01\x00\x00\x01"
"linux" "@_ZN9CGameText7DisplayEP11CBaseEntity"
}

"CEnvHudHint::InputShowHudHint"
{
"library" "server"
"windows" "\x55\x8B\xEC\x83\xEC\x20\x57\x8B\xF9\xF6\x87\x00\x01\x00\x00\x01"
"windows" "\x55\x8B\xEC\x83\xEC\x20\x57\x8B\xF9\xF6\x87\x04\x01\x00\x00\x01"
"linux" "@_ZN11CEnvHudHint16InputShowHudHintER11inputdata_t"
}

"CPointMessageMultiplayer::SendMessage"
{
"library" "server"
"windows" "\x55\x8B\xEC\x83\xEC\x48\x33\xC0\x89\x4D\xF8\x38\x81\x88\x03\x00\x00"
"windows" "\x55\x8B\xEC\x83\xEC\x48\x33\xC0\x89\x4D\xF8\x38\x81\x8C\x03\x00\x00"
"linux" "@_ZN24CPointMessageMultiplayer11SendMessageEP11CBasePlayer"
}

Expand Down
8 changes: 7 additions & 1 deletion scripting/map-translator.sp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#define GAME_NMRIH 1
#define GAME_ZPS 2

#define PLUGIN_VERSION "0.3.10"
#define PLUGIN_VERSION "0.3.11"

#define PREFIX "[Map Translator] "

Expand Down Expand Up @@ -206,6 +206,12 @@ public void OnPluginStart()

translations = new StringMap();
exportQueue = new ArrayStack(ByteCountToCells(MAX_USERMSG_LEN));

for (int i = 1; i <= MaxClients; i++) {
if (IsClientConnected(i)) {
OnClientConnected(i);
}
}
}

public void OnClientConnected(int client)
Expand Down

0 comments on commit ccbbb7e

Please sign in to comment.