Commit graph

31 commits

Author SHA1 Message Date
Ashnal
f5aa2a701b Bail button
Transforms BT_RESPAWN into BT_BAIL
User bindings should migrate along with this
Respawn is now EBRAKE+BAIL
Respawn blocks LOOKBACK
Time Attack quick respawn is now VOTE
2025-06-23 18:07:59 -04:00
AJ Martinez
90c28dc2d9 Spindash button, Strict Fastfall profile option 2025-05-05 20:36:00 -04:00
Eidolon
bd7646346b Use new containers and json 2025-03-16 18:45:11 -05:00
Eidolon
cb7f437e60 Merge public master 2025-02-13 15:48:11 -06:00
Eidolon
a4d304a1f5 Update copyright years to 2025 2025-02-13 15:32:26 -06:00
Eidolon
22b20b5877 Add netgame voice chat
Implemented using libopus for the Opus codec, same as is used in Discord.
This adds the following cvars:

- `voice_chat` On/Off, triggers self-deafen state on server via weaponprefs
- `voice_mode` Activity/PTT
- `voice_selfmute` On/Off, triggers self-mute state on server via weaponprefs
- `voice_inputamp` -30 to 30, scales input by value in decibels
- `voice_activationthreshold` -30 to 0, if any peak in a frame is higher, activates voice
- `voice_loopback` On/Off, plays back local transcoded voice
- `voice_proximity` On/Off, enables proximity effects for server
- `voice_distanceattenuation_distance` distance in fracunits to scale voice volume over
- `voice_distanceattenuation_factor` distance in logarithmic factor to scale voice volume by distance to. e.g. 0.5 for "half as loud" at or above max distance
- `voice_stereopanning_factor` at 1.0, player voices are panned to left or right speaker, scaling to no effect at 0.0
- `voice_concurrentattenuation_factor` the logarithmic factor to attenuate player voices with concurrent speakers
- `voice_concurrentattenuation_min` the minimum concurrent speakers before global concurrent speaker attenuation
- `voice_concurrentattenuation_max` the maximum concurrent speakers for full global concurrent speaker attenuation
- `voice_servermute` whether voice chat is enabled on this server. visible from MS via bitflag
- `voicevolume` local volume of all voice playback

A Voice Options menu is added with a subset of these options, and Server Options has server mute.
2024-12-13 17:12:14 -06:00
Antonio Martinez
c2f56050c3 Descriptive spectator controls 2024-09-27 15:24:54 -07:00
JugadorXEI
41ef8d227f Fix reversed inputs in input display in encore replay 2024-08-09 04:52:02 +00:00
James R
e8c84cb013 Splitscreen GP: timer is considered 000 for GAME OVERed players 2024-04-07 02:20:59 -07:00
Sally Coolatta
f224cf3dc7 SRB2 -> DRRR copyright in hud folder 2024-04-05 10:02:00 -04:00
James R
254597bece Copyright fixup: James Robert Roman 2024-03-28 19:01:38 -07:00
AJ Martinez
dc31ae20c6 Input display: fix flipped vertical inputs when reading ticcmds 2024-03-18 19:56:02 -07:00
James R
ea5c589f18 HUD: adjust position of director controls
- Do not collide with player name
- Do not avoid colliding with lap number
  - Lap number is still very readable even when it's
    heavily obscured
2024-03-14 06:28:01 -07:00
AJ Martinez
2ef43f127e Fix invisible / unresponsive profile control display 2024-03-10 22:12:15 -07:00
James R
79177f6aff Power-ups: fix HUD not sliding away on tally 2024-03-08 17:53:07 -08:00
James R
bf41f3ec29 Input Display: slide with dialogue box 2024-03-02 00:22:44 -08:00
James R
bf65fb0cbf Input Display: fade in quickly at level start 2024-03-02 00:20:30 -08:00
AJ Martinez
0052d15fc8 Improve analog handling and input display 2024-02-28 20:08:25 -07:00
James R
bc479321d0 Replace in-map input display with new graphics 2024-02-24 22:01:07 -08:00
James R
8f262aa390 Move input display code to K_DrawInputDisplay 2024-02-24 21:29:18 -08:00
James R
e06e0dcb3a Battle: emerald win HUD polish
- Bigger
- Aligned to the Tally boxes
- Each emerald slides in one-by-one over the duration of
  the Tally
- Flash after the final emerald slides into place
2024-01-22 16:42:29 -08:00
James R
f232647868 HUD: Battle rankings and GOAL (4P version) + 4P timer tweak
- 4P version only displays top 2 players
- Compared to 1P version, local player is not required to
  be on the list
- Skull is displayed if any of the party members have
  reached the point limit
- 4P timers reduced to just digits, in order to make space
  for rankings
2024-01-12 06:53:42 -08:00
James R
a759626335 Battle: flash emeralds on screen when someone wins by collecting all 7
- Modifies netsave
2024-01-05 15:56:23 -08:00
Eidolon
2433d37d44 Switch from CPM to vcpkg 2023-12-15 02:49:15 +00:00
James R
1f3a9a4758 Splitscreen Director HUD; replace freecam HUD 2023-10-09 18:53:55 -07:00
James R.
36bbf08ab0 HUD: fix alignment of 2P level timer and power-ups 2023-10-03 21:28:34 -07:00
James R.
7b3010c93d Fix many instances of splitscreen view number if there are duplicate displayplayers
- Avoid iterating displayplayers to find view number and
  prefer R_GetViewNumber.
- Iterate over all matching displayplayers if necessary,
  instead of stopping at the first match.
2023-10-03 21:28:33 -07:00
James R
34b65a7c59 Add K_TranslateTimer, get the correct timer value for time limit; use this function for splitscreen timer 2023-06-29 21:44:31 -07:00
James R
b91489bec2 Power-up HUD: use player color as colormap 2023-06-29 21:10:25 -07:00
James R
81dab762ff Add power-up HUD
- Power-up icons are sorted by time remaining, most to
  least, left to right
2023-06-29 19:37:22 -07:00
James R
299a8b707c Add 2P and 3P/4P timer HUD variations 2023-06-29 19:27:36 -07:00