Commit Graph

81 Commits

Author SHA1 Message Date
rtldg
5f59c57c4f brackets and oversights 2021-03-06 09:54:03 +00:00
rtldg
3df3943dea move unindexed variables out of loop 2021-03-06 09:48:22 +00:00
rtldg
4da249c6fb cleanup comments 2021-03-06 09:31:54 +00:00
rtldg
3ca87e27c8 new natives & chat rank stuff & translations
natives:
Shavit_GetWRCount(client) -> Shavit_GetWRCount(client, track, style, usecvars)
Shavit_GetWRHolders(track, style, usecvars)
Shavit_GetWRHolderRank(client, track, style, usecvars)

configs/shavit-chat.cfg:
added w (WR Count) and W (rank out of WR holders) to ranks prefix options
added {pts}, {wrs}, and {wrrank}

translations/shavit-chat.phrases.txt:
added a lot here... make sure you update your #format, parameter numbers, and translations...
2021-03-06 09:14:35 +00:00
GAMMACASE
e091c186fe
Fixed queries to support mysql v8 (#1015) 2021-02-26 00:42:30 +00:00
kidfearless
1835573a70 Removed shavit_getstylesettings from shavit-stats 2020-12-04 07:39:09 -07:00
Joe
a1e60b39fa
Multiple bonuses (#982)
* cleanup GetTrackName()

* a few more changes to change mod_zone_bonus & add Track_Bonus_Last

* fix undefined symbol sTrack

* fixup !bwr for multiple bonuses

* fix GetTrackName() after I broke it

* add bonus number param to help text of sm_bwr

* fix !wr after I broke it adding !bwr [bonus number]

* ignore checkpoint zones for now because nothing is ready for them

* update points for bonus #2 through #8 at same time

so instead of something like `9 (track count) * 22 (style count)` queries, it'll do `3 (main, bonus1, rest of bonuses) * 22 (style count)` queries and the rest of the bonuses on the recalc all in the same query
2020-11-30 09:40:45 -07:00
KiD Fearless
9fc6f83e8c Fix SQL Syntax error in MySQL 8.0 2020-04-07 13:35:03 -06:00
KiD Fearless
3283a26d45 Added Convar_class methodmaps for timer convars 2020-01-22 17:16:37 -07:00
KiD Fearless
3eaaba3a70 Selecting an unfinished map nominates it 2019-12-19 13:09:15 -07:00
shavit
fd121092c8 Refactored database handles so that there are multiple instead of a single one. 2019-05-31 17:32:03 +03:00
shavit
0650d20eff Removed ancient SetPrefix code and put it in a stock function instead. 2019-05-31 17:03:27 +03:00
shavit
547f90ef62 Added automatic database migrations and revamped overall database structure.
Now I can push database migrations without making the plugin's users do the querying on their own.

List of migrations:
* **Converted all SteamIDs in the database from SteamID3 to Steam Account ID format. The difference is simply stripping of the [U:1: prefix and ] suffix. This change speeds up the queries and reduces the database's size by a lot.**
* Removal of `workshop/` paths from all map names in the database.
* Added index to `lastlogin` to speedup the filtering I added to rankings with `shavit_rankings_llrecalc`.
* Removed `country` from database. It was completely unnecessary.
* Converted IP addresses from plaintext to a single 4 bytes integer.
* Converted `date` of records from a string to integer.
2019-05-12 07:57:04 +03:00
shavit
12005e8c18 Rewrote queries to support ONLY_FULL_GROUP_BY (#764). 2019-03-27 10:27:50 +02:00
shavit
26eda8b882 Added tier to mapsleft (#704).
and squashed a bug with the menu title
2019-03-25 14:48:09 +02:00
shavit
079c71bfa1 Fixed mapsleft for bonus track. 2019-03-25 14:32:14 +02:00
shavit
0038c0d9e7 Added !mapsdone/!mapsleft (#704). 2019-03-25 14:28:23 +02:00
shavit
937491d4ee Optimized maps left query so it runs over 15 times faster (#758).
on default mariadb setup!
2019-03-25 10:35:03 +02:00
shavit
1d78ee7bf0 Fixed WR count query being inaccurate (#760). 2019-03-25 08:57:28 +02:00
shavit
79a6fef09c Added "enabled" and "inaccessible" style settings. (#761) 2019-03-24 23:10:00 +02:00
shavit
08f0224759 Added menu ordering for styles (#681).
Also added Shavit_GetOrderedStyles ofc.
2019-02-24 17:05:39 +02:00
shavit
3114eec03f Got rid of the cached cvars bullshit
protip: don't follow hosties' coding conventions that shit sucks mad dick
2018-12-27 06:42:02 +02:00
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
34a3a2ad49 reverted the dumbest fucking commit ever 2018-11-27 22:53:06 +02:00
shavit
676f3dd2e9 fixed map counter 2018-11-24 18:44:04 +02:00
shavit
2d192c7f88 support for sql mode only_full_group_by (#691) 2018-11-03 12:59:06 +02:00
shavit
d1d594503e Dropped dynamic arrays for strings, unless necessary. 2018-09-23 04:16:23 +03:00
shavit
27e0dad8ad Conut >> Count 2018-01-13 09:34:33 +02:00
shavit
cfde142e92 Added TF2 support. (#549)
Tested most of the things in-game, should be good to go!
2017-12-10 09:30:08 +02:00
shavitush
af4a007c81 Fixed wrong WR count. (#532) 2017-11-19 01:34:32 +02:00
shavitush
70e885c25f Restructured files. 2017-10-24 01:05:09 +03:00