From 48604f658d660fd36e7af08182f99a188e43d137 Mon Sep 17 00:00:00 2001 From: MSWS Date: Sat, 27 Jan 2024 01:10:33 -0800 Subject: [PATCH] Debug --- mod/Jailbreak.Warden/Markers/WardenMarkerBehavior.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mod/Jailbreak.Warden/Markers/WardenMarkerBehavior.cs b/mod/Jailbreak.Warden/Markers/WardenMarkerBehavior.cs index 5980dba2..334b75b0 100644 --- a/mod/Jailbreak.Warden/Markers/WardenMarkerBehavior.cs +++ b/mod/Jailbreak.Warden/Markers/WardenMarkerBehavior.cs @@ -32,9 +32,10 @@ public HookResult OnPing(EventPlayerPing @event, GameEventInfo info) { var player = @event.Userid; + player.PrintToChat("OnPing worked"); if (!_warden.IsWarden(player)) return HookResult.Handled; - + player.PrintToChat("You are warden, drawing marker"); Vector vec = new Vector(@event.X, @event.Y, @event.Z); _marker?.Move(vec); _marker?.Update(); @@ -43,6 +44,7 @@ public HookResult OnPing(EventPlayerPing @event, GameEventInfo info) HookResult CommandListener_PlayerPing(CCSPlayerController? player, CommandInfo info) { + player.PrintToChat("CommandListener worked"); return HookResult.Handled; } } \ No newline at end of file