Commit Graph

90 Commits

Author SHA1 Message Date
shavitush
8f1da48e82 Added saving checkpoints to disk for mappers (mostly for Lily). !savecps !loadcps 2020-07-10 19:44:16 +03:00
KiD Fearless
7e1c729bc1 Added "Shavit_GetClientFrameCount" and "Shavit_GetReplayFrames" 2019-08-05 16:31:47 -06:00
shavit
c84815584c Refactored event hooks in replay plugin. Should broadcast events properly now. 2019-07-31 20:19:02 +03: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
26d5bfa3ba Split replay version loaders
And fixed a bug with old replays where the very first frame wouldn't
be loaded.
2019-05-03 10:56:56 +03:00
shavit
8b2e3357bb Fixed a minor memory leak when loading corrupted replay files. 2019-04-06 01:58:34 +03:00
shavit
38bec72377 Replay subversion 3 (#776) 2019-04-06 01:53:24 +03:00
shavit
39572abfd9 Added persisting timer data (#757). 2019-03-27 19:50:03 +02:00
shavit
6a73893857 Made teleport to last frame of replay playback seamless. 2019-03-27 11:36:27 +02:00
shavit
6f2e5e7c4f Fixed rare bug with replay playback. 2019-03-25 08:42:12 +02:00
shavit
96e856fe29 When !replay fails, display menu will display at the same item. (#763) 2019-03-24 22:37:00 +02:00
shavit
04e1a6fb64 Improved cvar enforcing for replay plugin. 2019-03-09 17:21:20 +02:00
shavit
1d5c63c595 Made transition to last frame of replay much smoother. 2019-03-07 03:38:31 +02:00
shavit
fdf65ca188 Improved replay smoothness.
* Fixed for illogical teleports.
* Improved replay smoothness when teleporting/landing.
* Removed pointless TR.
2019-03-07 03:23:24 +02:00
shavit
9bcc6878d4 Fixed replays breaking unexpectedly at certain interactions.
Example of breakage:
1. Request playback.
2. When the replay playback is about to end (the delay where the bot idles in the end zone), stop the playback.
3. Request playback ASAP.
2019-03-07 01:48:07 +02:00
shavit
8f26d7be0e Added cooldown on playback/stop for regular users. 2019-03-07 01:30:49 +02:00
shavit
0fa1cbd58e Added the ability to stop playback as the requester. (#705) 2019-03-07 01:20:50 +02:00
shavit
283bbc224f Fixed deleted replays not being overwritten. 2019-03-05 00:07:26 +02:00
shavit
08f0224759 Added menu ordering for styles (#681).
Also added Shavit_GetOrderedStyles ofc.
2019-02-24 17:05:39 +02:00
shavit
c767a375b3 Added sm_wipeplayer. (#568) 2019-02-24 15:54:52 +02:00
shavit
6fba2bca9c Added Shavit_DeleteReplay native. 2019-02-24 15:10:08 +02:00
shavit
a712c1daeb Fixed replay HUD time display issues for timescale styles (#689). 2019-02-22 21:21:59 +02:00
shavit
46f5d83c1a !replay now moves you to spectator (#739) 2019-02-22 14:35:32 +02:00
strafe
683e75c474 Remove semicolon after closing brace on enum structs
https://github.com/alliedmodders/sourcepawn/pull/319
2019-02-21 23:32:15 +00:00
shavit
5c0a7cd55c Fixed wrong flags and netprops for fake clients in checkpoints. 2019-02-02 01:02:33 +02:00
shavit
daa291f8ba Fixed attempts to teleport a kicked/non spawning central bot. 2019-02-01 22:57:43 +02:00
shavit
c265a257fe oops 2018-12-29 20:15:30 +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
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
3f7698f612 Merge branch 'master' into very_good_yes 2018-11-03 14:03:10 +02:00
shavit
ab56836314 added sourcetv checks to replay plugin 2018-11-03 10:26:23 +02:00
shavit
9442746a06 readability oops 2018-10-25 01:43:28 +03:00
shavit
fae99ff8d1 optimized replay writing to do less system calls 2018-10-25 01:42:17 +03:00
shavit
2e216dfad1 fixed replay sync when hitting thin teleports while ducking
tested in bhop_frankerz_999xl to see it doesnt randomly teleport, hope this is good
2018-10-25 01:38:04 +03:00
strafe
378fbda924 Fix newline 2018-10-18 21:10:08 +01:00
shavit
37413dd0d6 Shavit_OnReplayStart Shavit_OnReplayEnd #676 2018-10-10 19:33:52 +03:00
shavit
d1d594503e Dropped dynamic arrays for strings, unless necessary. 2018-09-23 04:16:23 +03:00
shavit
619e7da8f7 Made replay plugin not record more frames after going past time limit. 2018-09-22 23:49:48 +03:00
shavit
54c7e2daf4 Increased shavit_replay_timelimit's default to 2 hours 2018-09-22 23:39:39 +03:00
shavit
99bc8b2e59 Fixed memory leaking in shavit-replay. 2018-09-22 23:29:58 +03:00
shavit
81dbdedfba Added !deletemap (#668) 2018-09-15 17:26:11 +03:00
shavit
e6dc81ef59 Added shavit_replay_botweapon (#659) 2018-09-14 00:11:00 +03:00
shavit
b132ed4e08 pretend you didnt see this 2018-09-13 22:23:57 +03:00
shavit
be0b9e6c44 Added shavit_replay_botplususe (#660) 2018-09-13 22:23:29 +03:00
shavit
6ccecd8014 code duplication brothers 2018-06-26 19:27:48 +03:00
shavit
2286344b8f Removed frames ArrayList deletion. 2018-05-14 03:17:56 +03:00
shavit
a572b20b89 Made viewangle recording use verified angles instead. 2018-05-13 21:14:44 +03:00