Disable cell snitching

This commit is contained in:
MSWS
2025-02-25 02:28:39 -08:00
parent ddd4402ac5
commit 6c2ab5e89c
2 changed files with 7 additions and 7 deletions

View File

@@ -26,7 +26,7 @@ public class GangsInit : IPluginBehavior {
_ = new BombIconBootstrap(services);
_ = new SDColorBootstrap(services);
_ = new CellsPerkBootstrap(services);
// _ = new CellsPerkBootstrap(services);
_ = new LRColorBootstrap(services);
_ = new WardenIconBootstrap(services);
_ = new SpecialIconBootstrap(services);

View File

@@ -70,7 +70,7 @@ public class WardenBehavior(ILogger<WardenBehavior> logger,
public static readonly FakeConVar<bool> CV_WARDEN_AUTO_SNITCH =
new("css_jb_warden_auto_snitch",
"True to broadcast how many prisoners were in cells when they auto-open",
true);
false);
public static readonly FakeConVar<int> CV_WARDEN_HEALTH =
new("css_jb_warden_hp", "HP for the warden", 125, ConVarFlags.FCVAR_NONE,
@@ -187,7 +187,8 @@ public class WardenBehavior(ILogger<WardenBehavior> logger,
logs.Append(logs.Player(Warden), "is now the warden.");
unblueTimer = parent.AddTimer(3, unmarkPrisonersBlue);
passFreedayTimer?.Kill(); // If a warden is assigned, cancel the 10s freeday timer on pass
passFreedayTimer
?.Kill(); // If a warden is assigned, cancel the 10s freeday timer on pass
mute.PeaceMute(firstWarden ?
MuteReason.INITIAL_WARDEN :
MuteReason.WARDEN_TAKEN);
@@ -239,11 +240,10 @@ public class WardenBehavior(ILogger<WardenBehavior> logger,
mute.UnPeaceMute();
HasWarden = false;
if (isPass) { // If passing, start the timer to announce freeday
passFreedayTimer = parent.AddTimer(10, () => {
locale.NowFreeday.ToAllChat();
});
passFreedayTimer =
parent.AddTimer(10, () => { locale.NowFreeday.ToAllChat(); });
}
if (Warden != null && Warden.Pawn.Value != null) {