Commit Graph

576 Commits

Author SHA1 Message Date
KiD Fearless
596c631861 Revert "begin moving persist replay frames out of shavit-misc"
This reverts commit d2cfeeebda.
2020-10-04 07:47:56 -06:00
KiD Fearless
d92084b995 Revert "remove replay data from shavit-misc"
This reverts commit 5ad62fa1fd.
2020-10-04 07:42:46 -06:00
KiD Fearless
bdc600fedb Wrap dynamic time difference in shavit-replay library check 2020-08-09 14:01:20 -06:00
KiD Fearless
5ad62fa1fd remove replay data from shavit-misc 2020-08-09 13:57:34 -06:00
KiD Fearless
d2cfeeebda begin moving persist replay frames out of shavit-misc 2020-08-09 13:49:54 -06:00
KiD Fearless
697cb409f1 Add enabled convar for shavit-timelimit 2020-08-05 19:10:15 -06:00
KiD Fearless
65f9f8da4a Add round start fix to shavit-timelimit, Enabled by default 2020-08-05 18:59:03 -06:00
KiD Fearless
bcc63e13b1 Added Shavit_OnPlaySound and shavit_sounds_enabled 2020-08-05 18:36:26 -06:00
Nairda
533f3bccc9
Add delete checkpoint & convert checkpoints to lists (#946)
* Update shavit-misc.phrases.txt

* Update shavit-misc.sp

* remove debug lines

* Update shavit-misc.phrases.txt

* Update shavit-misc.sp

* Works.

deadwinter Today at 17:44
i fixed it myself
so
it is safe to merge now
@KiD

* Add forward for when checkpoints are deleted

* Adjust OnTeleport forward to match other checkpoint natives

* Create function for DeleteCheckpoint. Added documentation.

Co-authored-by: KiD Fearless <kidfearless1@gmail.com>
2020-08-03 17:41:52 -06:00
KiD Fearless
f417730b01 fixup GetClosestReplayTime part 1 2020-08-02 21:13:52 -06:00
KiD Fearless
f103255b7e Merge branch 'very_good_yes' of https://github.com/shavitush/bhoptimer into very_good_yes 2020-07-29 20:45:05 -06:00
KiD Fearless
9a96ca461f Add sanity check for zone offsets 2020-07-29 20:45:02 -06:00
Nairda
8fa69f9667
fix another typo (#947) 2020-07-29 17:14:10 -06:00
KiD Fearless
55abd218fc Fix Typo 2020-07-29 12:18:05 -06:00
KiD Fearless
03775a910f Add convar for max search length for dynamic time differences 2020-07-25 19:48:55 -06:00
KiD Fearless
1e53a1ab81 Optimize Shavit_GetClosestReplayTime 2020-07-25 19:41:51 -06:00
KiD Fearless
8fe630f7c3 Add convar to enable and disable dynamic time differences 2020-07-23 19:55:55 -06:00
KiD Fearless
4415ea4ead re-implement z-axis check for start zone offset calculation 2020-07-22 19:51:45 -06:00
KiD Fearless
3c345790a5 fix bhopstats include for latest sm 2020-07-22 17:50:03 -06:00
KiD Fearless
12acb77318 #939 Move tick calculations outside of EndTouch event 2020-07-22 17:49:22 -06:00
KiD Fearless
fbb055bbd8 add ProcessMovement forwards 2020-07-22 17:41:01 -06:00
KiD Fearless
f0ecfaf2a7 Add preframe sanity check 2020-07-11 16:58:26 -06:00
KiD Fearless
22ff805d4f #888 Add Convar for hud settings
also fix compile cause @nairdaa didn't test and neither did I.
2020-07-10 23:26:55 -06:00
Dustin
06aa539d9e
Added Shavit_GetClientCompletions (#908)
* Added Shavit_GetClientCompletionss

* Misc. changes

Co-authored-by: KiD Fearless <kidfearless1@gmail.com>
2020-07-10 22:01:28 -06:00
Nairda
aa5d688ce1
add hud perf settings (#934)
* 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>
2020-07-10 21:55:00 -06:00
KiD Fearless
6ca4396163 Don't compile debug messages, Fixup naming 2020-07-10 21:47:01 -06:00
KiD Fearless
436db49ed1 Debug code only in debug mode 2020-07-10 21:21:42 -06:00
hermansimensen
3c938dd20d small change 2020-07-11 03:06:01 +02:00
hermansimensen
a6f0af27c0 Update natives 2020-07-11 00:26:17 +02:00
hermansimensen
fb5e657fc3 add distance to forward 2020-07-10 23:17:23 +02:00
hermansimensen
3baca9aaf8 new forwards, and native changes
Also added support for checkpoints
2020-07-10 23:10:44 +02:00
hermansimensen
6a4d383cd7 Change trace method to hull 2020-07-10 21:54:48 +02:00
hermansimensen
8005b3fd6d Fix offsets, add offset natives for styles like TAS
Also doesn't calculate offsets when NoZAxisSpeed is set to 0 and player is jumping from within the startzone, as requested by rumour.
2020-07-10 18:06:43 +02:00
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
b2057fcf7b Fix missed merge conflict 2020-06-16 21:04:02 -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
KiD Fearless
97eb4bfc00 re-add silly percentage 2020-06-16 19:32:06 -06:00
Nairda
54a53db13b
nairda bad-Fix FormatSeconds stock (#923) 2020-06-14 15:26:28 -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
747e79f922
eh! (#920)
* 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
2020-06-09 09:46:20 -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
15942d05ff properly fix perf jumps 2020-04-24 13:18:07 -06:00
Nairda
606e3e70c0
removed the debug lines
they were only for you to see what I did to test the stuff
2020-04-21 03:12:48 +02:00
hermansimensen
35b608af88 Fix timescale being reset to styles default
This new line will fix the native Shavit_SetClientTimescale by not
resetting the timescale of the player to the style default after each
jump
2020-04-15 21:36:51 +02:00