Lots of small fixes/improvements

This commit is contained in:
BotoX
2017-05-20 05:08:31 +02:00
parent 3912295377
commit 371d1ce242
10 changed files with 40 additions and 76 deletions
-50
View File
@@ -1,50 +0,0 @@
"Games"
{
"#default"
{
"#supported"
{
"game" "cstrike"
"game" "tf"
"game" "dod"
"game" "hl2mp"
"engine" "sdk2013"
}
"Offsets"
{
"AcceptInput"
{
"windows" "36"
"linux" "37"
"mac" "37"
}
}
}
"csgo"
{
"Offsets"
{
"AcceptInput"
{
"windows" "40"
"linux" "41"
"mac" "41"
}
}
}
"left4dead2"
{
"Offsets"
{
"AcceptInput"
{
"windows" "43"
"linux" "44"
"mac" "44"
}
}
}
}
+3 -2
View File
@@ -27,10 +27,11 @@ public OnPluginStart()
HookEntityOutput("game_ui", "PlayerOff", GameUI_PlayerOff);
// Gamedata.
new Handle:hConfig = LoadGameConfigFile("FixGameUI.games");
Handle hConfig = LoadGameConfigFile("sdktools.games");
if (hConfig == INVALID_HANDLE)
{
SetFailState("Could not find gamedata file: FixGameUI.games.txt");
SetFailState("Couldn't load sdktools game config!");
return;
}
new offset = GameConfGetOffset(hConfig, "AcceptInput");