Commit Graph

157 Commits

Author SHA1 Message Date
rtldg
17847d7cb0 add more setstart cmds, add anglesonly for floating bonuses, add missing create table, fix some sql ordering 2021-03-11 09:37:48 +00:00
rtldg
96ee05b5aa add sm_main/sm_m 2021-03-11 08:20:18 +00:00
BoomShot
e6b3baae81 Maintain user's current track when restarting
Previously, the timer would send you to the main start zone every time a player used sm_r, so now it'll send them to their respective track.
2021-03-11 00:00:30 -05:00
rtldg
ad9581ce2e add sm_b%d for bonuses and sm_s%d for stages 2021-03-11 02:09:23 +00:00
rtldg
e08a1bf952 rename player_speedmod_AcceptInput to DHook_AcceptInput_player_speedmod 2021-03-08 22:27:37 +00:00
rtldg
6db6b5f3cf fix player_speedmod & timescaled styles interacting 2021-03-08 01:52:08 +00:00
rtldg
ee11fa10d4 add Shavit_DeleteWR. refactor run deletion & wipeplayer 2021-03-04 05:53:41 +00:00
rtldg
9d26e5cddb add sm_fling back for testing whoops 2021-03-04 05:29:28 +00:00
Joe
b62352835f
Merge branch 'very_good_yes' into delete_replay 2021-03-01 02:12:30 +00:00
Joe
d3eede84f8
no sm_fling in timer 2021-03-01 02:01:12 +00:00
Joe
27dfcd740f add timestamp to finish-forwards. add Shavit_ShouldSaveReplayCopy and Shavit_OnReplaySaved 2021-02-27 19:39:21 +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
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
deadw1nter
32336e5ab6 Merge remote-tracking branch 'upstream/very_good_yes' into delete_replay 2021-02-24 10:44:29 +08:00
Joe
d4893ec713 add Shavit_GetAvgMaxVelocity() and hope for best 2021-02-23 05:32:13 +00: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
KiD Fearless
590b70dd2f Sent players movetype to none to prevent movement processing, don't allow paused players to finish the map
Thanks acer for the report
2021-01-13 10:22:18 -07:00
KiD Fearless
dc57d481f8 Change Shavit_GetStyleStrings to use style keys 2020-12-29 11:12:31 -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
kidfearless
1011629ec4 Add helper natives for Shavit_GetStyleSetting 2020-12-04 07:36:24 -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
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
KiD Fearless
06addf326f Implement the ProcessMovment forwards 2020-11-23 13:56:30 -07:00
KiD Fearless
069450d443 remove unused variable 2020-11-22 09:54:34 -07:00
KiD Fearless
7a3efcfe6b Revert "Remove The Loop"
This reverts commit 60599ee95d.
2020-11-21 14:33:04 -07:00
KiD Fearless
60599ee95d Remove The Loop 2020-11-20 17:46:26 -07:00
kidfearless
c52c3c3e79
Add account id validation when deleting replays
* Fixed bugs

* Make it optional

* no empty line

* Update shavit-core.sp

* How can I didn't notice this before
2020-11-10 12:40:53 -07:00
KiD Fearless
b20a2c6762 Update documentation and change some verbage 2020-11-10 12:40:06 -07:00
Joe
8a36caaa14
don't set FL_ATCONTROLS when dead/spec so you can freecam while paused (#968)
* don't set FL_ATCONTROLS when dead/spec so you can freecam while paused...

* fix formatting

Co-authored-by: KiD Fearless <kidfearless1@gmail.com>
2020-10-15 09:10:28 -06:00
Herman Simensen
35878fc81d
Fix offset bug and add GetStageZone native (#948)
* fix bug and add GetStageZone native

* Update Native

Now preloads stage zone data on map start.
2020-10-04 07:54:48 -06:00
Q
1e737ebd05 Update shavit-core.sp 2020-08-20 12:16:07 +08:00
Q
d4d51c752d Fixed bugs 2020-08-20 09:44:27 +08:00
KiD Fearless
9a96ca461f Add sanity check for zone offsets 2020-07-29 20:45:02 -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
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
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