mirror of
https://github.com/voided/CollisionHook.git
synced 2025-12-07 10:48:22 +00:00
Fix linux build
This commit is contained in:
parent
45f25d15a5
commit
b4b3671573
@ -76,8 +76,6 @@ DETOUR_DECL_STATIC2( PassServerEntityFilterFunc, bool, const IHandleEntity *, pT
|
|||||||
|
|
||||||
bool CollisionHook::SDK_OnLoad( char *error, size_t maxlength, bool late )
|
bool CollisionHook::SDK_OnLoad( char *error, size_t maxlength, bool late )
|
||||||
{
|
{
|
||||||
sharesys->RegisterLibrary( myself, "collisionhook" );
|
|
||||||
|
|
||||||
char szConfError[ 256 ] = "";
|
char szConfError[ 256 ] = "";
|
||||||
if ( !gameconfs->LoadGameConfigFile( "collisionhook", &g_pGameConf, szConfError, sizeof( szConfError ) ) )
|
if ( !gameconfs->LoadGameConfigFile( "collisionhook", &g_pGameConf, szConfError, sizeof( szConfError ) ) )
|
||||||
{
|
{
|
||||||
@ -99,6 +97,8 @@ bool CollisionHook::SDK_OnLoad( char *error, size_t maxlength, bool late )
|
|||||||
g_pCollisionFwd = forwards->CreateForward( "CH_ShouldCollide", ET_Hook, 3, NULL, Param_Cell, Param_Cell, Param_CellByRef );
|
g_pCollisionFwd = forwards->CreateForward( "CH_ShouldCollide", ET_Hook, 3, NULL, Param_Cell, Param_Cell, Param_CellByRef );
|
||||||
g_pPassFwd = forwards->CreateForward( "CH_PassFilter", ET_Hook, 3, NULL, Param_Cell, Param_Cell, Param_CellByRef );
|
g_pPassFwd = forwards->CreateForward( "CH_PassFilter", ET_Hook, 3, NULL, Param_Cell, Param_Cell, Param_CellByRef );
|
||||||
|
|
||||||
|
sharesys->RegisterLibrary( myself, "collisionhook" );
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -38,7 +38,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* Basic information exposed publicly */
|
/* Basic information exposed publicly */
|
||||||
#define SMEXT_CONF_NAME "CollisionHooks"
|
#define SMEXT_CONF_NAME "CollisionHook"
|
||||||
#define SMEXT_CONF_DESCRIPTION "Hook on entity collision"
|
#define SMEXT_CONF_DESCRIPTION "Hook on entity collision"
|
||||||
#define SMEXT_CONF_VERSION "0.2"
|
#define SMEXT_CONF_VERSION "0.2"
|
||||||
#define SMEXT_CONF_AUTHOR "VoiDeD"
|
#define SMEXT_CONF_AUTHOR "VoiDeD"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user