mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
fix kill/reactor flash not showing
This commit is contained in:
1 parent
43e5720a70
commit
d90ecf4f46
3 files changed
+6
-6
No files matched your search
+1
-1
@@ -204,7 +204,7 @@ public class CustomLogger
|
||||
<style>
|
||||
body { font-family: Arial, sans-serif; background-color: #1e1e1e; color: #aaaaaa; margin: 0; padding: 1rem; font-family: "Roboto Mono", "Consolas", "Courier New", monospace; }
|
||||
.log-entry-unity { margin: 0; padding: 0; border-radius: 5px; letter-spacing: 0.1rem; background-color: transparent; }
|
||||
.info-unity { font-size: 0.8rem; }
|
||||
.info-unity { font-size: 0.8rem; color: #777777; }
|
||||
.warning-unity { color: #ffff99; }
|
||||
.error-unity { color: red; border-radius: 10px; margin: 1rem; }
|
||||
.fatal-unity { background: linear-gradient(to bottom, #ff9999, #cc0000); color: black; border: 3px solid yellow; border-radius: 15px; padding: 1rem; }
|
||||
|
||||
@@ -811,6 +811,8 @@ internal static class ExtendedPlayerControl
|
||||
public void KillFlash()
|
||||
{
|
||||
if (GameStates.IsLobby || !player) return;
|
||||
|
||||
Logger.Info($"Showing kill flash for {player.GetNameWithRole()}", "KillFlash");
|
||||
|
||||
// Kill flash (blackout + reactor flash) processing
|
||||
|
||||
@@ -830,6 +832,7 @@ internal static class ExtendedPlayerControl
|
||||
if (reactorCheck && !player.IsModdedClient())
|
||||
{
|
||||
Main.PlayerStates[player.PlayerId].IsBlackOut = true; // Blackout
|
||||
player.MarkDirtySettings();
|
||||
|
||||
LateTask.New(() =>
|
||||
{
|
||||
@@ -849,8 +852,6 @@ internal static class ExtendedPlayerControl
|
||||
AmongUsClient.Instance.FinishRpcImmediately(writer);
|
||||
}
|
||||
else if (!reactorCheck) player.ReactorFlash(canBlind: false); // Reactor flash
|
||||
|
||||
player.MarkDirtySettings();
|
||||
}
|
||||
|
||||
public void RpcGuardAndKill(PlayerControl target = null, bool forObserver = false, bool fromSetKCD = false)
|
||||
@@ -1072,7 +1073,7 @@ internal static class ExtendedPlayerControl
|
||||
Due to the addition of logs, it is no longer possible to guard no one, so it has been changed to the player guarding themselves for 0 seconds instead.
|
||||
This change disables Guardian Angel as a position.
|
||||
Reset host cooldown directly.
|
||||
*/
|
||||
*/
|
||||
}
|
||||
|
||||
public void RpcDesyncUpdateSystem(SystemTypes systemType, int amount)
|
||||
@@ -1082,6 +1083,7 @@ internal static class ExtendedPlayerControl
|
||||
messageWriter.WriteNetObject(player);
|
||||
messageWriter.Write((byte)amount);
|
||||
AmongUsClient.Instance.FinishRpcImmediately(messageWriter);
|
||||
Logger.Info($"SystemTypes: {systemType}, amount: {amount}", "RpcDesyncUpdateSystem");
|
||||
}
|
||||
|
||||
public void MarkDirtySettings()
|
||||
|
||||
@@ -346,8 +346,6 @@ public static class Utils
|
||||
|
||||
private static void TargetDies(PlayerControl killer, PlayerControl target)
|
||||
{
|
||||
if (target.IsAlive() || GameStates.IsMeeting) return;
|
||||
|
||||
CustomRoles targetRole = target.GetCustomRole();
|
||||
|
||||
foreach (PlayerControl seer in Main.CachedAllPlayerControls())
|
||||
|
||||
Reference in new issue
Block a user