s1lentq / reapi

AMX Mod X module, using API regamedll & rehlds
GNU General Public License v3.0
160 stars 103 forks source link

`API`: New gamedll hookchains #280

Closed dystopm closed 1 year ago

dystopm commented 1 year ago

Based on https://github.com/s1lentq/ReGameDLL_CS/pull/849

Natsheh11 commented 1 year ago

Add a hook aswell for PM_PlayerTrace, to control which entities get to collide with the player...

dystopm commented 1 year ago

Add a hook aswell for PM_PlayerTrace, to control which entities get to collide with the player...

That's a modification that must be done on ReHLDS. PM_PlayerTrace it's a pointer to a function located in engine. Also, "exporting" this function to an AMXX plugin forces to create an interface to handle physent_t (pmtrace_t is implemented) structures, which are pending since PM_LadderMove hook implementation. If you are willing to use this in a submodule, then you can without issues.