rtldg
a186e25b4e
save cps on disconnect. fix ->spec->rejoin->lose pos. merged savestate stuff into persistent_data_t stuff
2021-03-02 18:17:10 +00:00
rtldg
62862ec2b5
fix persistent_data_t frames being cleared early
2021-03-02 03:12:25 +00:00
rtldg
14741a66c1
this stuff is stored in the timer_snapshot_t
2021-03-02 02:37:25 +00:00
Joe
025e35397b
Merge pull request #1020 from rtldg/replay-file-stealing2
...
add timestamp to finish-forwards. add Shavit_ShouldSaveReplayCopy and Shavit_OnReplaySaved
2021-03-01 02:05:02 +00:00
Joe
7a27fe262f
Merge pull request #1018 from hermansimensen/very_good_yes
...
Fixed bad replay timer playback.
If any plugin changes the tickrate of the server (i.e Tickrate Control by Rostu), the playback of the replay's timer might be at the wrong speed. To fix this we just make sure gF_Tickrate is up to date when starting the replay.
2021-03-01 02:04:06 +00:00
rtldg
020a218fa6
lowercase parameters in shavit.inc
2021-02-28 21:03:16 +00:00
rtldg
0e5eef338d
newline + path -> sPath
2021-02-28 00:38:47 +00:00
Joe
27dfcd740f
add timestamp to finish-forwards. add Shavit_ShouldSaveReplayCopy and Shavit_OnReplaySaved
2021-02-27 19:39:21 +00:00
Nairda
5730148d0a
add brackets ( #1019 )
2021-02-27 18:49:15 +00:00
Joe
a6ff5dd94c
Avg and max velocity ( #1017 )
...
Adds Shavit_GetAvgVelocity(), Shavit_GetMaxVelocity(), Shavit_SetAvgVelocity(), Shavit_SetMaxVelocity().
Adds `float avgvel, float maxvel` to Shavit_OnWorldRecord, Shavit_OnFinish_Post, Shavit_OnFinish, Shavit_OnWorstRecord.
Adds avg/max velocity to cp_cache_t and timer_snapshot_t
Prints avg/max velocity to run-finish message.
2021-02-27 18:33:07 +00:00
hermansimensen
423c7299d3
Fix bad replay playback time.
2021-02-26 21:53:56 +01:00
Joe
4b97af25d8
add avg/max velocity to run completion message
2021-02-26 20:41:58 +00:00
Joe
ee2ed22af0
fix forward param count
2021-02-26 19:25:35 +00:00
Joe
f869498af3
fuck
2021-02-26 19:19:51 +00:00
Joe
e38eceedbe
remove preframes from avg vel calc
2021-02-26 19:17:32 +00:00
Joe
5351e49e76
spread avg/max velocity into as many places as possible
2021-02-26 18:28:40 +00:00
Joe
7b2fb3be65
store avg/max velocity in persistent data & cpcache
2021-02-26 17:53:42 +00:00
Joe
71e804420c
change avg/max velocity to work off frames
2021-02-26 17:34:29 +00:00
Joe
07e07fd7c8
fix typos for avg/max velocity
2021-02-26 02:46:08 +00:00
KiD Fearless
f84e271c55
Add SetStyleSetting Natives #877
2021-02-25 18:28:08 -07:00
GAMMACASE
e091c186fe
Fixed queries to support mysql v8 ( #1015 )
2021-02-26 00:42:30 +00:00
Joe
d4893ec713
add Shavit_GetAvgMaxVelocity() and hope for best
2021-02-23 05:32:13 +00:00
Joe
df8b64d1b3
add Shavit_GetTimesTeleported() ( #1012 )
...
* add Shavit_GetTimesTeleported()
* add Shavit_GetTimesTeleported() to the optional native section
* Use ++ instead of += 1
Co-authored-by: KiD Fearless <kidfearless1@gmail.com>
2021-02-21 17:26:30 -07:00
Joe
183db7c1a9
remove diy GetRandomInt ( #1013 )
2021-02-21 16:57:55 -07:00
Joe
4087ba778d
block s on regular hsw (so you can't shsw...) ( #973 )
...
* block s on regular hsw (so you can't shsw...)
* block shsw on hsw while still allow S to stop
* also remove IN_FORWARD when removing IN_BACK
i hope these commits are squashed so nobody sees these
* remove unnecessary bStop variable for shsw
2021-02-21 16:20:55 -07:00
Nairda
6554740254
useless pr, but KiD asked for it ( #1007 )
...
* 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
2021-01-24 19:46:03 -07:00
GAMMACASE
f2e1ad9706
Delete frames from cpcache on entry deletion ( #1001 )
...
* Delete frames from cpcache on entry deletion
* Handle few more cases
* One more case
2021-01-08 06:24:59 -07:00
KiD Fearless
976fc90d87
Speculatory exploit fix
2021-01-06 13:47:19 -07:00
KiD Fearless
dc57d481f8
Change Shavit_GetStyleStrings to use style keys
2020-12-29 11:12:31 -07:00
KiD Fearless
00029d4bc7
Merge branch 'master' into very_good_yes
2020-12-20 18:52:59 -07:00
KiD Fearless
88ede8d55c
wrong team...
2020-12-20 18:52:37 -07:00
KiD Fearless
fcddaba475
Merge branch 'master' into very_good_yes
2020-12-20 18:33:29 -07:00
kidfearless
f7c878b8f1
Fix exploit allowing extra height on spawn
2020-12-20 18:29:17 -07:00
kidfearless
f997d4e544
implement force_timescale in configs
2020-12-14 15:12:22 -07:00
kidfearless
b2da978f73
re-work shavit-core to use GetStyleSetting stocks. Log error when using Shavit_GetStyleSettings.
2020-12-14 15:02:59 -07:00
Nairda
1475e1b31f
csgo menu fix ( #995 )
...
* csgo menu fix
* Update shavit-misc.sp
* csgo menu fix
works according to GAMMACASE
* Update shavit-misc.sp
* editing shit via git website is cancer
* Update shavit-misc.sp
2020-12-06 20:16:33 -07:00
kidfearless
7c5298f721
fixup compile errors
2020-12-04 07:51:23 -07:00
kidfearless
200ffd16f8
Removed shavit_getstylesettings from shavit-wr
2020-12-04 07:48:57 -07:00
kidfearless
3cd45238bc
Removed shavit_getstylesettings from shavit-misc
2020-12-04 07:45:27 -07:00
kidfearless
1835573a70
Removed shavit_getstylesettings from shavit-stats
2020-12-04 07:39:09 -07:00
kidfearless
1011629ec4
Add helper natives for Shavit_GetStyleSetting
2020-12-04 07:36:24 -07:00
kidfearless
ec85dae24f
Removed shavit_getstylesettings from shavit-rankings
2020-12-04 07:17:14 -07:00
kidfearless
98af2b4a51
Removed shavit_getstylesettings from shavit-replay
2020-12-04 07:12:04 -07:00
kidfearless
2f48ddb85a
Removed shavit_getstylesettings from shavit-hud
2020-12-04 07:01:06 -07:00
kidfearless
69efd6c5e8
use smcparser for style loading
2020-12-04 06:49:15 -07:00
kidfearless
db27bdce14
Added Shavit_GetStyleSetting, deprecated Shavit_GetStyleSettings
2020-12-01 08:43:06 -07:00
Joe
a1e60b39fa
Multiple bonuses ( #982 )
...
* 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
2020-11-30 09:40:45 -07:00
Joe
080c64f8b9
fix ApplyFlags for the replay bot ( #977 )
2020-11-30 09:37:11 -07:00
Joe
3d670a7812
allow !resume when not on the ground ( #966 )
...
* allow !resume when not on the ground
* block !pause if moving / velocity != 0.0
2020-11-30 09:36:05 -07:00
Joe
f69f761685
only print the stage time message once per stage ( #965 )
...
* only print the stage time message once per stage
* show stage message every time when segmenting
* add missing Shavit_OnStageMessage forward include
2020-11-30 09:35:40 -07:00