sourcemod
sourcemod copied to clipboard
DHooks is not parsing gamedata functions override from custom folder
I have a SSDK13 mod and am using the gamedata/custom folder to override gamedata of HL2DM plugins. While Keys, Offsets and Signatures all appear to be overridden, the functions section is not.
For example a plugin may come with this gamedata under gamedata/myplugin.txt
"hl2mp"
{
"Functions"
{
"CBasePlayer::ChangeTeam"
{
"offset" "CBasePlayer::ChangeTeam"
"hooktype" "entity"
"return" "void"
"this" "entity"
"arguments"
{
"iTeamNum"
{
"type" "int"
}
"bAutoTeam"
{
"type" "bool"
}
"bSilent"
{
"type" "bool"
}
"bAutoBalance"
{
"type" "bool"
}
}
}
}
However bAutoBalance parameter only exists in latest official update, so I'd use gamedata/custom/myplugin.txt
"hl2mp"
{
"Functions"
{
"CBasePlayer::ChangeTeam"
{
"offset" "CBasePlayer::ChangeTeam"
"hooktype" "entity"
"return" "void"
"this" "entity"
"arguments"
{
"iTeamNum"
{
"type" "int"
}
"bAutoTeam"
{
"type" "bool"
}
"bSilent"
{
"type" "bool"
}
}
}
}
But this does not work.