Skip to content

Commit

Permalink
Up modelch
Browse files Browse the repository at this point in the history
  • Loading branch information
sazonische committed Oct 23, 2022
1 parent 9601293 commit 3b6af15
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Binary file modified build/package/addons/sourcemod/extensions/modelch.ext.2.csgo.so
Binary file not shown.
2 changes: 1 addition & 1 deletion build/package/addons/sourcemod/gamedata/modelch.games.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"StrAssign"
{
"library" "server"
"linux" "\x55\x31\xC0\x89\xE5\x53\x83\xEC\x14\x8B\x5D\x0C\x85\xDB"
"linux" "\x55\x31\xC0\x89\xE5\x53\x83\xEC\x14\x8B\x5D\x0C\x85\xDB\x74\x2A\x89\x1C\x24"
"windows" "\x55\x8B\xEC\x53\x56\x33\xDB\x8B\xF1"
}
}
Expand Down
4 changes: 2 additions & 2 deletions extension.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ bool MdlChagerExt::SDK_OnLoad(char* error, size_t maxlen, bool late)
g_addr_model_custom = (void*)((uintptr_t)addr + 0x77F);
#else
void *addr_hook = (void*)((uintptr_t)addr + 0x25E);
g_addr_model_normal = (void*)((uintptr_t)addr + 0x19B0);
g_addr_model_custom = (void*)((uintptr_t)addr + 0x1A82);
g_addr_model_normal = (void*)((uintptr_t)addr + 0x19A7);
g_addr_model_custom = (void*)((uintptr_t)addr + 0x1A79);
#endif

g_HPlayerSpawn = new Hook(addr_hook, (void*)playerspawn);
Expand Down

0 comments on commit 3b6af15

Please sign in to comment.