Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated default binds #10

Closed
wants to merge 14 commits into from

Conversation

Ashetf2
Copy link

@Ashetf2 Ashetf2 commented Feb 23, 2025

Implementation

  • F3 no longer binds to "show_matchmaking" which no longer exists
  • F3 is now binded to "toggleconsole". "`" as the default bind is a key that doesn't work with other keyboards input methods (ES for example), and it can't be used in the main menu
  • remove: "+moveup""+movedown""+lookup""+lookdown""centerview""+strafe""+klook" since they are pointless. "+mlook" is already commented
  • remove bind "e" "dropitem" because it is overriden and doesn't work anyways
  • add bind "F4" "player_ready_toggle" to show it properly in the options menu
  • remove bind "PAUSE" "pause" because it is pointless. This could be restored however due to usage in comp matches? but ehh
  • remove bind "F1" "+showroundinfo" because it doesn't exist

Screenshots

Checklist

  • No other PRs implement this idea.
  • This PR does not introduce any regressions.
  • I certify that this PR is my own entirely original work, or I have permission from and have attributed the relevant authors.
  • I have agreed to and signed this project's Contributor License Agreement.
  • This PR targets the tc2-mod branch.
  • This change has been filed as an issue.
  • No other PRs address this.
  • This PR is as minimal as possible.
  • This PR does not introduce any regressions.
  • This PR has been built and locally tested on at least one platform.
  • This PR has been tested on all platforms, on both a dedicated server and on a listen server.

Testing Checklist

Client Server Version
Windows
Linux

mastercoms and others added 14 commits February 22, 2025 21:31
IsCompetitiveMode was updated to include Casual, but
Demo Support still makes the same old assumptions.
So, fix the strings to properly reflect how ds_enable works,
and add a popular community request to only record
true competitive matches (either competitive matchmaking
or community tournaments). The fact that there isn't a setting
at the moment which excludes Casual (which uses mp_tournament)
is a cited reason for people still using P-REC.

Some files also need to be updated for this.

A new localization string #TF_DemoSupport_Matchmaking should be added
"Auto-record matchmaking matches"

user_default.scr needs to be updated for the ds_enable list
option "1" should be "#TF_DemoSupport_Matchmaking"
and a new option "4" should be "#TF_DemoSupport_Comp"

also add ds_rounds_only to filter out the filler parts of rounds to record only active round play
sometimes, attackers are not defined.
this NULL check has precedent in other filters,
so we do it here too to make sure we don't crash
in the case of incorrect take damage info. can happen
with some custom stuff.

also, fix the known case of a null attacker for
the passtime ball.
SoundDuration does not work on dedicated servers
For one, SV_GetSoundDuration is not implemented for
them. Two, sounds are not shipped on dedicated servers.

So, it's pointless and misleading to query the sound
duration on servers. Save a little bit by letting the sound
emit function skip trying to query for these sounds.

I replaced sound durations as needed with a sensible
sound duration for different cooldowns and such, so
sounds do not spam anymore, thinks run properly, etc.
may need an adjustment for sticky traps (5s) / air dets only -- will playtest
…tercoms in detail about what size it should be and discussed various resolutions it should be based on and mastercoms chose the resolution that would make the overheal the largest, anyways this commit just divides the number by 2
* F3 no longer binds to "show_matchmaking" which no longer exists
* F3 is now binded to "toggleconsole". "`" as the default bind is a key that doesn't work with other keyboards (ES for example), and it can't be used in the main menu
* remove: "+moveup""+movedown""+lookup""+lookdown""centerview""+strafe""+klook" since they are pointless. "+mlook" is already commented
* remove bind "e" "dropitem" because it is overriden and doesn't work anyways
* add bind "F4" "player_ready_toggle" to show it properly in the options menu
* remove bind "PAUSE"	"pause" because it is pointless. This could be restored however due to usage in comp matches? but ehh
* remove bind "F1"	"+showroundinfo" because it doesn't exist
reduced the health size of the bonus overheal
mastercoms added a commit that referenced this pull request Feb 24, 2025
@mastercoms mastercoms closed this Feb 24, 2025
@mastercoms
Copy link
Member

Integrated some of these changes in the above referenced commit. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants