changed natives:
Shavit_OnReplayStart, Shavit_OnReplayEnd, Shavit_GetReplayBotFirstFrame, Shavit_GetReplayBotIndex,
Shavit_GetReplayBotCurrentFrame, Shavit_GetReplayTime, Shavit_GetReplayStatus, Shavit_StartReplay
added natives:
Shavit_IsReplayEntity
thanks carnifex for telling me how to make replay props
Shavit_GetClosestReplayTime(client, style, track) -> Shavit_GetClosestReplayTime(client)
+ Shavit_GetClosestReplayStyle(client)
+ Shavit_SetClosestReplayStyle(client, style) // to be used eventually for allowing you to change replay style to compare to
+ Shavit_GetClosestReplayVelocityDifference(client, threeD)
+ shavit_replay_timedifference_tick
* useless pr, but KiD asked for it
added braces
* yesn't
updated to match the solid very good yes coding style
also, added extra two empty lines at the bottom just in case anything breaks
* cleanup GetTrackName()
* a few more changes to change mod_zone_bonus & add Track_Bonus_Last
* fix undefined symbol sTrack
* fixup !bwr for multiple bonuses
* fix GetTrackName() after I broke it
* add bonus number param to help text of sm_bwr
* fix !wr after I broke it adding !bwr [bonus number]
* ignore checkpoint zones for now because nothing is ready for them
* update points for bonus #2 through #8 at same time
so instead of something like `9 (track count) * 22 (style count)` queries, it'll do `3 (main, bonus1, rest of bonuses) * 22 (style count)` queries and the rest of the bonuses on the recalc all in the same query
dynamic time difference is now disabled by default, and will be using a shortened convar name. it is reccomended that if you do use the cheap method to set it to 2 or 3 as not having an early reference point was the main cause for time skipping.
* add hud perf settings
added option to enable/disable perf ratio from scroll styles
TODO later:
- add an option to move perf ratio from right hud to main hud.
* Update shavit-hud.sp
* Update shavit-hud.sp
* fix tabbing
Co-authored-by: KiD Fearless <kidfearless1@gmail.com>
* 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>
* Update shavit-misc.sp
* Update shavit-replay.sp
* Update shavit.inc
* Update shavit-misc.sp
* tested... my ass
fuck you sourcemod
* award goes to deadwinter again
L 06/03/2020 - 00:30:18: [SM] Exception reported: Invalid index 47081 (count: 3743)
L 06/03/2020 - 00:30:18: [SM] Blaming: shavit-replay.smx
L 06/03/2020 - 00:30:18: [SM] Call stack trace:
L 06/03/2020 - 00:30:18: [SM] [0] ArrayList.Get
L 06/03/2020 - 00:30:18: [SM] [1] Line 1806, D:\steamcmd\css\cstrike\addons\sourcemod\scripting\shavit-replay.sp::OnPlayerRunCmd
Bug fixed.
* oops
* even more bugs ok
* Update shavit-hud.sp
> just merge it, trust me im clueless
- Nairda
* 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 👎
[Promising] Promises : cud u make a setting to disable this:
[Promising] Promises : [ Timer ] WARNING: You're now in practice mode. Your times WILL NOT be saved and will be only displayed to you!
Who to show in the spectators list?
* 0 - everyone
* 1 - all admins (admin_speclisthide override shavit_misc_speclist to bypass)
* 2 - players you can target
* Added `oldtime` and `perfs` parameters for forwards that missed them.
* Added `iMeasuredJumps` and `iPerfectJumps` to snapshots.
* Added a database migration to add `perfs` column.
* Added perfect jumps% to CS:S keyhint HUD. Not necessary in CS:GO due to annoying limitations.
* Added perfect jumps% to WR menu.
* Added `Shavit_GetPerfectJumps` native.
* Removed some clutter from center HUD.
* Added display for non-default tracks.
* Removed pause text, but changed the time's color when paused.
* Very minor optimization.
* Changed the HUD update speed to avoid skips.
* Adjusted spacing of the zone HUD to look better in CS:GO.
I think these changes look fine, I hope everyone enjoys them.