Skip to content

Conversation

wgetJane
Copy link
Contributor

partially fixes this issue: ValveSoftware/Source-1-Games#6017

(in the vids below, i press jump immediately after charging 3 times, then jump immediately after releasing 3 times, then jump immediately after holstering 3 times)

unfixed, net_fakelag 100:

2025-02-25.10-29-37.mp4

fixed, net_fakelag 100:

2025-02-25.10-31-36.mp4

this pr adds CTFWeaponBase::OwnerCanJump (similar to the existing CTFWeaponBase::OwnerCanTaunt)

@misyltoad
Copy link
Contributor

Hello, have you seen and read the contributing terms here?

https://github.com/ValveSoftware/source-sdk-2013/blob/master/CONTRIBUTING

These are visible when you make a PR now, so I am asking for the older PRs. Thanks.

{
EnableJump();
}
// float flCurrentChargeBeginTime = GetInternalChargeBeginTime();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's just remove this function override, now.

@wgetJane
Copy link
Contributor Author

Hello, have you seen and read the contributing terms here?

https://github.com/ValveSoftware/source-sdk-2013/blob/master/CONTRIBUTING

These are visible when you make a PR now, so I am asking for the older PRs. Thanks.

yeah looks good and i agree with these terms

Bitl added a commit to BitlDevelopmentStudios/source-sdk-2013-bds-base that referenced this pull request Feb 26, 2025
@misyltoad misyltoad merged commit aea94b3 into ValveSoftware:master Feb 27, 2025
mastercoms pushed a commit to mastercomfig/tc2 that referenced this pull request Feb 27, 2025
…lveSoftware#797)

* fix prediction for jumping when huntsman is charged/released

* remove SetInternalChargeBeginTime override from CTFCompoundBow

ValveSoftware#797 (comment)
@mastercoms
Copy link
Contributor

mastercoms commented Feb 27, 2025

This also fixes a bug where picking up a charged Huntsman off the ground makes you unable to jump.

EDIT; wrong, see below comment

@wgetJane
Copy link
Contributor Author

This also fixes a bug where picking up a charged Huntsman off the ground makes you unable to jump.

oh nice so ValveSoftware/Source-1-Games#4013 is fixed as well

@mastercoms
Copy link
Contributor

Wait sorry, no, still needs a weapon reset call. But it does help a lot since the disable / enable jump isn't stateful.

@wgetJane
Copy link
Contributor Author

wgetJane commented Feb 28, 2025

tested before and after this pr, not sure if this is the correct way to reproduce that bug:

  1. spawn as sniper with huntsman
  2. charge huntsman
  3. killbind while huntsman is charged
  4. respawn
  5. pick up dropped huntsman

before this pr: you can't jump until you die, or drop the bow, or change your primary, or charge the bow again
after this pr: you can jump as soon as it is picked up

@mastercoms
Copy link
Contributor

mastercoms commented Feb 28, 2025

Ah interesting, maybe it is fixed, but to me charge time seems like it'd persist and not sure why it'd be updating like that. Maybe because it's not stateful, there's something in idle or something that updates charge time and we don't need a full reset to reset state? Any case, it definitely might even fix some inverse cases too, where you get stuck in jump disable if you pickup weapons while still charged?

prplnorangesoda pushed a commit to p4sstime/p4ss that referenced this pull request Feb 28, 2025
…lveSoftware#797)

* fix prediction for jumping when huntsman is charged/released

* remove SetInternalChargeBeginTime override from CTFCompoundBow

ValveSoftware#797 (comment)
toizy added a commit to toizy/mk_hl2dm_server that referenced this pull request Mar 13, 2025
* Update CONTRIBUTING

* Add CONTRIBUTING text to PR template

* Fix radial fog not being enabled in 3D sky on official maps

* Add convar to control max MvM robots

* Fix PLAYER_FLAG_BITS truncating m_fFlags sent to clients

* Fix middle mouse kicking you in Passtime

* tf2: Fix prediction for jumping when huntsman is charged/released (ValveSoftware#797)

* fix prediction for jumping when huntsman is charged/released

* remove SetInternalChargeBeginTime override from CTFCompoundBow

ValveSoftware#797 (comment)

* Remove temporary player jingle files if tf_delete_temp_files is enabled

* tf2: Fix crash with game_round_win in koth

Fixes ValveSoftware/Source-1-Games#4254

* Move .357 snap after firing to client-side

* [TF2] Add prediction for thermal thruster + self-stun (ValveSoftware#908)

* Remove MFC dependency in the launcher exe (afxres.h > winres.h)

* Sync the public SDK with latest from TF2

Includes a manually merged MRs from wgetJane wrt. scattergun prediction and minktusk with readme changes.

---------

Co-authored-by: Autumn Ashton <[email protected]>
Co-authored-by: ficool2 <[email protected]>
Co-authored-by: copperpixel <[email protected]>
Co-authored-by: wget <[email protected]>
Co-authored-by: AndrewBetson <[email protected]>
Co-authored-by: doclic <[email protected]>
Co-authored-by: speedvoltage <[email protected]>
Co-authored-by: Josh Dowell <[email protected]>
toizy added a commit to toizy/mk_hl2dm_server that referenced this pull request Mar 13, 2025
* Update CONTRIBUTING

* Add CONTRIBUTING text to PR template

* Fix radial fog not being enabled in 3D sky on official maps

* Add convar to control max MvM robots

* Fix PLAYER_FLAG_BITS truncating m_fFlags sent to clients

* Fix middle mouse kicking you in Passtime

* tf2: Fix prediction for jumping when huntsman is charged/released (ValveSoftware#797)

* fix prediction for jumping when huntsman is charged/released

* remove SetInternalChargeBeginTime override from CTFCompoundBow

ValveSoftware#797 (comment)

* Remove temporary player jingle files if tf_delete_temp_files is enabled

* tf2: Fix crash with game_round_win in koth

Fixes ValveSoftware/Source-1-Games#4254

* Move .357 snap after firing to client-side

* [TF2] Add prediction for thermal thruster + self-stun (ValveSoftware#908)

* Remove MFC dependency in the launcher exe (afxres.h > winres.h)

* Sync the public SDK with latest from TF2

Includes a manually merged MRs from wgetJane wrt. scattergun prediction and minktusk with readme changes.

---------

Co-Authored-By: Autumn Ashton <[email protected]>
Co-Authored-By: ficool2 <[email protected]>
Co-Authored-By: copperpixel <[email protected]>
Co-Authored-By: wget <[email protected]>
Co-Authored-By: AndrewBetson <[email protected]>
Co-Authored-By: doclic <[email protected]>
Co-Authored-By: speedvoltage <[email protected]>
Co-Authored-By: Josh Dowell <[email protected]>
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