From 583b7937a334812d457ef8b79dee0f2afbbbf30b Mon Sep 17 00:00:00 2001 From: Eidolon Date: Sun, 19 May 2024 02:11:51 -0500 Subject: [PATCH] Disable position bulb animations for Reduce VFX In green resolutions, especially past 12 players, these bulbs take up a large part of the screen and flash in a particularly intense way for people with heightened photosensitivity. This disables the animations while still presenting them effectively. --- src/k_hud.cpp | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/src/k_hud.cpp b/src/k_hud.cpp index 9b28719c9..3661300b2 100644 --- a/src/k_hud.cpp +++ b/src/k_hud.cpp @@ -5025,14 +5025,31 @@ static void K_drawKartStartBulbs(void) bulbtic -= 14; + // Reduce VFX disables the bulb animation while still presenting this indicator + if (bulbtic > length) { bulbtic -= length; - patchnum = chillloop_animation[bulbtic % 2]; + + if (cv_reducevfx.value != 0) + { + patchnum = chillloop_animation[0]; + } + else + { + patchnum = chillloop_animation[bulbtic % 2]; + } } else { - patchnum = loop_animation[bulbtic % 4]; + if (cv_reducevfx.value != 0) + { + patchnum = loop_animation[0]; + } + else + { + patchnum = loop_animation[bulbtic % 4]; + } } } }