AMXX-BG.INFO orpheu.inc

orpheu

Browse all symbols documented inside this include file.

Functions Raw source Download .inc Library page

Functions

Name Description
OrpheuCall Calls a function without triggering its hooks
OrpheuCallSuper Calls a function and triggers its hooks
OrpheuCloneStructFromParam Creates a struct equal to one received as an argument
OrpheuCreateStruct Creates a struct
OrpheuGetDLLFunctionsStruct Retrieves a handler to a struct that hold the addresses of the dll functions By retrieving addresses from the struct is possible to hook them. A easier way to achieve the same thing is by using the stock OrpheuGetDllFunction
OrpheuGetEngineFunctionsStruct Retrieves a handler to a struct that hold the addresses of the engine functions By retrieving addresses from the struct is possible to hook them. A easier way to achieve the same thing is by using the stock OrpheuGetEngineFunction
OrpheuGetFunction Retrieves a function based on a function name The name must be the same as the one in the file where the function is defined
OrpheuGetFunctionFromClass Retrieves a handler to a function given a classname, the function name and the classname This function is a virtual function (a function defined in abase class and implemented differently by each extender class) For example: every class that extends CBaseEntity has a Spawn function. That function is defined in CBaseEntity and implemented differently by each class derived from CBaseEntity
OrpheuGetFunctionFromEntity Retrieves a handler to a function given the ID of an entity, the function name and the classname This function is a virtual function (a function defined in abase class and implemented differently by each extender class) For example: every class that extends CBaseEntity has a Spawn function. That function is defined in CBaseEntity and implemented differently by each class derived from CBaseEntity
OrpheuGetFunctionFromMonster Retrieves a handler to a function given the id of a monster of monstermod, the function name and the classname This function is a virtual function (a function defined in abase class and implemented differently by each extender class) For example: every class that extends CBaseEntity has a Spawn function. That function is defined in CBaseEntity and implemented differently by each class derived from CBaseEntity This function goes against the spirit of orpheu of hardcoding the less possible but without it would be much more complex to use virtual functions
OrpheuGetFunctionFromObject Retrieves a handler to a function given an object, the function name and the classname This function is a virtual function (a function defined in abase class and implemented differently by each extender class) For example: every class that extends CBaseEntity has a Spawn function. That function is defined in CBaseEntity and implemented differently by each class derived from CBaseEntity
OrpheuGetParamStructMember Retrieves the value of a member of a struct given the argument number the struct is and the member name
OrpheuGetReturn Gets the return value of a function (To be used in hooks Post)
OrpheuGetStructFromParam Gets a struct handler for a struct received as an argument Beware that if the original struct gets destroyed or changed these effects will reflect on your use of it.
OrpheuGetStructMember Retrieves the value of a member of a struct given a struct handler and the member name
OrpheuRegisterHook Hooks a function
OrpheuSetParam Sets the value of an argument
OrpheuSetParamStructMember Sets the value of member of a struct given the argument number the struct is and the member name
OrpheuSetReturn Sets the return value of a function
OrpheuSetStructMember Sets the value of a member of a struct given a struct handler and the member name
OrpheuUnregisterHook Unregisters a hook (stops it)