Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DHooks is not parsing gamedata functions override from custom folder #2227

Open
Alienmario opened this issue Nov 29, 2024 · 0 comments
Open

Comments

@Alienmario
Copy link
Contributor

Alienmario commented Nov 29, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant