Change trace option from MASK_SHOT_FULL to MASK_SHOT_PHYSICS

This commit is contained in:
Michal 2026-02-11 20:00:51 +04:00 • committed by GitHub
parent a476d1487b
commit 107839a5ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -141,7 +141,7 @@ This file contains:
Vector vecOrigin{}; Vector vecOrigin{};
QAngle angView{}; QAngle angView{};
TraceOptions traceOpts{}; TraceOptions traceOpts{};
traceOpts.InteractsWith = static_cast<uint64_t>(MASK_SHOT_FULL); traceOpts.InteractsWith = static_cast<uint64_t>(MASK_SHOT_PHYSICS);
traceOpts.DrawBeam = 1; traceOpts.DrawBeam = 1;
TraceResult traceResult{}; TraceResult traceResult{};
@ -189,7 +189,7 @@ public void DoTrace(CCSPlayerController player)
QAngle angles = player.PlayerPawn.Value!.EyeAngles; QAngle angles = player.PlayerPawn.Value!.EyeAngles;
TraceOptions options = new( TraceOptions options = new(
InteractionLayers.MASK_SHOT_FULL InteractionLayers.MASK_SHOT_PHYSICS
); );
if (CRayTrace.TraceShape(origin, angles, null, options, out TraceResult result)) if (CRayTrace.TraceShape(origin, angles, null, options, out TraceResult result))