View Single Post
Alienmario
Senior Member
Join Date: Aug 2013
Old 05-28-2020 , 12:39   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #756

Could anyone help with CBaseEntity::AcceptInput hook as in the example?
It works correctly on windows but on linux the fourth parameter (variant_t) gives gibberish - both in the fieldtype (object offset 16) and the actual value (offset 0). Game is BMS.

Edit:
Okay, it works when the hook is configured through code. I think the "flags" keyvalue in functions might not parse correctly? This is on the latest version of dhooks-detours.
Code:
"CBaseEntity::AcceptInput"
{
	"offset"	"CBaseEntity::AcceptInput"
	"hooktype"	"entity"
	"return"	"bool"
	"this"		"entity"
	"arguments"
	{
		"szInputName"
		{
			"type"	"charptr"
		}
		"pActivator"
		{
			"type"	"cbaseentity"
		}
		"pCaller"
		{
			"type"	"cbaseentity"
		}
		"Value"
		{
			"type"	"object"
			"size"	"20"
			"flags"	"byval odtor octor oassignop"
		}
		"outputID"
		{
			"type"	"int"
		}
	}
}

Last edited by Alienmario; 05-28-2020 at 18:48.
Alienmario is offline