Classes 5

Class Description
DHookParam

Represents the parameters of the hooked function.

DHookReturn

Represents the return value of the hooked function.

DHookSetup

Base method map for common functions between virtual hooks and detours.

DynamicDetour

A DynamicDetour is a way to hook and block any function in memory. Given the address of a function, it can call a callback in your script whenever the function gets called. The callback has access to all parameters of the function as well as the return value.

DynamicHook

A DynamicHook allows to hook a virtual function on any C++ object. Currently CBaseEntity and CGameRules have a convenience API for easy entity hooking, but it's possible to provide a raw this-pointer to hook any object in memory too.

Enums 11

Types 3

Functions 33

Function Description
DHookAddEntityListener

Adds an entity listener hook

DHookAddParam

Adds param to a hook setup

DHookCreate

Creates a hook

DHookCreateDetour

Creates a detour

DHookCreateFromConf

Setup a detour or hook for a function as described in a "Functions" section in gamedata.

DHookDisableDetour

Disable the detour of the function described in the hook setup handle.

DHookEnableDetour

Enable the detour of the function described in the hook setup handle.

DHookEntity

Hook entity

DHookGamerules

Hook gamerules

DHookGetParam

Get param value (Use only for: int, entity, edict, bool or float param types)

DHookGetParamAddress

Get param address (Use only for ptr param types)

DHookGetParamObjectPtrString

Gets an objects string variable value

DHookGetParamObjectPtrVar

Gets an objects variable value

DHookGetParamObjectPtrVarVector

Gets an objects vector variable value

DHookGetParamString

Get string param value

DHookGetParamVector

Get vector param value

DHookGetReturn

Get return value (Use only for: int, entity, bool or float return types)

DHookGetReturnString

Get return string value

DHookGetReturnVector

Get return vector value

DHookIsNullParam

Checks if a pointer param is null

DHookRaw

Hook a raw pointer

DHookRemoveEntityListener

Removes an entity listener hook

DHookRemoveHookID

Remove hook by hook id

DHookSetFromConf

Load details for a vhook or detour from a gamedata file.

DHookSetParam

Set param value (Use only for: int, entity, edict, bool or float param types)

DHookSetParamObjectPtrVar

Sets an objects variable value

DHookSetParamObjectPtrVarVector

Sets an objects vector variable value

DHookSetParamString

Set string param value

DHookSetParamVector

Set vector param value

DHookSetReturn

Set return value (Use only for: int, entity, bool or float return types)

DHookSetReturnString

Set return string value

DHookSetReturnVector

Set return vector value

__ext_dhooks_SetNTVOptional