mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
wip splitscreen garbage. DOES NOT WORK.
This commit is contained in:
parent
e632e1d70e
commit
e980be69ef
2 changed files with 22 additions and 2 deletions
22
src/k_hud.c
22
src/k_hud.c
|
|
@ -3971,13 +3971,31 @@ static void K_drawTrickCool(void)
|
|||
{
|
||||
|
||||
tic_t timer = TICRATE - stplyr->karthud[khud_trickcool];
|
||||
INT32 x = (BASEVIDWIDTH/2);
|
||||
INT32 y = ((BASEVIDHEIGHT)/2)-10;
|
||||
|
||||
// @TODO: fix this shit
|
||||
/*if (r_splitscreen > 2) // 4p split
|
||||
{
|
||||
if (stplyr == &players[displayplayers[0]] || stplyr == &players[displayplayers[2]])
|
||||
{
|
||||
x /= 2;
|
||||
y /= 2;
|
||||
}
|
||||
else
|
||||
{
|
||||
x /= 2 + BASEVIDWIDTH/2;
|
||||
y /= 2 + BASEVIDHEIGHT/2;
|
||||
}
|
||||
}*/
|
||||
|
||||
if (timer <= 6)
|
||||
{
|
||||
V_DrawStretchyFixedPatch(160<<FRACBITS, 90<<FRACBITS, stretch[timer-1][0], stretch[timer-1][1], V_HUDTRANS, kp_trickcool[splitscreen ? 1 : 0], NULL);
|
||||
V_DrawStretchyFixedPatch(x<<FRACBITS, y<<FRACBITS, stretch[timer-1][0], stretch[timer-1][1], V_HUDTRANS, kp_trickcool[splitscreen ? 1 : 0], NULL);
|
||||
}
|
||||
else if (leveltime & 1)
|
||||
{
|
||||
V_DrawFixedPatch(160<<FRACBITS, (90<<FRACBITS) - (timer-10)*FRACUNIT/2, FRACUNIT, V_HUDTRANS, kp_trickcool[splitscreen ? 1 : 0], NULL);
|
||||
V_DrawFixedPatch(x<<FRACBITS, (y<<FRACBITS) - (timer-10)*FRACUNIT/2, FRACUNIT, V_HUDTRANS, kp_trickcool[splitscreen ? 1 : 0], NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -8145,6 +8145,8 @@ void K_AdjustPlayerFriction(player_t *player)
|
|||
// if you tumble, they'll fall off instead.
|
||||
//
|
||||
|
||||
// @TODO: R_PointToAngle is unreliable in splitscreen..............
|
||||
|
||||
#define RADIUSSCALING 6
|
||||
#define MINRADIUS 12
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue