Commit Graph

1221 Commits

Author SHA1 Message Date
rtldg
cc4d89cd42 make the votedelay menu stuff for No Vote only save you once so stack overflows dont pop up in the future 2021-09-15 13:21:39 +00:00
rtldg
81055252b9 fix padding with nominations 2021-09-15 12:35:36 +00:00
rtldg
fe076df49e increase zone tempent time further 2021-09-15 00:55:02 +00:00
rtldg
1951ac9a73 some timelimit changes so it instantly changes the map 2021-09-14 08:28:56 +00:00
rtldg
256baa91b8 disable smc_display_timeleft since shavit-timeleft exists 2021-09-14 03:52:38 +00:00
rtldg
3c8bd42561 stop printing float decimal for time-extended 2021-09-14 01:43:35 +00:00
rtldg
00d16405f6 use Transaction2 in more places 2021-09-14 01:43:23 +00:00
rtldg
fbcd691ec6 add sm_extend as alias and change some default admin flags on some vote commands 2021-09-14 00:50:21 +00:00
rtldg
9d1a0e10c0 fix mapchooser print & optional natives 2021-09-14 00:36:15 +00:00
rtldg
e305ad871c fix warnings and mapchooser crash 2021-09-13 13:34:57 +00:00
rtldg
07a55bd250 add track to zone log message 2021-09-13 12:02:57 +00:00
rtldg
70116ba168 nominate delay subtraction was flipped 2021-09-13 10:06:30 +00:00
rtldg
a4b7330625 add smc_nominate_delay 2021-09-13 07:26:15 +00:00
rtldg
fed35516f8 stop showing duplicate maps, add some filler, and error fix 2021-09-13 06:51:56 +00:00
rtldg
54a2d6123d fix stupid remaining & total needed stuff 2021-09-12 10:47:56 +00:00
rtldg
535917d0fc mapchooser changes 2021-09-12 09:18:52 +00:00
rtldg
636b16b7e9 add silly mapchange sound 2021-09-12 06:52:38 +00:00
rtldg
fcab0a7db6 make sure we always fill the tier cache 2021-09-12 05:02:08 +00:00
rtldg
411195e794 mapchooser fixes and qol changes 2021-09-12 02:42:12 +00:00
rtldg
a4bff5cca8 adjust shavit_misc_bhopsounds handling 2021-09-12 00:39:54 +00:00
rtldg
fb14355f9b stop multiple noclip commands from running in the same tick 2021-09-11 20:32:43 +00:00
rtldg
8ce930a0e3 mark Shavit_GetStyleSettingBool as optional for things that don't use bhoptimer 2021-09-11 19:57:47 +00:00
rtldg
7342baabe4 add thing to prevent segmented players from accidentally voting 2021-09-11 10:41:34 +00:00
rtldg
f55419cd10 add more mapchooser cvars and move stuff around 2021-09-11 08:58:28 +00:00
rtldg
49503f71ed increase convar_class default value buffer size 2021-09-11 08:00:54 +00:00
rtldg
f8147a63f3 move eventqueuefix timescaling into timer because carnifex is removing the built-in integration 2021-09-11 01:31:22 +00:00
rtldg
77bf06aa02 speed up !nominate and !map 2021-09-11 00:02:24 +00:00
rtldg
9a45f79348 add smc_rtv_spectator_cooldown 2021-09-10 02:41:42 +00:00
rtldg
1620cd3f30 add mixed maps+zones option to smc_maplist_type 2021-09-09 23:34:51 +00:00
rtldg
dc1f889b5f check if can write to replay folder on map start 2021-09-09 22:41:10 +00:00
rtldg
b6a3406dc3 revert to using RoundToCeil for the smc needed votes thing 2021-09-09 22:12:39 +00:00
rtldg
e8f2819837 add smc_anti_spam 2021-09-09 21:30:11 +00:00
rtldg
277211f6b0 add more people to smc authors list 2021-09-09 21:21:46 +00:00
rtldg
093d66f8b2 some more Shavit_GetMapTier -> Shavit_GetMapTiers 2021-09-09 21:17:27 +00:00
rtldg
9d8a7a4079 trim whitespace 2021-09-09 21:12:45 +00:00
rtldg
776832683d change tier default to 0 2021-09-09 21:11:48 +00:00
rtldg
cfbc059aab change nominate menu title 2021-09-09 21:10:41 +00:00
rtldg
83f2f72238 some speed improvements to nominate menu creation
this may help if you have 6.5k maps 😎😎😎
2021-09-09 21:09:46 +00:00
rtldg
698f1b8648 faster LowercaseString stock 2021-09-09 21:00:00 +00:00
rtldg
c908a90cf8 add smc_prefix 2021-09-09 20:53:29 +00:00
lilac1337
5fa45fb52b if there are 2 people on a server and smc_rtv_required_percentage is over 50, require both players to rtv 2021-09-09 19:55:39 +00:00
rtldg
811a106989 merge smc less-iterations patch 2021-09-09 19:41:27 +00:00
rtldg
27c1dd216c cleanup smc DEBUG usage 2021-09-09 19:22:03 +00:00
rtldg
92dbd1003f use convar_class for auto-filling the plugin cfg 2021-09-09 19:12:37 +00:00
rtldg
1484a0773a add note to shavit-mapchooser forwards 2021-09-09 19:03:12 +00:00
rtldg
c318154607 fix indentation warnings 2021-09-09 18:20:01 +00:00
rtldg
c8a119c3f5 add shavit-mapchooser forwards to shavit.inc 2021-09-09 18:17:19 +00:00
rtldg
f613fb55f1 update plugin info 2021-09-09 18:04:38 +00:00
rtldg
d79cf72559 add shavit-mapchooser from mbhound commit 09558202ce1ab21e3686b6576e21652768d86243 2021-09-09 18:00:55 +00:00
rtldg
1fd509cf52 change GetSpectatorTarget to work with OBS_MODE_POI & OBS_MODE_ROAMING 2021-09-08 20:26:20 +00:00
rtldg
24e6a0b937 fix bullet sound/impact hook 2021-09-08 20:23:08 +00:00
rtldg
ef5bf0c460 only show 'In End/Start Zone' for zones of your track 2021-09-08 17:43:08 +00: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
6818151c4b some zone stuff. sorry commit msg hard 2021-09-07 05:20:59 +00:00
rtldg
b602c57440 add shavit_misc_prespeed_startzone_message for someone special 2021-09-06 19:34:56 +00:00
rtldg
cfa724f738 try to fix tf2 uncrouch spam from limiting velocity 2021-09-05 20:55:53 +00:00
rtldg
addf123025 precache zone stuff sooner in OnMapStart 2021-09-05 19:25:06 +00:00
rtldg
4d03e30e6f add dominatingme symbols for wr holders on a map 2021-09-05 17:42:43 +00:00
rtldg
f10fd5614c add disabled wrs_min removal thing 2021-09-05 16:27:15 +00:00
rtldg
6f87974938 recreate zones in case the entity randomly disappears. might fix a bug? 2021-09-05 16:26:52 +00:00
rtldg
6e3bd85c14 fix tf2 linux bot creation 2021-09-05 15:30:44 +00:00
rtldg
f88885bafc add another parameter to Shavit_OnReplayStart and Shavit_OnReplayEnd 2021-09-02 14:58:18 +00:00
rtldg
c0eaba7b37 still use angles even if setstart pos isn't in start zone 2021-09-02 13:33:04 +00:00
rtldg
f8eb56cd17 unload zones on plugin end (so reloading doesn't leave entities) 2021-09-02 13:18:45 +00:00
rtldg
831d46c4fa remove unnecessary check 2021-09-02 10:58:55 +00:00
rtldg
762c9a1923 swap GetTimerDatabaseHandle2 with Shavit_GetDatabase in a few places 2021-08-31 20:03:59 +00:00
rtldg
8bc2662418 less shitty wrholder queries 2021-08-31 19:58:21 +00:00
rtldg
c25e3404b4 fix mvp star queries not running 2021-08-31 18:45:43 +00:00
rtldg
5eae3f686a remove thing that was wiping !wr menu cache 2021-08-31 17:43:19 +00:00
rtldg
a62a5ca3bb increase zone life to help with flickering with a lot of zones 2021-08-28 21:23:31 +00:00
rtldg
05d50babf4 change string from 'invalid' to 'unknown' 2021-08-28 20:16:42 +00:00
rtldg
fe1d01e1fb add btimes replay support 🤝🤝🤝🤝🤝🤝🤝🤝🤝🤝🤝🤝🤝🤝🤝 2021-08-28 20:16:06 +00:00
rtldg
ea5e6b8535 prebuilt zone cache fixes and menu changes 2021-08-28 17:52:49 +00:00
rtldg
36a468615d add Shavit_SetReplayCacheName 2021-08-28 02:41:33 +00:00
rtldg
c80515496a add !wrn, !wrpre, !wrsw, etc for style commands 2021-08-28 02:27:56 +00:00
rtldg
d8dfef5279 trim some hud code 2021-08-28 01:32:08 +00:00
rtldg
82c1605e94 make !wr menu remember page on back button 2021-08-28 01:11:59 +00:00
rtldg
4440b8d469 make CreateAllNavFiles use valve-fs 2021-08-28 00:41:23 +00:00
rtldg
1954583070 add !ihate!main 2021-08-28 00:39:37 +00:00
rtldg
b893486972 refresh player's cache when their time is deleted 2021-08-28 00:20:40 +00:00
rtldg
8ee42d6490 revert shavit-wr Shavit_OnStyleConfigLoaded changes that resulted in handles leaking 2021-08-28 00:03:11 +00:00
rtldg
2ca2509ae6 changed 'prepends' to 'appends' in comment 2021-08-23 19:52:47 +00:00
rtldg
33b2fdf935 bump to 3.0.7a until next release 2021-08-23 19:52:34 +00:00
GAMMACASE
94f30693c0 Move trim function to shavit.inc 2021-08-23 22:42:44 +03:00
GAMMACASE
60d9609b7d Increase buffer size for player names in !recent menu 2021-08-23 08:13:11 +03:00
rtldg
c00ab666be bump to 3.0.6 2021-08-21 05:49:13 +00:00
rtldg
4553286104 stop timescale from being set to 0 2021-08-21 05:31:52 +00:00
rtldg
f7cd8bf072 delay bot name change to prevent crash in Host_Changelevel 2021-08-21 04:24:47 +00:00
rtldg
599b276e42 add another sql handle check to shavit-chat 2021-08-20 23:53:58 +00:00
rtldg
09f34bcef3 empty wr cache on map end 2021-08-20 22:50:15 +00:00
rtldg
309421ad18 fix some errors that come up due to due to migrations 2021-08-20 22:37:37 +00:00
rtldg
fc801e8a01 fix resetting checkpoints menu from being overlayed by checkpoint menu reopening. thanks, haze 2021-08-20 22:20:19 +00:00
rtldg
5687095144 remove some non-threaded queries 2021-08-18 15:37:08 +00:00
rtldg
2b4d77d281 add sql logging define 2021-08-18 15:10:42 +00:00
rtldg
077cbe9a01 use lowercase strings when sending to GuessBestMapName 2021-08-17 23:50:51 +00:00
rtldg
2733faf57d fix up replay props finally 2021-08-17 20:25:41 +00:00
rtldg
d798de9cb2 fix some replay things 2021-08-17 17:22:58 +00:00
rtldg
14c10049ce insert prebuilt zones into db so !mapsleft and !loadunzonedmap work better 2021-08-17 14:45:15 +00:00
rtldg
c8bcd75fa0 make sure closestpos handles are deleted when a replay is unloaded 2021-08-17 11:33:12 +00:00
rtldg
4da5d528a6 short circuit cheat-impulses check sooner 2021-08-17 11:27:39 +00:00
rtldg
6663305cec use GetAngleDiff in another place 2021-08-17 11:18:32 +00:00
rtldg
d4b61a474f make wrhrankmain stuff use VIEWs instead of temp tables 2021-08-16 21:47:17 +00:00
rtldg
2eb78a2a14 stop postframes from increasing the replay time 2021-08-16 10:21:58 +00:00
rtldg
9f313ee0cf add more !DEBUG wrappers around sv_cheats stuff 2021-08-15 18:36:13 +00:00
rtldg
c5480e7087 adjust parameter count for kill commands 2021-08-15 13:53:29 +00:00
rtldg
c3ad16b418 cleanup all weapons on the ground if no-weapon-drops is enabled 2021-08-15 13:23:28 +00:00
rtldg
e00b394356 change zone-intersection checks to only happen for start & end zones 2021-08-15 12:39:21 +00:00
rtldg
aa78c6fc0e reopen checkpoint menu repeatedly in case someone has bad internet and the menu disappears 2021-08-15 12:28:25 +00:00
rtldg
1f32b9cbdc make persistent-data use real time, not engine time 2021-08-15 12:22:53 +00:00
rtldg
140b43dd40 add shavit_core_disable_sv_cheats and make some commands rcon-flag only 2021-08-15 12:15:35 +00:00
rtldg
f79335270d add Shavit_GetReplayCacheName 2021-08-12 15:03:27 +00:00
rtldg
a521b658c2 track wasn't set for Shavit_OnRestartPre 2021-08-12 14:20:07 +00:00
rtldg
3f14b65cc4 add Shavit_OnRestartPre 2021-08-12 12:46:50 +00:00
rtldg
958c87ccf4 remove unnecessary format for translation 2021-08-12 11:38:40 +00:00
rtldg
a373329499 only print wr message 2 for non-autohop 2021-08-12 11:32:11 +00:00
rtldg
048fee9569 make start position use PointInBox for moved zones 2021-08-12 11:32:05 +00:00
rtldg
11d2ae0785 another thing to fix hud display for custom-frame bots 2021-08-12 10:43:57 +00:00
rtldg
fc8b78ae43 make sure StartReplayFromFile uses delay and fix hud time for customframes 2021-08-11 13:20:42 +00:00
rtldg
6bcb16b361 touch up some zone intersect stuff 2021-08-11 13:20:05 +00:00
rtldg
eab31036a4 fix grid snap visualization 2021-08-08 22:47:36 +00:00
rtldg
c441fa4fa7 prevent zones from being placed inside another zone 2021-08-08 22:43:27 +00:00
rtldg
6b7f187090 make mp_humanteam always apply 2021-08-08 22:40:34 +00:00
rtldg
8009dbab88 replace some usages of TeleportEntity with setting m_vecAbsVelocity instead 2021-08-08 15:55:16 +00:00
rtldg
b38d875fd1 simplify Command_Jointeam 2021-08-08 15:55:16 +00:00
rtldg
0f21467ac7 make FindPersistentData faster 2021-08-08 15:55:16 +00:00
rtldg
9c344ee225 a few more mapname buffers adjusted to PLATFORM_MAX_PATH 2021-08-08 15:55:16 +00:00
rtldg
845223bf6f reduce some more loops 2021-08-08 15:55:16 +00:00
rtldg
525e7a93c1 make {styletag} & {style} work for !replay bots again 2021-08-08 15:55:16 +00:00
rtldg
aa5aaf9f6a change some wr stuff around again 2021-08-08 15:55:16 +00:00
rtldg
b4d1d8a8c0 fix some checkpoint/gravity/timescale/speed related stuff 2021-08-08 15:55:16 +00:00
rtldg
2d168ddb1f add missing parameters to function declaration 2021-08-08 15:55:16 +00:00
rtldg
d112d3dbd0 add dumb shavit_misc_resettargetname_main and shavit_misc_resettargetname_bonus 2021-08-08 15:55:15 +00:00
rtldg
c873f218a6 also make loadunzonedmap use lowercase 2021-08-08 15:55:15 +00:00
rtldg
1bb38a1a2c reopen replay-menu only if still open 2021-08-08 15:55:15 +00:00
rtldg
eba15ccf72 trim lines in convar_class so potentially remove erring crlfs 2021-08-08 15:55:15 +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
a64a29263d make sm_loadunzonedmap use valve-virtual-fs 2021-07-31 07:53:02 +00:00
rtldg
202a2e642a fix shavit-sounds ArrayList sizes 2021-07-31 06:02:37 +00:00
rtldg
8a8db13c4a gH_SQL might be null in OnMapEnd after server-restart 2021-07-31 05:50:56 +00:00
rtldg
176dc76267 remove duplicate GetString from HasStyleSetting 2021-07-30 11:39:18 +00:00
rtldg
32658a029d bump to 3.0.1 and touch convar_class.inc & dhooks.inc so they reindex 2021-07-30 08:27:53 +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
65f4cf6827 fix shavit_misc_hideteamchanges on css 2021-07-30 07:12:37 +00:00
rtldg
13c60c6b52 update eventqueuefix header 2021-07-29 21:38:15 +00:00
rtldg
9adf78d311 make prespeed checkpoints better and not use noclip 2021-07-29 19:53:41 +00:00