Commit graph

23081 commits

Author SHA1 Message Date
Eidolon
7e4d61730e rhi: Fix handle std::hash specialization
This prevented hashing of non-const qualified types. The contract for
std::hash already implies that it is a callable for an lvalue reference
of the template type.
2023-05-19 18:54:19 -05:00
Eidolon
8d390c58d4 hwr2: Extract BlendMode enum from twodee
This enum is usable across multiple parts of hwr2 so it would be easier
to just keep it separate.
2023-05-19 18:54:19 -05:00
Eidolon
20002f83c4 rhi: Make some stencil state dynamic
The reference, compare mask and write mask for each face direction in
the stencil test is now dynamic pipeline state and are implicitly set to
default values when a pipeline is bound. This is implementable using
Vulkan dynamic pipeline state bits and so there is no reason not to
provide it.

In the OpenGL implementation of RHI, this requires tracking some stencil
state internally in the graphics context because the stencil state
functions require multiple inputs that do not cleanly map to the Vulkan
equivalents.
2023-05-19 18:54:19 -05:00
AJ Martinez
a3d954e4ef Guard: Scale graphic to player spheres 2023-05-19 15:35:31 -07:00
AJ Martinez
df6c9cee73 Instashield: actually do height checks 2023-05-19 15:34:54 -07:00
toaster
d86743f0ba Profile selection music
- `_OCEAN` on first launch without profile set, to avoid skipping between three different tracks in quick succession
- 'FILE' if you create a new profile on first launch OR if you go into Options->Profiles
2023-05-19 23:10:13 +01:00
toaster
ca68fe630b Show PAUSED image when the game is stopped by the pause command
In addition, don't show the pause menu PAUSED in modeattacking/netgames
This text is now snapto-affected, since we can't (or at least shouldn't) summon the widescreen border in regular pause instances.
2023-05-19 22:16:07 +01:00
toaster
f7107e2f66 Rearranged again
All that effort and I didn't notice there was two i's 🥹
2023-05-19 21:42:48 +01:00
toaster
af334f927f Cleanup of the Virtual Keyboard
- Variable width key support
    - Rearrangement of keys to take advantage of this
- Uses thin strings
    - Or arrow sigils for backspace/shift
- Shift and caps lock have been visually combined to match other virtual keyboards
    - Press shift once to enable shift, press again to disable shift and enable caps lock
    - Indicator light on shift to show capslock state
2023-05-19 21:21:48 +01:00
toaster
c8f350aa70 CON_ShiftChar: Integrate numpad translation from CON_Responder, so both chat and menu input can take advantage
The original written comment by Callum remarks that it was good for writing IP addresses, and this makes it apply to the IP address Online Menu field...
Also adds better comments.
2023-05-19 17:56:28 +01:00
toaster
8e4e2eb0a9 CON_Responder: *also* use CON_ShiftChar directly rather than have two different implementations that could desync 2023-05-19 17:42:16 +01:00
toaster
0845cf0775 M_ChangeStringVar: Fix Caps Lock by using CON_ShiftChar directly 2023-05-19 17:40:22 +01:00
toaster
276bbebc6f Use 6widthspace for Virtual Keyboard bottom-of-screen message 2023-05-19 17:33:08 +01:00
toaster
23378048e3 k_menudraw.c: For all IT_CV_STRING handling, use a selection arrow instead of a flashing underscore
Makes it clear that you can't type directly into the field, but must select it first.
2023-05-19 12:52:31 +01:00
toaster
03a7f33c55 M_DrawMenuTyping: Slightly more consistent spacing for single-char virtual keys
The entire virtual keyboard needs a visual redesign, but this will make navigating it slightly easier for now.
2023-05-19 12:51:40 +01:00
toaster
16649d0754 M_ChangeStringCvar: Support for Cut, Copy, and Paste
- Ctrl codes
    - ctrl-c, ctrl ins (copy)
    - ctrl-x (cut)
    - ctrl-v (paste)
- Shift codes
    - shift-ins (paste)
    - shift-del (cut)
2023-05-19 12:25:45 +01:00
Sally Coolatta
96ad5afd07 Add MF_PICKUPFROMBELOW to rings
Closes #446
2023-05-19 06:19:45 -04:00
Sally Coolatta
f1d5867877 Bots: Make Lv.1 end worse at timing items 2023-05-19 06:09:29 -04:00
Sally Coolatta
2eff6d7fb5 Bots: Make them stay farther from the beam 2023-05-19 06:08:37 -04:00
AJ Martinez
dadaab1817 Add guarding while ebraking with spheres 2023-05-19 01:53:14 -07:00
Sally Coolatta
cbb684cd25 Bots: Add bot name to debugbots
For the frontrunner behavior
2023-05-19 01:29:46 -04:00
Sally Coolatta
724beb0ffe Bots: Improve rubberbanding further
- Use easing functions for the rubberbanding values themselves, for more fine-control over the end-points and the curves.
- Fixed K_UpdateRubberband being broken from using shift instead of divide.
- Rename `debugbotpredict` to `debugbots`, it now displays some of the bots' botvars values as well. If the player isn't a bot, it will show them from the first place bot (for inspecting the rubberband value).
- Bot turning buff was increased, from x1.25 to x2.0. Noticed that Tails bots were failing turns on Popcorn Workshop. I personally think that Tails bots shouldn't be failing very many turns unless if they're finding objects, and constant wall-bumping should be reserved for Eggman and Metal :P
2023-05-19 01:00:55 -04:00
Sal
65511d6fdc Merge branch 'build-bot-party' into 'master'
Fix some failed assertions for G_LeaveParty

See merge request KartKrew/Kart!1243
2023-05-19 03:08:07 +00:00
James R
20d9d48483 Destroy parties explicitly before building
This removes a call to G_DestroyParty from CL_ClearPlayer.
The problem with calling it from there is that the
consoleplayer of a splitscreen is removed first, the local
party is cleared. Then G_LeaveParty assert fails when the
next splitscreen player is removed because the console's
party was already cleared.
2023-05-18 19:15:02 -07:00
James R
11b2ee0d26 Got_AddBot: build party and set playerconsole
Fixes bot's local party being empty (fails assert at
G_LeaveParty).
2023-05-18 18:40:01 -07:00
AJ Martinez
1b16b3f777 Instawhip: Damage sourcing and consistency fixes 2023-05-18 16:17:52 -07:00
AJ Martinez
57e03e8a80 Instawhip monitor hack: one contact per whip 2023-05-17 14:28:46 -07:00
AJ Martinez
d95ceac1c4 Instawhip charge restrictions 2023-05-17 14:15:26 -07:00
AJ Martinez
d68de3a0e5 Instawhip: Bump up attacker hitlag 2023-05-17 14:06:37 -07:00
AJ Martinez
e189725fc3 Fix instawhip cooldown reminder 2023-05-17 14:01:11 -07:00
AJ Martinez
466f7dece0 Instawhip twirl 2023-05-17 13:47:37 -07:00
toaster
569ec11624 Y_PlayerStandingsDrawer: Show the points increase(/decrease)
Shows in the same position as ping.
Also, pushes the results slightly closer together horizontally if ping/increase is visible.
2023-05-17 15:40:08 +01:00
AJ Martinez
a3cc422706 WIP: the sequel 2023-05-17 01:50:17 -07:00
AJ Martinez
18c45d8a8a WIP: Insta-"whip" 2023-05-16 23:36:38 -07:00
Sal
cf120e7d8e Merge branch 'minimap-tidy' into 'master'
Minimap Tidy

See merge request KartKrew/Kart!1239
2023-05-17 03:01:50 +00:00
Sal
f2c25b09ff Merge branch 'remove-nights-chase' into 'master'
Remove P_NightsItemChase

See merge request KartKrew/Kart!1240
2023-05-17 01:03:00 +00:00
toaster
eb167a77dd Challenges menu: Change track to "Lost in Recollection", away from "Always Read the Manual" 2023-05-16 22:30:54 +01:00
toaster
2e1a80c9ca M_DrawPause: Show Round number/event sigil when roundqueue/GP is in action 2023-05-16 22:21:09 +01:00
Sally Coolatta
5b5323226f Bots: Rebalance rubberband speeds
- Lv.1 has a significanty lower minimum top speed (from 75% -> 50%)
- Lv.MAX has a significantly higher minimum top speed (from 112.5% -> 125%)
- Every bot level has a slightly lower maximum top speed (Lv.1: 100% -> 80%, Lv.MAX: 220% -> 200%)
- Uses easing functions now to make the distance rubberbanding applies to, and the rubberbanding curves, much more customizable.
2023-05-15 23:53:32 -04:00
Sally Coolatta
7ddfddb3a8 Bots: Modify friction changes with gamespeed 2023-05-15 23:10:59 -04:00
Sally Coolatta
1abc097bb5 Remove P_NightsItemChase
Keeps being called in some strange instance by rings, even though the case that calls it shouldn't happen, and causing a crash -- just delete it.
2023-05-15 21:45:25 -04:00
Sal
fdda4df9ae Merge branch 'bot-new-stuff' into 'master'
Bots: New Features / Improvements

See merge request KartKrew/Kart!1237
2023-05-16 00:33:41 +00:00
Sally Coolatta
f66798f0a7 Bots: Nudge towards other Ring Shooters 2023-05-15 19:44:20 -04:00
Sally Coolatta
728cd1bd7b Bots: Add Kitchen Sink to K_BotPickItemPriority 2023-05-15 19:08:54 -04:00
Sally Coolatta
fc1f586f47 Fix K_AirFailsafe speed 2023-05-15 19:04:06 -04:00
toaster
e40921bf0d K_drawKartMinimap: When the player NO CONTESTs:
- If the player's MT_KART_LEFTOVER is being followed instead of their flung corpse
    - Flicker with the object.
- Else, don't draw anything
Fixes the teleporting corpse minimap tracking when you NO CONTEST.
2023-05-15 20:51:25 +01:00
toaster
e1b0ad3eaf K_DrawKartMinimap: Fix ghosts not being drawn properly
Check for progressionbar was being accidentially inverted
2023-05-15 20:38:59 +01:00
Oni
6acb52396b Merge branch 'intermission-tidy' into 'master'
Intermission tidy

See merge request KartKrew/Kart!1238
2023-05-15 18:46:08 +00:00
Oni
67879b7805 Merge branch 'discord-menu' into 'master'
Discord Requests menu port

See merge request KartKrew/Kart!1234
2023-05-15 18:41:21 +00:00
Oni
d0021a75be Merge branch 'fix-dedi-chat' into 'master'
Fix chat messages being krangled on dedicated servers

See merge request KartKrew/Kart!1235
2023-05-15 18:23:03 +00:00