From 7f28370db6db7683a6551f407aeff137f9dd969e Mon Sep 17 00:00:00 2001 From: cypress Date: Fri, 3 Nov 2023 10:58:01 -0400 Subject: [PATCH] SERVER/CLIENT: Adjust Round time delay --- source/client/hud.qc | 13 +++++++------ source/server/rounds.qc | 4 ++-- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/source/client/hud.qc b/source/client/hud.qc index 8b380da..54b2efe 100644 --- a/source/client/hud.qc +++ b/source/client/hud.qc @@ -561,7 +561,7 @@ void(float width, float height) HUD_Rounds = if (endroundchange > time) { - blinking = ((int)(time*1000)&510) - 255; + blinking = ((int)(time*475)&510) - 255; blinking = fabs(blinking); } else @@ -628,8 +628,10 @@ void(float width, float height) HUD_Rounds = x_offset = x_offset + roundwidth_num - (8*width/480); } - if (endroundchange == 0) - endroundchange = time + 2; + if (endroundchange == 0) { + endroundchange = time + 7.5; + blinking = 0; + } } else if (rounds_change == 5)//blink white { @@ -696,9 +698,8 @@ void(float width, float height) HUD_Rounds = endroundchange = 0; color_shift_init = 0; - blinking = ((int)(time*1000)&510) - 255; - - blinking = fabs(blinking); + blinking += frametime*500; + if (blinking > 255) blinking = 255; if (rounds > 0 && rounds < 11) { diff --git a/source/server/rounds.qc b/source/server/rounds.qc index 44e313f..acffd04 100644 --- a/source/server/rounds.qc +++ b/source/server/rounds.qc @@ -146,7 +146,7 @@ void() EndRound = } else { playSoundAtPlayers("sounds/rounds/eround.wav"); } - round_changetime = time + 5; + round_changetime = time + 10; // No Perks? No Problem & Abstinence Program if (rounds >= 10) { @@ -320,7 +320,7 @@ void() Round_Core = } if (Remaining_Zombies < 1 && !Delay_Time) { - Delay_Time = time + 2; + Delay_Time = time + 1; rounds_change = 3; } else if (Delay_Time && Delay_Time < time) { Delay_Time = 0;