Commit graph

23175 commits

Author SHA1 Message Date
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
toaster
b95c537cdf Got_Mapcmd: Handle the case where netcommunicated roundqueue data with a size less than the client's would be silently ignored. 2023-05-15 17:55:43 +01:00
toaster
6711887179 Y_IntermissionDrawer: Improved header string handling
- Center generalised text without the "got through round" backing
- For spectators observing a Round Queue, show "ROUND (n)" at the top instead of the more generalised fallback strings
2023-05-15 17:47:39 +01:00
toaster
33bec3c99c Y_IntermissionDrawer: Draw the foreground border on widescreen resolutions
Also changes the position of the Replay Save message to not get cut off
2023-05-15 17:41:29 +01:00
Sally Coolatta
69181e4ff2 Bots: Fix a couple bugs with item priority
- Fix Ring Debt priorities being used even when not at 0 rings
- Fix extra item results not being considered for priorities.
2023-05-15 06:51:13 -04:00
Sally Coolatta
7d7875d7be Bots: New spindash conditions are more specific
- Uphill check is ignored if you have slope resistance, or if you're moving fast enough to overpower it.
- Offroad check is ignored if it wouldn't slow you down.
- Made slow acceleration check have a higher range.
2023-05-15 06:49:31 -04:00
Sally Coolatta
12ff9dc2ba Bots: Lv.1 doesn't wait as long for items
3sec -> 2sec
2023-05-15 06:31:01 -04:00