* fix normal CP menu spams on changing the style from non-kz to kz styles
* fix normal CP menu spams on changing from non-kz to kz styles, again
* merge OpenKZCPMenu() into OpenNormalCPMenu() and rename it to OpenCPMenu()
* fix handle error on server restart in KZCP styles
* 1. Added "kzcheckpoints_ontele" and "kzcheckpoints_ontele" style settings(merged in `shavit-kz.sp`).
2. Added "force"(ignore style access) parameter for "Shavit_LoadSnapshot()" and "Shavit_LoadCheckpointCache()".
3. Made "segments" as a style setting instead of special strings.
(use "segments" as specialstrings is still feasible)
note: maybe better to change TAS's default ranking multiplier to "0.0" since segmented style is also "0.0".
* 😵💫
* updated shavit-checkpoints.sp
* updated style-settings.sp
* Redo shavit_misc_resettargetname
Also changes the way event abuses are fixed
* Obsolete shavit_misc_resettargetname/classname cvars
Also few minor optimisations to the code
* Revert the deletion of shavit_misc_resettargetname/classname
* Move targetname/classname resets to OnStartPre() forward
* Rename shavit_misc_resettargetname cvar
* Move event reset code to shavit-zones
Also replaces PhysicsCheckForEntityUntouch() function call with PhysicsRemoveTouchedList()
* don't hook teleport on bots & some random code-style changes
* remove added whitespace
Co-authored-by: rtldg <55846624+rtldg@users.noreply.github.com>
* Initial czones implementation
* ok men
* read cookie
* :pepega:
* Update shavit-zones.sp
* UltraThin lets goooo
* Translation, ZoneDisplay_None
* format a little bit
* more readable
* Fix typo and i did this on phone
* getting translation properly, thank you haze <3
* make GetZoneName check for >=ZONETYPES_SIZE
* i dont know why this was in common.txt, maybe parallel universe is real
* some random things
* combine custom-zone cookies
Co-authored-by: rtldg <55846624+rtldg@users.noreply.github.com>
to prevent fails for people that are using a prefix
[shavit-zones.smx] Timer (zones GetStageZone) SQL query failed. Reason: Table 'bhoptimer.mapzones' doesn't exist
Query callback. Number of returned results: 399, Maps added to g_aMapList:284, g_aAllMapsList.Length:287, g_mMapList:286
Move remaining shavit-rankings dependent calls (#1043)
If the shavit-rankings plugin isn't loaded, the calls to its natives will cause an exception and the client's messages will not be formatted correctly.
Add native for getting the number of stages
Implemented native for getting number of stages and allowed practice mode to view stage times.
Added WR stage time comparisons for when a user enters a stage zone.
It's important that the stage zone number starts at two. It may be preferred to remove the user input of stage numbers and just auto increment as stages are added. Stage 1 should be the start zone and just have any additional stages increment from there. I'll readdress this if it's necessary.
Add translations for WR stage time comparison messages
Accidentally undid a change from a previous commit.
I didn't have a merge conflict, so I'm unsure why it got replaced.
Combine stage time translations into one
Implemented suggestions to translations and changed the stagetimes table
The stagetimes table no longer uses auth as a primary key, so it will now replace the old WR stage time.
However, the auth is still stored, so it can be used to reference the player and potentially a players PB.
Update callback name for replacing stage time for logging.