Commit Graph

69 Commits

Author SHA1 Message Date
rtldg
0f250cc780 i broke argless !mapsdone 2021-10-02 04:45:18 +00:00
rtldg
c52eb10755 add ranks to playtime menu 2021-09-28 06:43:35 +00:00
rtldg
32f0e50905 i broke !profile 2021-09-25 12:24:19 +00:00
rtldg
0698a9d77e make !mapsdone/!mapsleft steamid work 2021-09-21 03:53:56 +00:00
rtldg
98ad99af3a stats menu cleanup + style playtime 2021-09-19 23:34:42 +00:00
rtldg
0530a33633 small whitespace fix 2021-09-19 22:40:27 +00:00
rtldg
8b85916201 fix stats menu map completion percentage 2021-09-19 22:37:17 +00:00
rtldg
8dc87f46e8 simplify stats menu gI_Style usage 2021-09-19 22:36:31 +00:00
rtldg
39904383bb Merge branch 'stats_menu' 2021-09-19 22:26:34 +00:00
rtldg
3426b9c73d add some things to make sure the query playtime query is attempted 2021-09-19 22:19:57 +00:00
Nukoooooooo
f796eb3544 uhhh ok 2021-09-19 08:13:27 +08:00
Nukoooooooo
9308ec3a63 Fixed N% when total map is 0 (ghetto way) 2021-09-16 01:51:39 +08:00
Nukoooooooo
95be6211cc Select the first style if we reopen the menu 2021-09-16 01:17:22 +08:00
Nukoooooooo
3a3b3027e7 Rework stats menu 2021-09-16 01:10:16 +08:00
rtldg
bf9b73180f add !playtime menu 2021-09-07 09:01:26 +00:00
rtldg
d3b285f645 show playtime in !profile 2021-09-07 08:33:56 +00:00
rtldg
e30c46d41c run Shavit_OnDatabaseLoaded on shavit-stats lateload 2021-09-07 08:24:32 +00:00
rtldg
b23542c1d8 let !profile <steamid> work 2021-09-07 08:24:01 +00:00
rtldg
670f220b76 add playtime tracking 2021-09-07 08:13:30 +00:00
rtldg
762c9a1923 swap GetTimerDatabaseHandle2 with Shavit_GetDatabase in a few places 2021-08-31 20:03:59 +00:00
rtldg
2b4d77d281 add sql logging define 2021-08-18 15:10:42 +00:00
rtldg
6c5be61344 try to consistently use lowercase mapnames and PLATFORM_MAX_PATH for mapname buffers 2021-08-08 15:55:09 +00:00
rtldg
b68aba6fd2 reorganize some things to stop looping so much when a player joins 2021-08-01 18:07:06 +00:00
rtldg
187e749352 unset gB_Late after use 2021-07-06 08:51:35 +00:00
rtldg
6f058127c4 make all plugins require dhooks so there's error spam due to them not loading 2021-07-06 02:22:35 +00:00
rtldg
02fb3e2f7e unadd chatstrings_t parameter from Shavit_OnChatConfigLoaded because it's not worth having 2021-05-29 02:03:21 +00:00
rtldg
c9f8724d50 change sm_p to profile instead of noclip 2021-05-25 11:32:44 +00:00
rtldg
3be13005e6 add chatstrings_t param to Shavit_OnChatConfigLoaded. add Shavit_GetStyleStringsStruct. add Shavit_GetChatStringsStruct. 2021-05-08 13:00:19 +00:00
rtldg
ecc2d8d2c0 use the wr table view in some more places 2021-04-30 07:30:45 +00:00
rtldg
7ce9878a50 fix some errors 2021-04-02 19:11:34 +00:00
rtldg
7d6d906060 moving some stuff from stats to rankings
shavit_stats_mvprankones -> shavit_rankings_mvprankones
shavit_stats_mvprankones_maintrack -> shavit_rankings_mvprankones_maintrack
Shavit_GetWRCount, Shavit_GetWRHolders, and Shavit_GetWRHolderRank now in shavit-rankings.sp
2021-04-02 18:15:00 +00:00
Nairda
cd8bbdf850
update menu drawing time (#1036)
* Update shavit-rankings.sp

* Update shavit-rankings.sp

* Update shavit-hud.sp

* Update shavit-core.sp

* Update shavit-misc.sp

* Update shavit-replay.sp

* Update shavit-stats.sp
2021-04-01 13:44:10 +00:00
rtldg
bf7f68faec change all menus to display for at least 5 minutes 2021-03-14 00:03:10 +00:00
rtldg
9b0f3dff92 fix loose formatting warning 2021-03-11 00:55:13 +00:00
rtldg
8d6e730bee make my wrrank/wrcount queries work with mysql 5.6/5.7
also my DeleteWR() query that used variables to be fancy is unneeded and just breaks sqlite compatibility
have you noticed that i've been winging it with all the sql stuff?
2021-03-10 08:50:33 +00:00
rtldg
6f0685406f fix query for bonuses & WR Holder rank for #1025 2021-03-09 07:50:36 +00:00
rtldg
65f58219bd misc changes & stockify GetSpectatorTarget 2021-03-07 03:25:56 +00:00
rtldg
ec31464b1b add parentheses around ternary conditionals 2021-03-06 21:04:42 +00:00
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