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

show timer in hud when started in start zone #1174

Merged
merged 3 commits into from
Sep 29, 2022
Merged

Conversation

lilac1337
Copy link
Contributor

aaaaaaaaaaaaaaaa

@rtldg
Copy link
Collaborator

rtldg commented Sep 25, 2022

I'm probably going to remove the cvar checking and make it only check if the time < 0.05.
shavit-misc does a bit more than just checking the cvar right now for example

if(!bNoclip && Shavit_GetStyleSettingInt(gI_Style[client], "prespeed") == 0 && bInStart)
{
int prespeed_type = Shavit_GetStyleSettingInt(gI_Style[client], "prespeed_type");
if (prespeed_type == -1)
{
prespeed_type = gCV_PreSpeed.IntValue;
}

@rtldg
Copy link
Collaborator

rtldg commented Sep 29, 2022

Removed the convar stuff due to reasons in the above comment and also changed the time it compares against from 0.05s to 0.3s. Something to do with teleporting/restarting causes it to count up to 0.2s sometimes before the timer restarts further

@rtldg rtldg merged commit b868208 into shavitush:master Sep 29, 2022
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.

2 participants