Merge pull request #9 from fbef0102/master

Update collisionhook.inc (latest syntax)
This commit is contained in:
Ryan Stecker 2024-04-06 13:08:50 -05:00 committed by GitHub
commit 57de24638f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 41 additions and 34 deletions

View File

@ -16,6 +16,17 @@
} }
} }
} }
"cstrike"
{
"Signatures"
{
"PassServerEntityFilter"
{
"windows" "\x55\x8B\xEC\x56\x8B\x2A\x2A\x85\x2A\x75\x2A\xB0\x2A\x5E"
}
}
}
"csgo" "csgo"
{ {

View File

@ -1,34 +1,30 @@
#if defined _collisionhook_included
#if defined _collisionhook_included #endinput
#endinput #endif
#endif #define _collisionhook_included
#define _collisionhook_included
// called when the game is performing vphysics collision checks between entities
// return something other than Plugin_Continue to have the game use the result parameter
// called when the game is performing vphysics collision checks between entities forward Action CH_ShouldCollide(int ent1, int ent2, bool &result);
// return something other than Plugin_Continue to have the game use the result parameter
forward Action:CH_ShouldCollide( ent1, ent2, &bool:result ); // called when the game performs collision checks through traces (only for traces using filters)
// return something other than Plugin_Continue to have the game use the result parameter
// called when the game performs collision checks through traces (only for traces using filters) // note: any code in this forward should be very performant, the game will use many filtered traces per player per game frame
// return something other than Plugin_Continue to have the game use the result parameter forward Action CH_PassFilter(int ent1, int ent2, bool &result);
// note: any code in this forward should be very performant, the game will use many filtered traces per player per game frame
forward Action:CH_PassFilter( ent1, ent2, &bool:result ); public Extension __ext_collisionhook =
{
name = "CollisionHook",
public Extension:__ext_collisionhook = file = "collisionhook.ext",
{
name = "CollisionHook", #if defined AUTOLOAD_EXTENSIONS
file = "collisionhook.ext", autoload = 1,
#else
#if defined AUTOLOAD_EXTENSIONS autoload = 0,
autoload = 1, #endif
#else #if defined REQUIRE_EXTENSIONS
autoload = 0, required = 1,
#endif #else
#if defined REQUIRE_EXTENSIONS required = 0,
required = 1, #endif
#else };
required = 0,
#endif
};