Commit Graph

114 Commits

Author SHA1 Message Date
rtldg
3a84ae091a remove some TODOs 2021-04-01 15:46:20 +00:00
rtldg
6ff1357c16 fix ccnames after sm_ccadd broke it 2021-03-30 13:00:04 +00:00
rtldg
78ecccf7c4 change some cvar defaults 2021-03-23 10:14:34 +00:00
rtldg
87c74d329a remove some errors and warnings 2021-03-23 03:15:41 +00:00
rtldg
19c5ccb7f3 add sm_ccadd and sm_ccdelete 2021-03-22 09:42:03 +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
65f58219bd misc changes & stockify GetSpectatorTarget 2021-03-07 03:25:56 +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
rtldg
b19ce52efc make chatrank say ranked at #1 2021-03-05 17:25:03 +00:00
rtldg
25f07e70e1 move sample text into shavit-chat.phrases.txt 2021-03-02 22:20:27 +00:00
rtldg
720ddeed1d add Shavit_GetPlainChatrank. add {cr} to shavit_misc_clantag 2021-03-02 22:05:03 +00:00
Joe
183db7c1a9
remove diy GetRandomInt (#1013) 2021-02-21 16:57:55 -07:00
GAMMACASE
37d1e641b5 Fixed incorrect kv traversal for shavit-chatsettings.cfg 2020-11-12 23:12:42 +03:00
Nairda
797d10a1da
add checks for config parsing
"might also as well add some checks to config parsing" // GAMMACASE
2020-10-19 02:39:18 +02:00
Nairda
e2aedb4a0b
shavit-chatsettings fix
"this breaks the parsing and it always parses CS:S section"
made a PR on behalf of GAMMACASE


also removed the useless " \t \n \r " cus it's already in there defined as hex, pointless to have it defined twice
2020-10-19 02:27:02 +02:00
KiD Fearless
3283a26d45 Added Convar_class methodmaps for timer convars 2020-01-22 17:16:37 -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
dc11301325 Stopped saving custom chat if it wasn't changed. 2019-05-12 07:53:25 +03:00
shavit
fbe78584ae Fixed table creation when using the same database for more than one server. 2019-04-27 12:54:06 +03:00
shavit
bb74e14bcf Fixed SQL issues on table creation when using table prefix. 2019-04-26 17:09:37 +03:00
shavit
5bf5b17d0e Made {rand} make a lot more sense code-wise 2019-04-15 03:18:30 +03:00
shavit
12005e8c18 Rewrote queries to support ONLY_FULL_GROUP_BY (#764). 2019-03-27 10:27:50 +02:00
shavit
73742083fb Fixed bug where chat plugin would query for bots (#758). 2019-03-25 10:20:23 +02:00
shavit
463b8a857b Major optimizations to database structure.
* in table `playertimes` add `time` to the `map` index - it should look like this:
```sql
INDEX `map` (`map`, `style`, `track`, `time`)
```

* in all tables, change all CHAR(x) to VARCHAR(x). the following are the changes:
- `chat.auth VARCHAR(32)`
- `chat.ccname VARCHAR(128)`
- `chat.ccmessage VARCHAR(16)`
- `users.auth VARCHAR(32)`
- `users.country VARCHAR(32)`
- `users.ip VARCHAR(64)`
- `maptiers.map VARCHAR(128)`
- `playertimes.auth VARCHAR(32)`
- `playertimes.map VARCHAR(128)`
- `playertimes.date VARCHAR(16)`
- `mapzones.map VARCHAR(128)`
2019-03-25 09:33:34 +02:00
shavit
4a88a0ec8b Fixed chat module when running SQLite. 2019-03-24 01:35:05 +02:00
shavit
2799f00b31 Changed chat settings to be only saved at player disconnection. (#758)
Database optimization.
2019-03-24 01:30:32 +02:00
shavit
3784ab969b Added foreign keys (#758). 2019-03-23 05:48:31 +02:00
shavit
81da15c1ed Fixed RTLer. 2019-02-01 22:56:32 +02:00
shavit
3ac7216432 Fixed chat breaking exploit in Source 2013 games. 2019-02-01 22:56:24 +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
cf1fce9bc3 Fixed CS:GO chat colors. 2018-12-26 23:07:05 +02:00
shavit
f999073ee2 Structified replay plugin, doubled #pragma dynamic
First chat color in CS:GO is broken.. pending fix
2018-12-26 21:50:42 +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
2c065ee5c8 added color foramtting to shavit-chatsettings 2018-11-24 19:05:21 +02:00
shavit
a5513eb14b changed default collation of user inputs to utf8mb4_unicode_ci (#691) 2018-11-03 13:05:49 +02:00
shavit
d1d594503e Dropped dynamic arrays for strings, unless necessary. 2018-09-23 04:16:23 +03:00
shavit
1726fe753c Fixed !ranks showing unranked incorrectly. 2018-09-15 17:25:51 +03:00
shavit
ae8d2e28b8 oops 2018-09-14 17:50:50 +03:00
shavit
ca89965b7b Added "easteregg" and "flag" to chat title settings. (#606) 2018-09-14 17:29:30 +03:00
shavit
46d16c80ee Added !ranks (rank preview, #610) 2018-09-14 16:57:46 +03:00
shavit
10f4cd2c2e Fixed percentile rankings being broken. 2018-05-08 22:25:02 +03:00
shavit
dc2eddf83f Fixed duplicated messages and console say. 2018-05-08 20:20:38 +03:00
shavit
3593e5a246 Fixed default colon character, increased MAXLENGTH_NAME. 2018-05-08 19:26:43 +03:00
shavit
9461c29f71 Added my own minimal implementation of a chat processor.
* Removed Chat-Processor dependency.
* Added cvar `shavit_chat_colon`.
* Fixed inconsistencies with default chat messages.
2018-05-08 19:01:29 +03:00
shavit
b5a41ae4d0 Fixed chat color injection. 2018-05-08 16:31:36 +03:00
shavit
a4ecd879b9 Fixed 'to rank' parameter for pecentile ranking. 2018-04-15 21:22:50 +03:00
shavit
b41db94b87 what the fuck sourcemod
this commit fixes an issue where you sometimes don't see the current chat title selected in the chat ranks menu

why does it happen? i don't know, i have no idea at all..
2018-03-24 03:02:15 +03:00
shavit
b38795cfcf Check for custom title flag continuously rather than cache it. (#608) 2018-03-24 02:06:16 +03:00
shavit
256b21fd89 Fixed ccmsg using ccname as the variable. 2018-03-18 02:19:21 +02:00
shavit
3f3f9c3c0b Added {points} variable to chat titles.
Also extended the display text's limitations.
2018-03-17 23:26:14 +02:00
shavit
61cf6e09ba Fixed name not being replaced in CS:GO. 2018-03-17 23:03:43 +02:00
shavit
6808b833d7 Fixed chat titles compatibility with latest Chat-Processor. 2018-03-16 05:07:28 +02:00
shavit
045fbb03fe Fixed shavit_chat_customchat 0 not being respected. 2018-03-15 06:03:48 +02:00
shavit
90c12340ce Implemented chat titles and rankings integration (#499)
* Added {clan} variable.
* Check addons/sourcemod/configs/shavit-chat.cfg.
* Update your translations! Otherwise this won't work.
2018-03-15 05:37:21 +02:00
shavit
dda1afa0e7 Fix RTL chat messages being colored randomly. 2018-01-26 05:57:09 +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
shavit
e36d917f6d Update table creation queries. 2017-11-23 22:20:33 +02:00
shavit
03973665d5 Fixed !ccname and !ccmsg with no arguments not showing current setting. 2017-11-15 05:33:06 +02:00
shavit
9c74b62a28 Fixed shavit-chat SQL error with remote databases. (#505) 2017-11-15 04:47:50 +02:00
shavit
ef539c1ac5 Fix potential issue with team chat. (#524) 2017-11-15 02:55:03 +02:00
shavit
a1629d839c Add indexes, VARCHAR >> CHAR(n).
BIG optimization.
2017-10-29 18:08:44 +02:00
shavitush
70e885c25f Restructured files. 2017-10-24 01:05:09 +03:00