Skip to content

Commit

Permalink
Set blue
Browse files Browse the repository at this point in the history
  • Loading branch information
MSWS committed Feb 3, 2024
1 parent 41c5fd9 commit 41562ef
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion mod/Jailbreak.Warden/Global/WardenBehavior.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Reflection;
using System.Drawing;
using System.Reflection;

using CounterStrikeSharp.API;
using CounterStrikeSharp.API.Core;
Expand Down Expand Up @@ -57,6 +58,12 @@ public bool TrySetWarden(CCSPlayerController controller)
_hasWarden = true;
_warden = controller;

if (_warden.Pawn.Value != null)
{
_warden.Pawn.Value.RenderMode = RenderMode_t.kRenderTransColor;
_warden.Pawn.Value.Render = Color.Blue;
}

_notifications.NEW_WARDEN(_warden)
.ToAllChat()
.ToAllCenter();
Expand All @@ -70,6 +77,10 @@ public bool TryRemoveWarden()
return false;

_hasWarden = false;

if (_warden != null && _warden.Pawn.Value != null)
_warden.Pawn.Value.Render = Color.FromArgb(254, 255, 255, 255);

_warden = null;

return true;
Expand Down

0 comments on commit 41562ef

Please sign in to comment.