fix: port to KHook for Metamod 2.0 build 1461+
Metamod 1461+ removed SourceHook (plugin API 17 -> 18), so the MM plugin was rejected and RayTraceImpl crashed on a null CRayTraceInterface002. Replace the two SourceHook hooks with KHook, build against Metamod's bundled KHook headers, include ray.h explicitly for the updated hl2sdk, and disambiguate TraceOptions/TraceResult from CounterStrikeSharp 1.0.375's new types of the same name.
This commit is contained in:
parent
616e169a2c
commit
971e91c711
8 changed files with 33 additions and 46 deletions
|
|
@ -21,6 +21,8 @@ using CounterStrikeSharp.API.Modules.Memory;
|
|||
using CounterStrikeSharp.API.Modules.Utils;
|
||||
using RayTraceAPI;
|
||||
using Vector = CounterStrikeSharp.API.Modules.Utils.Vector;
|
||||
using TraceOptions = RayTraceAPI.TraceOptions;
|
||||
using TraceResult = RayTraceAPI.TraceResult;
|
||||
|
||||
namespace RayTraceImpl;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue