Half screenshake in Battle

This commit is contained in:
AJ Martinez 2024-01-06 00:50:47 -07:00
parent 10f8bb5a3f
commit cb11627bb5

View file

@ -50,6 +50,7 @@
#include "acs/interface.h" #include "acs/interface.h"
#include "m_easing.h" #include "m_easing.h"
#include "music.h" #include "music.h"
#include "k_battle.h" // battleprisons
// Not sure if this is necessary, but it was in w_wad.c, so I'm putting it here too -Shadow Hog // Not sure if this is necessary, but it was in w_wad.c, so I'm putting it here too -Shadow Hog
#include <errno.h> #include <errno.h>
@ -9517,6 +9518,11 @@ void P_DoQuakeOffset(UINT8 view, mappoint_t *viewPos, mappoint_t *offset)
addZ = -addZ; addZ = -addZ;
} }
if ((gametyperules & GTR_PRISONS) && !battleprisons)
{
addZ /= 2;
}
if (cv_screenshake.value == 1) // Half if (cv_screenshake.value == 1) // Half
{ {
addZ /= 2; addZ /= 2;