From a94353be6a1fbce09d46faf812e1db46af88de97 Mon Sep 17 00:00:00 2001 From: Kex Date: Mon, 23 Sep 2024 02:20:47 +0200 Subject: [PATCH] Finger - Fix pings from getting attached to yourself (#105) Exclude parent root of locally controlled entity --- .../Editor/UI/InfoDisplays/SCR_EditorPingInfoDisplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/finger/scripts/Game/ACE_Finger/Editor/UI/InfoDisplays/SCR_EditorPingInfoDisplay.c b/addons/finger/scripts/Game/ACE_Finger/Editor/UI/InfoDisplays/SCR_EditorPingInfoDisplay.c index 9c86f418..d1f0879c 100644 --- a/addons/finger/scripts/Game/ACE_Finger/Editor/UI/InfoDisplays/SCR_EditorPingInfoDisplay.c +++ b/addons/finger/scripts/Game/ACE_Finger/Editor/UI/InfoDisplays/SCR_EditorPingInfoDisplay.c @@ -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);