Commit Graph

28 Commits

Author SHA1 Message Date
shavit
2ab6c57e1f Refactored whole plugin to use enum structs
SourceMod 1.10 is now a requirement.
2018-12-24 00:31:50 +02:00
shavit
ce387bbe07 added characteristic to rankings function queries 2018-10-06 16:54:34 +03:00
shavit
d1d594503e Dropped dynamic arrays for strings, unless necessary. 2018-09-23 04:16:23 +03:00
shavit
81dbdedfba Added !deletemap (#668) 2018-09-15 17:26:11 +03:00
shavit
f01ff69841 Merge branch 'master' into very_good_yes 2018-04-30 00:34:33 +03:00
shavit
b5f0f7b4c0 Fixed an issue where players get a wrong rank when actually unranked.
Thanks Nairda for finding this!
2018-04-30 00:34:14 +03:00
strafe
e90b847f08 Typos 2018-04-28 17:19:13 +01:00
shavit
a76c463cbc Fixed wrong text. 2018-03-18 11:20:33 +02:00
shavit
132d3d80e2 Hacky fix for autorespawn.
L 01/24/2018 - 08:49:06: Info (map "bhop_forest") (file "errors_20180124.log")
L 01/24/2018 - 08:49:06: [SM] Exception reported: Invalid data pack handle 11503 (error 4)
L 01/24/2018 - 08:49:06: [SM] Blaming: shavit-misc.smx
L 01/24/2018 - 08:49:06: [SM] Call stack trace:
L 01/24/2018 - 08:49:06: [SM]   [0] DataPack.Reset
L 01/24/2018 - 08:49:06: [SM]   [1] Line 2059, E:\git\bhoptimer\addons\sourcemod\scripting\shavit-misc.sp::Respawn
2018-01-25 01:18:13 +02:00
shavit
3a0f133da2 Tweaked points calculation format with a stored function. (#586)
Big thanks to Deathknife~

* There's no bonus points for a bigger amount of records, due to necessary optimizations.
* Added `GetRecordPoints`.
* `sm_recalcall` should run *very* quickly now.
2018-01-23 05:29:25 +02:00
shavit
1fcb7993fe Added oldtime parameter to Shavit_OnFinish 2018-01-16 10:15:41 +02:00
shavit
56fee65f34 Re-do points calculation.
This new method fixes LOTS of issues with the old one. Now it also is more "dynamic" and is simpler to use.
I have to note that it also takes approximately 14% of the time to execute relatively to the old method.
2017-12-18 23:00:02 +02:00
shavit
697fa9c5e7 Adjusted query priority (#542) 2017-12-09 23:37:49 +02:00
shavit
30acc1ec65 Fixed locking issue in replay 2017-11-28 18:53:46 +02:00
shavit
e36d917f6d Update table creation queries. 2017-11-23 22:20:33 +02:00
shavit
d20839218c New replay bot format (#434) and some of #537 2017-11-21 11:28:57 +02:00
shavit
9c74b62a28 Fixed shavit-chat SQL error with remote databases. (#505) 2017-11-15 04:47:50 +02:00
shavit
dd5090d286 Just to be fail-safe. 2017-11-12 19:44:00 +02:00
shavit
1c0c410020 Fix unranked message in a populated database (#519) 2017-11-12 19:39:28 +02:00
shavit
0e19f08d6e Attempt to fix #516
Reset ranked styles upon style config loading.
2017-11-08 01:45:57 +02:00
shavit
f2146b6f9c Added Shavit_GetMapTier and Shavit_GetMapTiers (#504) 2017-11-04 18:58:15 +02:00
shavit
24c38788da Fix tier not updating in cache. 2017-11-04 18:39:01 +02:00
shavit
7e1ffd4846 Added procedural rank updates.
Ugly workaround but we can't use multiple queries in the same line in SourceMod.
2017-10-29 19:01:32 +02:00
shavit
a1629d839c Add indexes, VARCHAR >> CHAR(n).
BIG optimization.
2017-10-29 18:08:44 +02:00
shavit
96350387dc Optimized points updating
Got rid of a JOIN by directly setting the value. I'm still looking for a way to optimize this further, and this pull request sadly won't be merged until I do.
2017-10-27 07:42:09 +03:00
shavit
8fb7eadd9c Optimized UpdateRankedPlayers 2017-10-24 06:34:35 +03:00
shavit
ade4b001f8 Fix an issue where !rank may show points of another player.
I hope this won't be a bad solution, but I commented the code with a solution just in-case!
2017-10-24 06:23:08 +03:00
shavitush
70e885c25f Restructured files. 2017-10-24 01:05:09 +03:00