mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-03-13 22:56:28 +00:00
Reduced hitlag jitter
Makes a little easier to parse. I might have gone overboard but I really wanted to test my hunch if Ivo's issue was mostly the fact it jitters so hard :V
This commit is contained in:
parent
a17f11e6c5
commit
0974d6d1f4
5 changed files with 12 additions and 6 deletions
|
|
@ -39,6 +39,7 @@
|
|||
#include "../f_finale.h"
|
||||
#include "../r_things.h" // R_GetShadowZ
|
||||
#include "../p_slopes.h"
|
||||
#include "../k_kart.h" // HITLAGJITTERS
|
||||
#include "hw_md2.h"
|
||||
|
||||
#ifdef NEWCLIP
|
||||
|
|
@ -3645,7 +3646,7 @@ static void HWR_DrawDropShadow(mobj_t *thing, fixed_t scale)
|
|||
// hitlag vibrating
|
||||
if (thing->hitlag > 0 && (thing->eflags & MFE_DAMAGEHITLAG))
|
||||
{
|
||||
fixed_t mul = thing->hitlag * (FRACUNIT / 10);
|
||||
fixed_t mul = thing->hitlag * HITLAGJITTERS;
|
||||
|
||||
if (leveltime & 1)
|
||||
{
|
||||
|
|
@ -5064,7 +5065,7 @@ static void HWR_ProjectSprite(mobj_t *thing)
|
|||
// hitlag vibrating
|
||||
if (thing->hitlag > 0 && (thing->eflags & MFE_DAMAGEHITLAG))
|
||||
{
|
||||
fixed_t mul = thing->hitlag * (FRACUNIT / 10);
|
||||
fixed_t mul = thing->hitlag * HITLAGJITTERS;
|
||||
|
||||
if (leveltime & 1)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -45,6 +45,7 @@
|
|||
|
||||
// SRB2Kart
|
||||
#include "../k_color.h"
|
||||
#include "../k_kart.h" // HITLAGJITTERS
|
||||
|
||||
#ifdef HAVE_PNG
|
||||
|
||||
|
|
@ -1374,7 +1375,7 @@ boolean HWR_DrawModel(gl_vissprite_t *spr)
|
|||
// hitlag vibrating
|
||||
if (spr->mobj->hitlag > 0 && (spr->mobj->eflags & MFE_DAMAGEHITLAG))
|
||||
{
|
||||
fixed_t mul = spr->mobj->hitlag * (FRACUNIT / 10);
|
||||
fixed_t mul = spr->mobj->hitlag * HITLAGJITTERS;
|
||||
|
||||
if (leveltime & 1)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -3744,7 +3744,7 @@ static void K_drawKartFirstPerson(void)
|
|||
// hitlag vibrating
|
||||
if (stplyr->mo->hitlag > 0 && (stplyr->mo->eflags & MFE_DAMAGEHITLAG))
|
||||
{
|
||||
fixed_t mul = stplyr->mo->hitlag * (FRACUNIT / 10);
|
||||
fixed_t mul = stplyr->mo->hitlag * HITLAGJITTERS;
|
||||
if (r_splitscreen && mul > FRACUNIT)
|
||||
mul = FRACUNIT;
|
||||
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ Make sure this matches the actual number of states
|
|||
#define KART_NUMINVSPARKLESANIM 12
|
||||
|
||||
#define MAXHITLAGTICS 18 //12
|
||||
#define HITLAGJITTERS (FRACUNIT / 32)
|
||||
|
||||
player_t *K_GetItemBoxPlayer(mobj_t *mobj);
|
||||
angle_t K_ReflectAngle(angle_t angle, angle_t against, fixed_t maxspeed, fixed_t yourspeed);
|
||||
|
|
|
|||
|
|
@ -35,7 +35,6 @@
|
|||
#include "p_slopes.h"
|
||||
#include "d_netfil.h" // blargh. for nameonly().
|
||||
#include "m_cheat.h" // objectplace
|
||||
#include "k_color.h" // SRB2kart
|
||||
#include "p_local.h" // stplyr
|
||||
#ifdef HWRENDER
|
||||
#include "hardware/hw_md2.h"
|
||||
|
|
@ -44,6 +43,10 @@
|
|||
#include "hardware/hw_drv.h"
|
||||
#endif
|
||||
|
||||
// SRB2kart
|
||||
#include "k_color.h"
|
||||
#include "k_kart.h" // HITLAGJITTERS
|
||||
|
||||
#define MINZ (FRACUNIT*4)
|
||||
#define BASEYCENTER (BASEVIDHEIGHT/2)
|
||||
|
||||
|
|
@ -1438,7 +1441,7 @@ static void R_ProjectSprite(mobj_t *thing)
|
|||
// hitlag vibrating
|
||||
if (thing->hitlag > 0 && (thing->eflags & MFE_DAMAGEHITLAG))
|
||||
{
|
||||
fixed_t mul = thing->hitlag * (FRACUNIT / 10);
|
||||
fixed_t mul = thing->hitlag * HITLAGJITTERS;
|
||||
|
||||
if (leveltime & 1)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue