Commit graph

2065 commits

Author SHA1 Message Date
AJ Martinez
97dcc33f0d Reset cheatchecks when respawns would decrease lap 2024-02-01 23:34:29 -07:00
James R
6c2736bd1d Move party construction to G_AddPlayer
- Fixes crash when a player leaves when viewing a replay
- Slightly refactors player joining code (including bots)
2024-01-28 23:02:57 -08:00
Eidolon
742c895228 Merge branch 'xtralives-cheaters-in-tears' into 'master'
Don't affect GP status if retrying

Closes #997

See merge request KartKrew/Kart!1882
2024-01-29 00:27:21 +00:00
Sal
3958c15dfe New Credits 2024-01-28 23:31:30 +00:00
Eidolon
9fb0efae3c Don't affect GP status if retrying
Fixes KartKrew/Kart#997, and then some. The bot difficulty was also
being affected by retrying after completing a race, so that's prevented
too.
2024-01-28 17:06:47 -06:00
James R
418f2a14c4 Battle: delay Tally a little bit to let round end camera finish beforehand 2024-01-22 16:42:29 -08:00
James R
eccc0a6924 Fix battlespawn cheat 2024-01-22 16:42:28 -08:00
AJ Martinez
e867a9ee41 Ring dump transparency 2024-01-20 19:15:09 -07:00
Sal
65aaf679b6 Merge branch 'easy-top-bounce' into 'master'
Slow down top if player's out of control

Closes #627

See merge request KartKrew/Kart!1836
2024-01-14 21:04:21 +00:00
Oni
271a5a44ed Merge branch 'battle-fixes-five-nights' into 'master'
Battle Fixes at Freddy's (includes gameplay changes that affect Race too!)

Closes #879, #893, #900, #918, #906, #903, #913, #907, and #905

See merge request KartKrew/Kart!1837
2024-01-14 07:41:31 +00:00
James R
5ec2e156ab Battle: fix viewpoint switching to eliminated player 2024-01-13 22:56:17 -08:00
James R
db4e2e692b Add LobbySize option to level headers, controls whether the map appears in vote, based on player count
- Prevents a map from appearing on the vote screen if
  there are too many players
- LobbySize
  - Duel - 2 players max
  - Small - 5 players max
  - Medium - 10 players max
  - Large - 16 players max (default if not set)
- Future proofing
  - Doesn't count bot players in gametypes that don't
    support bots
2024-01-13 22:56:17 -08:00
AJ Martinez
a76507e17f Slow down top if player's out of control 2024-01-13 20:30:20 -07:00
Oni
f9c192b04d Merge branch 'no-gp-encore' into 'master'
Menus/Grand Prix: do not carry over Encore setting from Match Race

Closes #830

See merge request KartKrew/Kart!1816
2024-01-13 23:11:31 +00:00
Oni
1aaac393c1 Merge branch 'battle-fixes-friday' into 'master'
Battle Fixes Friday

Closes #901, #890, #865, #891, #883, #887, #885, and #888

See merge request KartKrew/Kart!1829
2024-01-13 02:21:19 +00:00
James R
b5d87a89f4 Battle: use Prison Break spawnpoints in Duels 2024-01-12 00:57:56 -08:00
Eidolon
02e56a304e Reset all gamekeydown arrays for all devices 2024-01-11 22:04:13 -06:00
James R
17a43430a7 Menus/Grand Prix: do not carry over Encore setting from Match Race 2024-01-11 03:05:27 -08:00
Oni
df5c866573 Merge branch 'map-access-flingerdinger' into 'master'
Stronger Course progression restriction

Closes #832, #859, and #839

See merge request KartKrew/Kart!1795
2024-01-09 08:11:12 +00:00
toaster
527492610a Fix inttime 0
Important testing apparatus while working on the previous commit
2024-01-07 22:02:09 +00:00
toaster
cb133da7e2 g_game.c: Outside of dedicated, don't visit Courses that aren't menu-selectable
Applies to the following
- G_RandMap
    - Voting
    - Title Demos
    - Challenge Board
    - `advancemap random`
- G_GetNextMap
    - `advancemap next`
        - This was previously completely broken for gametypes other than Race!?
2024-01-07 21:46:59 +00:00
toaster
4994ceef2c Gamedata: A Course only needs to be beaten to be stored as an unloaded mapheader record, not need FinishNeeded/a Time Attack record 2024-01-07 13:59:42 +00:00
James R
08dc00ea88 Battle: add battlespawn cheat, spawn every player at the same spawnpoint 2024-01-06 01:41:36 -08:00
James R
8430489673 Replace darktimer/darkness with g_darkness
Modifies netsave.

- Instead of setting a timer, set a start time and end
  time
- Interpolated darkness value itself doesn't need to be
  netsynced
2024-01-05 15:56:24 -08:00
Oni
0f468c4634 Merge branch 'auto-medal-times' into 'master'
Add automedal time configs and calculation

Closes #790

See merge request KartKrew/Kart!1777
2024-01-05 23:01:24 +00:00
toaster
1b2cad90e7 Make gamedata transfer for increased max emblem count
Increments gamedata version
2024-01-05 20:49:31 +00:00
toaster
6feb8370f6 AUTOMEDAL_MAX for range checks
Comments have also been updated to acknowledge the AUTOMEDAL_ constants
2024-01-05 12:03:18 +00:00
Eidolon
7521e42e62 Add automedal time configs and calculation 2024-01-03 12:24:33 -06:00
Eidolon
30cd354014 Assign p1 device during goner/title + unassign all
Avoids the controller reassignment message and ensures only one
controller participates in goner setup. Also unassign all devices when
returning to the title screen
2024-01-02 14:38:42 -06:00
James R.
a064ad17c5 Merge branch 'wheres-da-profile' into 'master'
G_DoLoadLevelEx: Don't fake profile set when transitioning to titlemap

See merge request KartKrew/Kart!1730
2023-12-30 09:01:00 +00:00
James R.
c50fdc254c Merge branch 'failed-timeattack-keys' into 'master'
G_DoCompleted: Gamedata-handling updates

See merge request KartKrew/Kart!1738
2023-12-30 08:58:22 +00:00
AJ Martinez
2a9351f36e Adjust bot difficulty adjustments 2023-12-29 18:09:13 -07:00
James R.
d3cb721381 Merge branch 'time-attack-rng' into 'master'
Use deterministic RNG seed for Time Attack

See merge request KartKrew/Kart!1741
2023-12-29 13:39:54 +00:00
Sally Coolatta
643538ab5a Use deterministic RNG seed for Time Attack
Based off of the hash from the map's lump name.
2023-12-28 22:10:40 -05:00
toaster
6b984eab55 G_DoCompleted: Gamedata-handling updates
- Don't give Chao Keys, roundsplayed for failing a round in time attack modes (Prison Break/SPB Attack/Special Mode)
- Always defer a save, since playtime is constantly incremented over the course of the round and may not be saved with crashes at certain points
2023-12-28 16:25:54 +00:00
toaster
57724baf9f Merge branch 'fix-downward-camera' into 'master'
Fix slope camera in Software mode

Closes #626

See merge request KartKrew/Kart!1714
2023-12-28 14:56:40 +00:00
toaster
2a1b2d427c G_DoLoadLevelEx: Don't fake profile set when transitioning to titlemap
Fixes Profile not being selectable on game boot, solving Charyb's recent issue
2023-12-27 17:07:03 +00:00
toaster
43880b4a4b G_LoadGamedata: Add a sanity check when imbibing pendingkeyroundoffset
Should solve Laz's infinite key increment hell
2023-12-26 15:52:22 +00:00
Oni
710e561981 Merge branch 'cmd-const' into 'master'
Enforce const in bot ticcmds

See merge request KartKrew/Kart!1705
2023-12-23 22:40:52 +00:00
James R
8f9c383188 Partial revert 89c503135a: fix aiming range for downward slope camera 2023-12-23 08:55:47 -08:00
toaster
5ce27ee799 GP bots: Difficulty nerf on GP level restart is now gamespeed-dependent, not a constant, per VC request
Easy, Normal: -3
Hard: -2
(Master continues to be -0)
2023-12-23 16:45:43 +00:00
Sally Coolatta
abde576c58 Enforce const in bot ticcmds
There were a few remaining cases of bot ticcmd generation editing player structures directly. Fix all of this and make as much of it pass const player pointers so this physically can't be allowed to happen ever again. Appears to improve bot sync in netgames & demos bot support, but I have not tested extensively.
2023-12-22 23:28:08 -05:00
Sally Coolatta
1df1e841d2 Continues reduce bot level by 2 2023-12-22 20:54:11 -05:00
toaster
a4c91f66ec Merge branch 'master' of https://git.do.srb2.org/KartKrew/Kart into tutorial-pass 2023-12-17 12:09:06 +00:00
James R
acbb4cf912 Revert change to gamemap default value
- Some code assumes mapheaderinfo[gamemap-1] is valid
  before gamemap is set

blame 5d0c062785
2023-12-10 22:02:32 -08:00
toaster
6c7a1c14e5 Merge branch 'master' of https://git.do.srb2.org/KartKrew/Kart into tutorial-pass 2023-12-08 13:08:43 +00:00
Oni
6378c9d544 Merge branch 'no-position-no-music-reset' into 'master'
Do not reset music in Sealed Stars and Tutorials

See merge request KartKrew/Kart!1676
2023-12-08 04:37:17 +00:00
James R
b6c7a42a97 Pause menu: changing gametype goes to vote screen
- If you change it during the vote screen, voting
  restarts.
2023-12-06 00:00:54 -08:00
James R
f7eddffdb4 Give GTR_NOPOSITION to GT_SPECIAL 2023-12-04 20:14:00 -08:00
toaster
e91115a8fa Goner Setup: Cook 2
- More dialogue
- Restrict access to your choices based on your progress through the Goner Setup.
- Save progress through the setup to gamedata
    - Resets to beginning when Challenges is cleared
- Passwords
    - Only permit the password entry in like the first two seconds
        - Preemptively disarms potentially annoying people in stream chats
    - Make wrongwarp also quit the game on exit instead of returning to the title screen
    - Add GDQ cheats
        - `savetheanimals`
        - `savetheframes`
        - Both do practically the same thing, with slightly modified dialogue.
            - Skips all of the normal dialogue.
            - Performing a social experiment on anyone who might stream this game at a charity event. :)
2023-12-03 22:34:06 +00:00