Skip to content

Commit

Permalink
Dev (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
MSWS authored Mar 25, 2024
2 parents 2a48394 + b5bd686 commit 25e465a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mod/Jailbreak.Rebel/RebelListener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public RebelListener(IRebelService rebelService, ILastRequestManager lastRequest
}

[GameEventHandler]
private HookResult OnPlayerHurt(EventPlayerHurt @event, GameEventInfo info)
public HookResult OnPlayerHurt(EventPlayerHurt @event, GameEventInfo info)
{
var player = @event.Userid;
if (!player.IsReal())
Expand Down
3 changes: 3 additions & 0 deletions mod/Jailbreak.Warden/Global/WardenBehavior.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ public bool TrySetWarden(CCSPlayerController controller)

_hasWarden = true;
_warden = controller;

_warden.PlayerName = "[WARDEN] " + _warden.PlayerName;

if (_warden.Pawn.Value != null)
{
Expand Down Expand Up @@ -92,6 +94,7 @@ public bool TryRemoveWarden()

if (_warden != null && _warden.Pawn.Value != null)
{
_warden.PlayerName = _warden.PlayerName.Replace("[WARDEN] ", "");
_warden.Pawn.Value.RenderMode = RenderMode_t.kRenderTransColor;
_warden.Pawn.Value.Render = Color.FromArgb(254, 255, 255, 255);
Utilities.SetStateChanged(_warden.Pawn.Value, "CBaseModelEntity", "m_clrRender");
Expand Down

0 comments on commit 25e465a

Please sign in to comment.