sourcemod icon indicating copy to clipboard operation
sourcemod copied to clipboard

DHooks is not parsing gamedata functions override from custom folder

Open Alienmario opened this issue 1 year ago • 0 comments

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.

Alienmario avatar Nov 29 '24 01:11 Alienmario