Skip to content

Commit

Permalink
Fix color applications
Browse files Browse the repository at this point in the history
  • Loading branch information
MSWS committed Sep 1, 2024
1 parent b7ea2fa commit dd71c2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions mod/Jailbreak.Rebel/RebelManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,7 @@ private void applyRebelColor(CCSPlayerController player) {
if (!player.IsReal() || player.Pawn.Value == null) return;
var color = getRebelColor(player);

player.Pawn.Value.RenderMode = RenderMode_t.kRenderTransColor;
player.Pawn.Value.Render = color;
Utilities.SetStateChanged(player.Pawn.Value, "CBaseModelEntity",
"m_clrRender");
player.SetColor(color);

player.ColorScreen(
Color.FromArgb(8 + (int)Math.Round(getRebelTimePercentage(player) * 32),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,7 @@ private void setSpecialColor(CCSPlayerController player, bool hasSt) {
Color.FromArgb(255, 0, 255, 0) :
Color.FromArgb(255, 255, 255, 255);

player.Pawn.Value.RenderMode = RenderMode_t.kRenderTransColor;
player.Pawn.Value.Render = color;
Utilities.SetStateChanged(player.Pawn.Value, "CBaseModelEntity",
"m_clrRender");
player.SetColor(color);
}

private class SpecialTreatmentState {
Expand Down

0 comments on commit dd71c2c

Please sign in to comment.