CAI_BehaviorBase::BehaviorBridge_OnFriendDamaged
0x005a7080 · 17 bytes · __cdecl
_ZN16CAI_BehaviorBase30BehaviorBridge_OnFriendDamagedEP20CBaseCombatCharacterP11CBaseEntity
Decompiled
undefined (2 params)
/* CAI_BehaviorBase::BehaviorBridge_OnFriendDamaged(CBaseCombatCharacter*, CBaseEntity*) */
void CAI_BehaviorBase::BehaviorBridge_OnFriendDamaged
(CBaseCombatCharacter *param_1,CBaseEntity *param_2)
{
/* WARNING: Could not recover jumptable at 0x005a708f. Too many branches */
/* WARNING: Treating indirect jump as call */
(**(code **)(*(int *)param_1 + 0xd0))();
return;
}
SourceMod gamedata
paste intoaddons/sourcemod/gamedata/<your_plugin>.txt
Just a Signatures{} block, ready to drop into a gamedata
file. Wire it up in your plugin however you like - SDKCall, DHooks,
raw memory ops, or anything else.
Signatures + Functions block. The plugin uses
DHookCreateFromConf - DHooks reads return type, this-type,
calling convention, and argument types straight from the gamedata. Less
boilerplate in the plugin, types travel with the gamedata.
Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.