Change trace option from MASK_SHOT_FULL to MASK_SHOT_PHYSICS
This commit is contained in:
parent
a476d1487b
commit
107839a5ee
1 changed files with 2 additions and 2 deletions
|
|
@ -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))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue