Commit Graph

79 Commits

Author SHA1 Message Date
rtldg
5312c31253 add SanerGetClientName 2021-10-26 21:35:01 +00:00
rtldg
b364871df5 add steamid-stocks.inc 2021-10-25 12:40:24 +00:00
rtldg
966ceea5f8 finish splitting shavit.inc 2021-10-18 07:22:50 +00:00
rtldg
7493c7d548 remove unused #pragma dynamic 2021-10-17 05:09:20 +00:00
rtldg
7ca863f04b move sql table creation and migrations 2021-10-10 05:14:37 +00:00
rtldg
4e577fbe9b change !ccadd and !ccdelete flag from CHAT to RCON 2021-10-07 15:45:42 +00:00
rtldg
762c9a1923 swap GetTimerDatabaseHandle2 with Shavit_GetDatabase in a few places 2021-08-31 20:03:59 +00:00
rtldg
599b276e42 add another sql handle check to shavit-chat 2021-08-20 23:53:58 +00:00
rtldg
fea39ce643 make Shavit_OnDatabaseLoaded run after migration like it's supposed to and attempt to use it for things 2021-07-30 08:17:31 +00:00
rtldg
3024982fe1 add SteamIDToAuth stock 2021-07-07 01:46:33 +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
GAMMACASE
1c6cd5e27d
Fix infinite loop in RemoveFromString() (#1052) 2021-06-02 20:15:38 +00:00
rtldg
f8237a3fdc add some missing things from Shavit_GetPlainChatrank 2021-05-06 04:01:07 +00:00
rtldg
7df2e2c959 add shavit_core_timeinmessages 2021-05-06 03:58:19 +00:00
BoomShot
b22092fcf3
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.
2021-04-07 21:18:27 +00:00
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