forked from UNLOZE/sm-plugins
Lots of small fixes/improvements
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user