From 75a9cd12a13d19bceb0df51759587f3053b7e616 Mon Sep 17 00:00:00 2001 From: MSWS Date: Sat, 27 Jan 2024 02:01:02 -0800 Subject: [PATCH] Fix positioning, reduce radius --- mod/Jailbreak.Warden/Markers/WardenMarkerBehavior.cs | 2 +- public/Jailbreak.Public/Mod/Draw/BeamCircle.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mod/Jailbreak.Warden/Markers/WardenMarkerBehavior.cs b/mod/Jailbreak.Warden/Markers/WardenMarkerBehavior.cs index aab32b2a..e8ba7f07 100644 --- a/mod/Jailbreak.Warden/Markers/WardenMarkerBehavior.cs +++ b/mod/Jailbreak.Warden/Markers/WardenMarkerBehavior.cs @@ -21,7 +21,7 @@ public WardenMarkerBehavior(IWardenService warden) public void Start(BasePlugin plugin) { - _marker = new BeamCircle(plugin, new Vector(), 80f, (int)Math.PI * 80); + _marker = new BeamCircle(plugin, new Vector(), 60f, (int)Math.PI * 15); plugin.AddCommandListener("player_ping", CommandListener_PlayerPing); } diff --git a/public/Jailbreak.Public/Mod/Draw/BeamCircle.cs b/public/Jailbreak.Public/Mod/Draw/BeamCircle.cs index ba8e2594..ccd38a99 100644 --- a/public/Jailbreak.Public/Mod/Draw/BeamCircle.cs +++ b/public/Jailbreak.Public/Mod/Draw/BeamCircle.cs @@ -43,8 +43,8 @@ public override void Draw() for (var i = 0; i < lines.Length; i++) { var line = lines[i]; - var start = offsets[i]; - var end = offsets[(i + 1) % offsets.Length]; + var start = position + offsets[i]; + var end = position + offsets[(i + 1) % offsets.Length]; if (line == null) { line = new BeamLine(plugin, start, end);