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{};
|
||||
QAngle angView{};
|
||||
TraceOptions traceOpts{};
|
||||
traceOpts.InteractsWith = static_cast<uint64_t>(MASK_SHOT_FULL);
|
||||
traceOpts.InteractsWith = static_cast<uint64_t>(MASK_SHOT_PHYSICS);
|
||||
traceOpts.DrawBeam = 1;
|
||||
|
||||
TraceResult traceResult{};
|
||||
|
|
@ -189,7 +189,7 @@ public void DoTrace(CCSPlayerController player)
|
|||
QAngle angles = player.PlayerPawn.Value!.EyeAngles;
|
||||
|
||||
TraceOptions options = new(
|
||||
InteractionLayers.MASK_SHOT_FULL
|
||||
InteractionLayers.MASK_SHOT_PHYSICS
|
||||
);
|
||||
|
||||
if (CRayTrace.TraceShape(origin, angles, null, options, out TraceResult result))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue