Commit Graph

244 Commits

Author SHA1 Message Date
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
f88885bafc add another parameter to Shavit_OnReplayStart and Shavit_OnReplayEnd 2021-09-02 14:58:18 +00:00
rtldg
762c9a1923 swap GetTimerDatabaseHandle2 with Shavit_GetDatabase in a few places 2021-08-31 20:03:59 +00:00
rtldg
36a468615d add Shavit_SetReplayCacheName 2021-08-28 02:41:33 +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
rtldg
c00ab666be bump to 3.0.6 2021-08-21 05:49:13 +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
14c10049ce insert prebuilt zones into db so !mapsleft and !loadunzonedmap work better 2021-08-17 14:45:15 +00:00
rtldg
d4b61a474f make wrhrankmain stuff use VIEWs instead of temp tables 2021-08-16 21:47:17 +00:00
rtldg
f79335270d add Shavit_GetReplayCacheName 2021-08-12 15:03:27 +00:00
rtldg
3f14b65cc4 add Shavit_OnRestartPre 2021-08-12 12:46:50 +00:00
rtldg
fc8b78ae43 make sure StartReplayFromFile uses delay and fix hud time for customframes 2021-08-11 13:20:42 +00:00
rtldg
6b7f187090 make mp_humanteam always apply 2021-08-08 22:40:34 +00:00
rtldg
2d168ddb1f add missing parameters to function declaration 2021-08-08 15:55:16 +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
8a8db13c4a gH_SQL might be null in OnMapEnd after server-restart 2021-07-31 05:50:56 +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
13c60c6b52 update eventqueuefix header 2021-07-29 21:38:15 +00:00
rtldg
506076723f try to improve timer accuracy by using ticks*tickinterval instead of time+=gameframetime 2021-07-29 00:25:02 +00:00
rtldg
aff3f95813 add shavit_misc_experimental_segmented_eyeangle_fix 2021-07-28 06:11:16 +00:00
rtldg
7b75eea957 add Shavit_OnStartPre and ignore Shavit_OnStart return value 2021-07-27 08:12:03 +00:00
rtldg
e6de599808 replay changes. renamed natives, version bump, implementation changes
>Renames:
framecache_t -> frame_cache_t
Shavit_GetReplayBotFirstFrame -> Shavit_GetReplayBotFirstFrameTime
Shavit_GetReplayPreFrame -> Shavit_GetReplayPreFrames
Shavit_GetReplayPostFrame -> Shavit_GetReplayPostFrames
Shavit_GetReplayCachePreFrame -> Shavit_GetReplayCachePreFrames
Shavit_GetReplayCachePostFrame -> Shavit_GetReplayCachePostFrames
Shavit_GetPlayerPreFrame -> Shavit_GetPlayerPreFrames

>Removed:
Shavit_GetPlayerTimerFrame
Shavit_SetPlayerTimerFrame
cp_cache_t.iTimerPreFrames

Replay format version bumped to distinguish old replays that had a bad iFrameCount from postframes.

Some unnecessary ArrayList writing in SaveReplay() has been removed.

shavit-replay.sp:Shavit_OnStart should be more readable now and will also hopefully now prevent some situations where script-execution could time-out due to wiping lots of frames.

Replay bots will now freeze at the end of a replay more smoothly now and not teleport for the last frame.
2021-07-25 16:29:29 +00:00
rtldg
08c8c00f53 change UnpackSignedShorts sign-extending 2021-07-25 10:47:41 +00:00
rtldg
e1dac1697a have Shavit_OnTopLeftHUD run even when there's no WR 2021-07-23 16:20:18 +00:00
rtldg
ec3e4d2d84 add angle diff to Shavit_GetReplayButtons 2021-07-23 09:15:23 +00:00
rtldg
435a23f065 move avg/max vel & perfs to another message so the buffer doesn't get cut off anymore 2021-07-23 08:54:57 +00:00
rtldg
debbf4d87e add Shavit_GetLoopingBotByName 2021-07-23 05:55:18 +00:00
rtldg
4f704a2fe4 -1 all completions in the db 2021-07-22 10:49:16 +00:00
OliviaMourning
af8ab48fc9 add shavit_core_pause_movement stuff
Co-authored-by: rtldg <55846624+rtldg@users.noreply.github.com>
2021-07-22 08:49:55 +00:00
rtldg
a6be0127ee add exact_time_int to playertimes to deal with floating point imprecision 2021-07-11 07:16:00 +00:00
rtldg
7757c9330d mask mousexy more and rename UnpackFrameShorts to UnpackSignedShorts 2021-07-10 04:32:46 +00:00
rtldg
418676d26c add cheapCloneHandle parameter to Shavit_GetReplayFrames 2021-07-10 03:15:47 +00:00
rtldg
9a0dd7f986 add mouse x/y & forwardmove/sidemove to replay file 2021-07-09 13:20:38 +00:00
rtldg
3024982fe1 add SteamIDToAuth stock 2021-07-07 01:46:33 +00:00
rtldg
28e9d4029b add postframes 2021-07-04 10:09:16 +00:00
rtldg
d6d5697ebc Update convar_class.inc to replace backslashes with forwardslashes so trying to create config files doesn't fail if you nest plugins into subfolders 2021-06-22 22:02:26 +00:00
rtldg
dad25f97cb rename parameter for SetReplayData and GetReplayData 2021-06-18 19:10:50 +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
c9e0f5de1c bump SHAVIT_VERSION to 3.0.0 and hide Shavit_GetStagePB for now 2021-05-25 09:42:26 +00:00
rtldg
fc37d22f1d fix parameter ordering in Shavit_GetReplayBotIndex 2021-05-23 16:03:22 +00:00
rtldg
36c395dde7 rename Shavit_GetReplayBotLength to Shavit_GetReplayCacheLength 2021-05-23 15:46:05 +00:00
rtldg
dbe9b9bffb rename Shavit_GetReplayBotFrameCount to Shavit_GetReplayCacheFrameCount 2021-05-23 15:42:35 +00:00
rtldg
fb7d36cc18 rename fLadderNormal to vecLadderNormal 2021-05-23 12:39:59 +00:00
rtldg
8f8b29b377 use eventqueuefix's event pausing when possible 2021-05-09 01:14:52 +00:00