Commit Graph

116 Commits

Author SHA1 Message Date
Herman Simensen
dec640f2b4
New timer method, tick fractions & StartReplay native (#931)
* Add Convar to restrict noclip in start zone

* remove unused translation file

* Require the enum struct size to be passed to natives

This should hopefully prevent Invalid memory access from plugins compiled on older version of the timer. If an enum struct is changed then plugins compiled on older version of the timer will be forced to be recompiled to match the version they are using.

* Fix save states not tracking preframes

Misc. name changes for natives. And a somehow possible exception fixed when getting a record.

* Add hitbox/center mass cvar (#930)

* Add optional cvar for player center of mass/player hitbox for touching zones

* 2.5.7a Final Changes

fix spelling mistake
add missing optional native
tabify spaces

* Tick offsets, new timing method

Added the tick fraction system from Momentum Mod. Timer is now run within ProcessMovement

* Add StartReplay Native

* Remove debug code

* remove extra gamedata

* Change Hook To Post.

* Increment version

Co-authored-by: KiD Fearless <kidfearless1@gmail.com>
Co-authored-by: Nairda <38843773+Nairdaa@users.noreply.github.com>
2020-07-08 18:00:28 -06:00
kidfearless
48f051f78c
Update very_good_yes from master (#932)
* Add Convar to restrict noclip in start zone

* remove unused translation file

* Require the enum struct size to be passed to natives

This should hopefully prevent Invalid memory access from plugins compiled on older version of the timer. If an enum struct is changed then plugins compiled on older version of the timer will be forced to be recompiled to match the version they are using.

* Fix save states not tracking preframes

Misc. name changes for natives. And a somehow possible exception fixed when getting a record.

* Add hitbox/center mass cvar (#930)

* Add optional cvar for player center of mass/player hitbox for touching zones

* 2.5.7a Final Changes

fix spelling mistake
add missing optional native
tabify spaces

Co-authored-by: Nairda <38843773+Nairdaa@users.noreply.github.com>
2020-07-07 17:37:17 -06:00
KiD Fearless
26c9f0381d Save the proper frame count to the replay files 2020-06-17 19:31:23 -06:00
KiD Fearless
8f0fd02f32 Merge branch 'very_good_yes' 2020-06-16 21:01:24 -06:00
KiD Fearless
2b16a8d2e9 Fix replay bots desyncing after WR 2020-06-16 20:49:45 -06:00
Nairda
469785b80c
Update to current api standards (#922) 2020-06-10 11:45:14 -06:00
Nairda
d1308939bd
Add dynamic timer difference (#921) 2020-06-10 11:16:15 -06:00
Nairda
f2ae4b050d
Fix hud error bug spam in server console and prespeed on replay (#918)
#BlameNairdaIfItBreaks
2020-06-05 22:00:53 -06:00
Nairda
dff6f61145
fix replay bug (#906)
Speculatory fix for "replay bug"
2020-05-05 08:19:54 -06:00
deadw1nter
e753b7bdd8
Remove extra prerun frame, Add dynamic time difference (#890)
* Make clearpreframe optional

* Remove extra prerun frame, Add dynamic time difference
2020-04-25 16:13:52 -06:00
KiD Fearless
1671f8380c Update FormatSeconds to handle negative time
* Remove shavit_hud_prerun_countdown

* Replace %with %%
2020-04-10 11:38:31 -06:00
deadw1nter
91f83e2c2a
Clean up prerun code + Add prerun countdown to hud (#886)
* remove timer preframe variables

* Prerun should only record when you are in start zone

* Make clearpreframe optional

* add prerun countdown to hud
2020-04-10 09:57:21 -06:00
KiD Fearless
3846122367 Change language of prerun convar 2020-04-07 14:16:59 -06:00
deadw1nter
db5ee570f0
Prerun should only record when you are in start zone (#885)
* Make clearpreframe optional
2020-04-07 14:12:32 -06:00
KiD Fearless
9affa982cf remove shavit_replay_maxlength_instart 2020-04-06 10:29:24 -06:00
KiD Fearless
94693fc6d8 overwrite older preframes instead of clearing them upon reaching the max list limit 2020-04-04 13:28:30 -06:00
KiD Fearless
8650fe86b7 always return the actual run time 2020-04-04 12:39:27 -06:00
Nairda
986ebcd427
segmented prespeed fix (#883)
* Update shavit-misc.sp

* Update shavit-replay.sp

* Update shavit.inc

* Update shavit.inc

* Update shavit-misc.sp

* Update shavit-replay.sp
2020-04-04 11:17:31 -06:00
deadw1nter
d8fbcbb780 Implement prerun feature for replay (#882)
* Implement prerun feature for replay

* Update shavit-replay.sp

* Update shavit-replay.sp

* Using blacky's method to handle prerun

I know it is kinda copy-pasta, but it is the best way that I can come up with :(

* I suck at naming 👎
2020-04-02 14:15:19 -06:00
KiD Fearless
53d71509bd Merge branch 'very_good_yes' 2020-03-07 00:47:10 -07:00
Kyle
e75617e191 Fix admin menu
Fix for adminmenu late load or reload
2020-03-07 13:28:31 +08:00
KiD Fearless
ec5888d1f6 Changed pragma dynamic to allow for longer replay bots 2020-02-24 11:20:43 -07:00
KiD Fearless
3283a26d45 Added Convar_class methodmaps for timer convars 2020-01-22 17:16:37 -07:00
KiD Fearless
0313239eed Add check for unset timescales 2019-12-20 11:22:07 -07:00
KiD Fearless
32e994aa18 Added dynamic timescales.
Start zone will no longer enforce 1.0 style speed.
2019-12-19 11:53:21 -07:00
KiD Fearless
c42d14f46d Added Shavit_OnTrackChanged and Shavit_OnReplaysLoaded 2019-12-18 12:14:22 -07:00
KiD Fearless
b2abc371ab Fix Shavit_GetReplayBotCurrentFrame 2019-11-24 11:12:54 -07: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