Commit graph

22490 commits

Author SHA1 Message Date
Eidolon
c64bdca667 Reset rumble on net pause and pause menu 2023-04-02 21:56:41 +01:00
Eidolon
a71c7dfad6 Reset device rumble on exitlevel, exitgame, map 2023-04-02 21:56:40 +01:00
Eidolon
839f2a6d15 Add G_ResetAllDeviceRumbles 2023-04-02 21:56:40 +01:00
Eidolon
f7ca9043a1 Add offroad gamepad rumble 2023-04-02 21:56:39 +01:00
Eidolon
17daf1aeba Add G_ functions to rumble a player's device 2023-04-02 21:56:39 +01:00
Eidolon
769ce2ef65 Add I_GamepadRumble, I_GamepadRumbleTriggers 2023-04-02 21:56:39 +01:00
toaster
4d8e6f235a Flip HOLD! in Encore 2023-04-02 19:15:57 +01:00
toaster
92d3392c97 R_GetLocalRandomSkin
Randomisation of unlocked characters only for
    - Intro ticker taunt
    - Waiting Players NO WAY? NO WAY!
2023-04-02 19:11:03 +01:00
toaster
37e7b82b8b Merge branch 'profile-testing' into 'master'
Add -profile through -profile4 flags for splitscreen testing

See merge request KartKrew/Kart!1130
2023-04-02 17:00:21 +00:00
toaster
016697cfe4 Merge branch 'fix-parties' into 'master'
Fix parties

Closes #452 and #316

See merge request KartKrew/Kart!1099
2023-04-02 16:59:36 +00:00
toaster
b2969af84f P_IsLocalPlayer: Fix returning whether consoleplayer was in consoleplayer's party (ie, always true) instead of actual requested player.
Fixes replacement music applying when bots use powerup items.
2023-04-02 17:43:02 +01:00
James R
0774cd2c80 Remove player from old party when directly joining another 2023-04-02 17:26:34 +01:00
James R
dfe49a5bf3 Fix srb2::StaticVec::pop_back
lmao
2023-04-02 17:26:34 +01:00
James R
062d238f2f G_BuildTiccmd: update correct localangle while in parties 2023-04-02 17:26:34 +01:00
James R
62624efcef Parties: fix interaction with viewpoint management / spectator mode
- Fixes G_ResetView and G_ResetViews not accounting for
  parties -- fixes viewpoint switching while in parties.
- Fixes spectator controls sometimes activating while in
  parties.
2023-04-02 17:26:34 +01:00
James R
a0985eb043 Parties: fix invite command letting you invite local splitscreen players 2023-04-02 17:26:33 +01:00
James R
9b5b07b03c Completely rewrite party management code
Replaces g_splitscreen.c with g_party.cpp. Simplifies
party management functions.

Moves externs out of already bloated doomstat.h and
g_game.h into g_party.h.

Cuts down on globals spam.
2023-04-02 17:26:33 +01:00
James R
a3a3f4cd18 Add missing return statements to invite and cancelinvite commands 2023-04-02 17:26:07 +01:00
James R
e3308b8e73 CL_ClearPlayer: reset playerconsole too 2023-04-02 17:26:07 +01:00
James R
4d6b15eca9 srb2::StaticVec: define value_type
Lets std::back_inserter work on srb2::StaticVec
2023-04-02 17:26:07 +01:00
James R
652fb5452e MF_NOCLIPHEIGHT: remove restrictions on first-person camera
Fixes spectator noclip camera being clamped to
floor/ceiling heights.
2023-04-02 05:22:17 -07:00
James R
b1c3d1b2e7 noclip command: toggle MF_NOCLIPHEIGHT in spectator 2023-04-02 05:22:17 -07:00
James R
03ec537178 Add debugrender_portal command
- Fills portals with red
- Draws portals over planes and masked
2023-04-02 01:43:32 -07:00
James R
56694b2740 Merge branch 'udmf-riser' into 'master'
Add foflayer field to UDMF things, spawn offset from a specific FOF in the thing's sector

Closes #417

See merge request KartKrew/Kart!1120
2023-04-02 07:27:51 +00:00
James R
153a8b6da6 Merge branch 'the-funny-i-error' into 'master'
The funny I_Error

See merge request KartKrew/Kart!1121
2023-04-02 07:27:38 +00:00
James R
1b4b37af86 Merge branch 'always-build-libgme' into 'master'
cmake: always build libgme, even if SRB2_CONFIG_SYSTEM_LIBRARIES

See merge request KartKrew/Kart!1124
2023-04-02 07:27:19 +00:00
James R
d108f4e14d Merge branch 'fix-apple-clang-14-compile' into 'master'
Fix Apple Clang 14 compile

See merge request KartKrew/Kart!1126
2023-04-02 07:27:09 +00:00
AJ Martinez
0d34c4f3d1 Also check -profile in CL_ConnectToServer 2023-04-01 22:36:35 -07:00
Eidolon
a9fcff852d rhi: Rewrite shader loading
Multiple shader sources, simpler macro definition, and slightly more
data driven.
2023-04-01 17:32:34 -05:00
Eidolon
171a285caa rhi: Add get_texture_details, get_renderbuffer_size 2023-04-01 15:19:08 -05:00
Sal
3a109dbe78 Merge branch 'uncap-numlaps' into 'master'
Remove restrictions on numlaps, merge with gptest

See merge request KartKrew/Kart!1116
2023-04-01 20:12:47 +00:00
Eidolon
c193930b4e rhi: Add more sampler-related uniform names 2023-04-01 15:07:31 -05:00
Sal
e97068dc15 Merge branch 'seed-waypoint-search' into 'master'
Improve player waypoint search speed

See merge request KartKrew/Kart!1125
2023-04-01 20:06:04 +00:00
Sal
c4ee8301e8 Merge branch 'fix-position-music' into 'master'
Fix empty position music header field pointing to garbage string

See merge request KartKrew/Kart!1129
2023-04-01 20:04:24 +00:00
James R
faccea6207 Hardcode assist, part J (jartha)
- Add read-only `actionname` field to Lua states.
    - Resolves to function name definition of global Lua functions.
    - Resolves to all-uppercase name for C actions.
    - Resolves to "NULL" string if nil.
2023-04-01 05:44:59 -07:00
AJ Martinez
08e1e8de6e Add -profile through -profile4 flags for splitscreen testing 2023-04-01 03:02:59 -07:00
SteelT
5020e564e2 Fix empty position music header field pointing to garbage string 2023-03-31 15:41:58 -04:00
toaster
3bd0fd8330 G_ExitLevel: Fix K_PlayerFinishGrandPrix not being called in Sealed Star
Fixes Emerald collection not being recorded
2023-03-31 18:38:29 +01:00
toaster
0c4ea2f51a GP Cup Select drawer: Use the Super Emerald graphic for cups with emerald numbers higher than 7 2023-03-31 18:35:36 +01:00
toaster
49f7b75454 UCRP_ISCHARACTER:: Show as "???" if you haven't unlocked the character 2023-03-31 16:09:19 +01:00
toaster
9f1ab11bb1 UCRP_TRIGGER: Since we're not doing the custom condition string, just say the player has to "do something special on [levelname]". 2023-03-31 16:03:52 +01:00
toaster
0708c282fc Challenges screen: Always digest pendingkeyrounds when running out of things to look at
Without this commit, if you didn't unlock a Chao Key, it would always handle unlocks, then when you returned to the menu a second time digest any pending key rounds. (Chao Key earning was always correct.)
2023-03-31 16:01:18 +01:00
toaster
0d2f598c3e Hardcode assist, part 1
- Add read-only `string` field to several info table metatables already available in Lua.
    - mobjinfo[i].name
    - states[i].name
    - sfxinfo[i].string
2023-03-31 14:36:16 +01:00
James R
530c2c5348 acs/CMakeLists.txt: remove ACSVM_NOFLAGS, fix Apple Clang 14 compile
This should be more correct everywhere but it specifically
broke Apple Clang 14 compiling.
2023-03-31 05:27:59 -07:00
Oni
78b4b6f5ec Merge branch 'increase-minz' into 'master'
Increase MINZ from 4 fracunits to 16

See merge request KartKrew/Kart!1122
2023-03-31 09:42:17 +00:00
Oni
fd5186bfea Merge branch 'fix-gme-length' into 'master'
Fix GME not reporting song length most of the time

See merge request KartKrew/Kart!1123
2023-03-31 09:40:08 +00:00
James R
bd7613cd09 K_GetPlayerNextWaypoint: use player's current waypoint as a hint
Improves best waypoint search time on huge maps with many
waypoints, such as City Escape.
2023-03-31 01:42:38 -07:00
James R
71626dbc76 K_GetBestWaypointForMobj: add a hint argument
The hint argument is a known nearby waypoint that can be
used to optimize the waypoint search.
2023-03-31 01:41:31 -07:00
James R
345e4475a3 Convert k_waypoint.c to k_waypoint.cpp 2023-03-31 01:15:09 -07:00
James R
18287e2ed4 cmake: always build libgme, even if SRB2_CONFIG_SYSTEM_LIBRARIES 2023-03-30 23:44:53 -07:00