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

CGAME: fix for PW_REGEN powerup prediction (playing pain sounds). #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

CGAME: fix for PW_REGEN powerup prediction (playing pain sounds). #13

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Nov 12, 2020

BUG: sometimes the player's pain sound is played when the player's health increases (e.g.: holding the Regeneration powerup).
In this case every second the powerup increases the health of a player a pain sound is played additionally to the powerup regeneration sound. A while ago I talked about this issue here: https://github.com/ec-/Quake3e/issues/18
Anyways, this issue is really hard to reproduce because it only happens very rare.

BUGFIX: I have been playing around with the code for over a year and have never figured out what is causing the problem, nor have I found a solution.
Well, now I found out that changing how cg.timeResidual is set seems to fix the issue.
To be honest I don't understand why this will fix the issue. I simply borrowed the code from 'ClientTimerActions' (in g_active.c).

NOTE: I played many matches using this 'bugfix' and it seem to work well. If you want apply the PR I highly recommend to check the changes twice, because I don't really understand the code, and potential consequences.

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.

0 participants