Skip to content

Commit

Permalink
Finger - Fix pings from getting attached to yourself (#105)
Browse files Browse the repository at this point in the history
Exclude parent root of locally controlled entity
  • Loading branch information
Kexanone authored Sep 23, 2024
1 parent 8a0f27c commit a94353b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ modded class SCR_EditorPingInfoDisplay : SCR_InfoDisplay
trace.End = startPos + outDir;
trace.Flags = TraceFlags.WORLD | TraceFlags.OCEAN | TraceFlags.ENTS;
trace.LayerMask = TRACE_LAYER_CAMERA;
trace.Exclude = SCR_PlayerController.GetLocalMainEntity();
trace.Exclude = SCR_PlayerController.GetLocalControlledEntity().GetRootParent();
float traceDis = world.TraceMove(trace, null);
SCR_EditableEntityComponent target = SCR_EditableEntityComponent.GetEditableEntity(trace.TraceEnt);

Expand Down

0 comments on commit a94353b

Please sign in to comment.