Commit Graph
14 Commits
Author SHA1 Message Date
GreaseMonkey adcf56ed34 Handle cases for Counter-Op where certain local players can be missing; Don't support 2.x controls for Counter-Op
I'm not sure if this happens in practice in the port itself, but with a bit of temporary hackery one can force certain players to be absent.
This handles that case cleanly.
2024-02-11 13:25:35 +13:00
GreaseMonkey 63a9a26908 set_chr_team(CHR_ANTI, *) now sets all counter-op player teams
The easiest-to-test effect of this is that counter-op players will no longer attempt to auto-aim against one another (p2 vs any other).

Maps where this was necessary: Villa, Chicago, Rescue, Air Base, Air Force One
(Other maps stick to the default of `TEAM_ENEMY`, and so this doesn't really affect it.)
2024-02-10 14:17:22 +13:00
GreaseMonkey f4530633d6 Replace "Counter-Operative" player selection with "Main Player" + extend to 4 entries 2024-02-10 11:20:01 +13:00
GreaseMonkey 94e244a236 Report correct ending success/failure when any counter-op player aborts 2024-02-09 16:15:09 +13:00
GreaseMonkey 92d3a9f564 Add macros for counter-op player determination; Handle some missing checks 2024-02-09 13:44:04 +13:00
GreaseMonkey 44a67e60e8 net: Use LOCALPLAYERCOUNT() for UI size determination 2024-02-09 09:10:33 +13:00
GreaseMonkey 634eecb35d Use vertical-split versions of menus in 3+-player main missions
These work fine in the 2x2 split arrangement.
2024-02-09 08:40:02 +13:00
GreaseMonkey a0db91a0c9 Preliminary 4-player counter-op mode
Here's some things that will be needed off the top of my head:

- Handling the half-screen-width case for the pause menus
- Changing the player select menu to select the not-counter-op player instead, then extending that to 4 players
- Thorough testing of each level for any weird counter-op-specific features
2024-02-09 08:40:02 +13:00
GreaseMonkey 11febd7ace port-net: query.py: Print reply source addresses 2024-02-06 12:16:05 +13:00
GreaseMonkey dface4696c port-net: query.py: List all server query replies
This is for when one provides a broadcast address to query.
2024-02-06 12:14:20 +13:00
GreaseMonkey 0669ce5668 port-net: query.py: Allow querying broadcast
This waits for the first reply and then exits.
2024-02-06 12:05:17 +13:00
GreaseMonkey 43a91b2b4b Fix "mpindex=4" UB cases for various view gadgets 2023-08-29 13:15:42 +12:00
GreaseMonkey 889ae950fe Fix a few cases of UB incl. OoB
Behaviour should be mostly the same but there are some OoB accesses in the menu code where I've had to assume things.

Tests for each OoB case:

- Accessing of layer -1: Select a game file in the "Choose Your Reality" screen.
- Accessing of menu for the 5th player: Die in a mission.
2023-08-29 10:23:14 +12:00
GreaseMonkey 5b0874daef Fix choppy audio at sub-60fps framerates 2023-08-27 12:12:21 +12:00