mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-03 07:22:10 +00:00
Vape mode: Changes to behaviour
- Only tunes that sync with the level will change in speed. This means it will not apply to jingles or Stereo Mode.
- In Versus mode contexts, Vape Mode makes way for nightcore.
- This is a roughly 15% increase, the inverse of the standard encore multiplication.
This commit is contained in:
parent
ab0094b8d0
commit
f64ee282ac
1 changed files with 13 additions and 3 deletions
|
|
@ -16,6 +16,7 @@
|
||||||
|
|
||||||
#include "doomdef.h"
|
#include "doomdef.h"
|
||||||
#include "doomtype.h"
|
#include "doomtype.h"
|
||||||
|
#include "k_boss.h"
|
||||||
#include "music_detail.hpp"
|
#include "music_detail.hpp"
|
||||||
|
|
||||||
namespace srb2::music
|
namespace srb2::music
|
||||||
|
|
@ -78,12 +79,21 @@ public:
|
||||||
bool paused() const { return pause_.has_value(); }
|
bool paused() const { return pause_.has_value(); }
|
||||||
bool can_end() const { return end_ != INFTICS; }
|
bool can_end() const { return end_ != INFTICS; }
|
||||||
|
|
||||||
|
// Slow level music down a bit in Encore. (Values are vibe-based. WE GET IT YOU VAPE)
|
||||||
|
const float encoremul = 0.86471f;
|
||||||
|
|
||||||
float speed() const
|
float speed() const
|
||||||
{
|
{
|
||||||
// Slow level music down a bit in Encore. (Values are vibe-based. WE GET IT YOU VAPE)
|
// Sync is checked first because it's synced with the level context. Get it?
|
||||||
if (encoremode && gamestate == GS_LEVEL)
|
if (sync && encoremode && gamestate == GS_LEVEL)
|
||||||
{
|
{
|
||||||
return 0.86471f;
|
if (K_CheckBossIntro())
|
||||||
|
{
|
||||||
|
// In Versus, the vape makes you think you can start a nightcore YT channel
|
||||||
|
return (1.f/encoremul);
|
||||||
|
}
|
||||||
|
|
||||||
|
return encoremul;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1.f;
|
return 1.f;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue