Skip to content

show timer in hud when started in start zone #1174

Merged
rtldg merged 3 commits intoshavitush:masterfrom
lilac1337:patch-2
Sep 29, 2022
Merged

show timer in hud when started in start zone #1174
rtldg merged 3 commits intoshavitush:masterfrom
lilac1337:patch-2

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