Commit graph

345 commits

Author SHA1 Message Date
James R
1f3a9a4758 Splitscreen Director HUD; replace freecam HUD 2023-10-09 18:53:55 -07:00
James R
fa89576f34 Move freecam state to camera_t, lets splitscreen players use freecam independently of each other 2023-10-08 14:26:21 -07:00
James R
17b7a2f16d k_director.h: remove directorinfo extern, add K_DirectorIsEnabled 2023-10-08 14:26:21 -07:00
James R
e4fde7735e Revert "HUD: slide in position numbers if race starts immediately"
This reverts commit a8d0bad4b0.
2023-10-04 00:06:21 -07:00
James R
dc4c66322f K_drawKartNameTags: crop HUD tracking to splitscreen viewports 2023-10-03 22:05:48 -07:00
James R
0019e74604 HUD: fix nametag position for P2 in 2P splitscreen 2023-10-03 21:51:35 -07:00
James R
35cb0e4c5c HUD: do not show position number in splitscreen FREE PLAY 2023-10-03 21:28:35 -07:00
James R.
56775e721f HUD: fix FREE PLAY 4P position
Centered at bottom of each screen.
2023-10-03 21:28:34 -07:00
James R.
1935fdcdc3 HUD: remove fade in from ping counters 2023-10-03 21:28:34 -07:00
James R.
54f2882bc9 HUD: fix 4P negative ring counter alignment 2023-10-03 21:28:34 -07:00
James R.
a8d0bad4b0 HUD: slide in position numbers if race starts immediately 2023-10-03 21:28:34 -07:00
James R.
f426a136d5 HUD: fix 4P position numbers 2023-10-03 21:28:34 -07:00
James R.
bf20db1e5e HUD: draw item box over everything else 2023-10-03 21:28:34 -07:00
James R.
4631af55c4 HUD: do not include starting Battle Bumper count, "x/y" -> "x"
- 1P/2P:
  - Resize sticker with number of digits
- 3P/4P:
  - Pad to 2 digits
  - Use larger font
2023-10-03 21:28:34 -07:00
James R.
da2f083e2c HUD: fit bumpers, prisons, spheres, speedometer, rankings, item box HUD without overlapping 2023-10-03 21:28:34 -07:00
James R.
8b79689d81 Add K_DirectorIsAvailable
Fixes director not working correctly if there are
duplicates in displayplayers.
2023-10-03 21:28:33 -07:00
James R.
7b3010c93d Fix many instances of splitscreen view number if there are duplicate displayplayers
- Avoid iterating displayplayers to find view number and
  prefer R_GetViewNumber.
- Iterate over all matching displayplayers if necessary,
  instead of stopping at the first match.
2023-10-03 21:28:33 -07:00
James R.
4819290ca2 itemroulette_t: add reserved member, block roulette and P_CanPickupItem, draw empty item box in HUD 2023-09-17 21:56:18 -07:00
James R.
591a2d94f5 k_drawKartHUD: disable HUD tracking with cv_drawpickups 2023-09-13 00:40:25 -07:00
James R.
5475cc37d5 K_drawKartMinimap: fix splitscreen player icons 2023-09-11 18:30:40 -07:00
James R.
2316671733 K_drawKartMinimap: let minimap fade in relative to st_translucency
- Fixes progression bar sometimes not appearing in Sealed
  Stars.
- Matches timing of V_SLIDEIN.
2023-09-11 18:30:40 -07:00
Sally Coolatta
9d3772b15e Remove tens -> ones place push
Looked better but broke splitscreen again while I wasn't looking, fuck this code
2023-09-09 03:29:32 -04:00
Sally Coolatta
e7642109b7 Fix 4P position numbers > 9 2023-09-09 03:29:32 -04:00
Sally Coolatta
96f7dcb5b8 Fix 3/4P position number 2023-09-09 03:29:10 -04:00
Sal
0675a4e527 Tally screen 2023-09-09 05:27:55 +00:00
James R.
c454843837 Spraycan HUD tracking 2023-09-08 02:55:48 -07:00
James R.
11f428b67a Add 4P variants for TARGET HUD tracking 2023-09-07 00:08:42 -07:00
toaster
fc075b24b4 Merge branch 'gp-lives-steenky' into 'master'
Lives & Rings Cleanup (resolves #647)

Closes #647

See merge request KartKrew/Kart!1447
2023-09-01 20:43:24 +00:00
VelocitOni
85e6e743d4 End user facing edit
"Starpost" --> "Cheat Check" when using debugwaypoints
2023-09-01 12:28:47 -04:00
VelocitOni
8845700c06 Starpost Gentrification
Replaced all mentions of starpostnum and Starpost w/ cheatchecknum and CheatCheck (so Ivo can stop asking why we still need it when its going to save our asses on release patches)
2023-09-01 00:31:49 -04:00
toaster
3c04951375 GP Lives HUD: for 10 lives, use the small number from the position rankings
Per VC discussion, the HUD was adjusted without consideration for negative rings, so preserve the feng shui it was designed around
2023-08-31 22:00:39 +01:00
toaster
a44576ad8d Fix some issues with Rings in Grand Prix
- Store a netsynced SINT8 `hudrings` on the player struct which stores the last rings the player has during play
    - So this doesn't get updated after you finish the level
    - Fixes the issue where the bot ghost that inhabits your body after finishing will use your rings, muddying how many you took into the total
- Fixed order of operations that prevented lives earned with GP rings from being given
    - Also uses hudrings for consistency
- Make the life-give context in P_DoPlayerExit cleaner
    - GPEVENT_NONE
    - no GTR_SPHERES
2023-08-31 21:55:25 +01:00
toaster
79699f47d5 Sealed Star finish cleanup
- No FINISH text
- No voices
- Warp sound on crossing the line, not any other stuff
2023-08-26 23:48:18 +01:00
AJ Martinez
3900189199 Auto Spin -> Auto Roulette 2023-08-20 16:26:34 -07:00
AJ Martinez
fbfc75df71 Item box autospin 2023-08-20 05:08:53 -07:00
James R
c7bd74c661 Let replays use director controls 2023-08-19 05:01:40 -07:00
James R
fcc35c1bb1 Toggle between freecam and director using C button 2023-08-19 05:01:40 -07:00
James R
943086a902 K_TimerInit: disable POSITION in FREE PLAY 2023-08-12 16:38:01 -07:00
toaster
9a35a39f5d Challenges Chao Key usage: Eggman numbers to REALLY drive home that you have to hold the button, and that you can release it early 2023-08-10 00:28:18 +01:00
toaster
92ce673416 K_drawKartTimestamp: Don't va() a constant string 2023-08-10 00:28:17 +01:00
James R
56c5e367ab K_drawKartSlotMachine: fix uninitialized variable
This caused the Ring Box HUD to disappear whenever the
player was turning. But I'm the only one who got this
behavior. Funny how undefined behavior works.
2023-08-07 13:39:33 -07:00
Oni
ced5a56db4 Merge branch 'super-flicky-tracking' into 'master'
Super Flickies now have HUD tracking and map icons

See merge request KartKrew/Kart!1363
2023-08-07 05:05:14 +00:00
AJ Martinez
0c45500901 Ring Box dopamine 2023-07-30 22:15:50 -07:00
VelocitOni
3b1edb903c Super Flicky trackables
Super Flickies have HUD tracking, have map tracking, and are 3x big when chasing instead of 2x
2023-07-30 00:48:59 -04:00
AJ Martinez
6607722b64 Simpler 120-tic flame shield behavior 2023-07-29 05:10:14 -07:00
toaster
55cda3dd5c Correctly flip minimap player icon dot in encore mode
Resolves #582
2023-07-19 22:29:43 +01:00
toaster
c5dc430b50 V_6WIDTHSPACE no longer a pitfall for using V_DrawThinString
The bunched text behaviour is now the primary mode of operation for TINY_FONT.
2023-07-12 09:00:29 +01:00
toaster
a536f884ce V_ALLOWLOWERCASE --> V_FORCEUPPERCASE
Content of commit was originally written by Sal, but as a monolithic commit. The author of this commit is chunking it up for easier review.

Simple inversion on the face of things, but with a long tail of consequences, including 19 changed files.

Forced uppercase has been applied in a handful of locations where it was aesthetically imperative. Most menus will follow in another commit, so that that may be reverted if we change the default menu font.
2023-07-12 09:00:29 +01:00
James R
7fdfa56451 Show point count next to rank icons HUD in Battle
If the player has reached the point limit, the numbers
dance and flash tangerine (indicating that they are about
to win, after they kill someone).
2023-07-03 06:20:21 -04:00
James R
e65b1531ae Draw MMAPDOT in front of players' facing angles on the minimap 2023-07-03 06:20:20 -04:00