Commit Graph

431 Commits

Author SHA1 Message Date
rtldg
f79335270d add Shavit_GetReplayCacheName 2021-08-12 15:03:27 +00:00
rtldg
3f14b65cc4 add Shavit_OnRestartPre 2021-08-12 12:46:50 +00:00
rtldg
fc8b78ae43 make sure StartReplayFromFile uses delay and fix hud time for customframes 2021-08-11 13:20:42 +00:00
rtldg
6b7f187090 make mp_humanteam always apply 2021-08-08 22:40:34 +00:00
rtldg
2d168ddb1f add missing parameters to function declaration 2021-08-08 15:55:16 +00:00
rtldg
eba15ccf72 trim lines in convar_class so potentially remove erring crlfs 2021-08-08 15:55:15 +00:00
rtldg
6c5be61344 try to consistently use lowercase mapnames and PLATFORM_MAX_PATH for mapname buffers 2021-08-08 15:55:09 +00:00
rtldg
b68aba6fd2 reorganize some things to stop looping so much when a player joins 2021-08-01 18:07:06 +00:00
rtldg
8a8db13c4a gH_SQL might be null in OnMapEnd after server-restart 2021-07-31 05:50:56 +00:00
rtldg
32658a029d bump to 3.0.1 and touch convar_class.inc & dhooks.inc so they reindex 2021-07-30 08:27:53 +00:00
rtldg
13c60c6b52 update eventqueuefix header 2021-07-29 21:38:15 +00:00
rtldg
506076723f try to improve timer accuracy by using ticks*tickinterval instead of time+=gameframetime 2021-07-29 00:25:02 +00:00
rtldg
aff3f95813 add shavit_misc_experimental_segmented_eyeangle_fix 2021-07-28 06:11:16 +00:00
rtldg
7b75eea957 add Shavit_OnStartPre and ignore Shavit_OnStart return value 2021-07-27 08:12:03 +00:00
rtldg
e6de599808 replay changes. renamed natives, version bump, implementation changes
>Renames:
framecache_t -> frame_cache_t
Shavit_GetReplayBotFirstFrame -> Shavit_GetReplayBotFirstFrameTime
Shavit_GetReplayPreFrame -> Shavit_GetReplayPreFrames
Shavit_GetReplayPostFrame -> Shavit_GetReplayPostFrames
Shavit_GetReplayCachePreFrame -> Shavit_GetReplayCachePreFrames
Shavit_GetReplayCachePostFrame -> Shavit_GetReplayCachePostFrames
Shavit_GetPlayerPreFrame -> Shavit_GetPlayerPreFrames

>Removed:
Shavit_GetPlayerTimerFrame
Shavit_SetPlayerTimerFrame
cp_cache_t.iTimerPreFrames

Replay format version bumped to distinguish old replays that had a bad iFrameCount from postframes.

Some unnecessary ArrayList writing in SaveReplay() has been removed.

shavit-replay.sp:Shavit_OnStart should be more readable now and will also hopefully now prevent some situations where script-execution could time-out due to wiping lots of frames.

Replay bots will now freeze at the end of a replay more smoothly now and not teleport for the last frame.
2021-07-25 16:29:29 +00:00
rtldg
08c8c00f53 change UnpackSignedShorts sign-extending 2021-07-25 10:47:41 +00:00
rtldg
e1dac1697a have Shavit_OnTopLeftHUD run even when there's no WR 2021-07-23 16:20:18 +00:00
rtldg
ec3e4d2d84 add angle diff to Shavit_GetReplayButtons 2021-07-23 09:15:23 +00:00
rtldg
435a23f065 move avg/max vel & perfs to another message so the buffer doesn't get cut off anymore 2021-07-23 08:54:57 +00:00
rtldg
debbf4d87e add Shavit_GetLoopingBotByName 2021-07-23 05:55:18 +00:00
rtldg
4f704a2fe4 -1 all completions in the db 2021-07-22 10:49:16 +00:00
OliviaMourning
af8ab48fc9 add shavit_core_pause_movement stuff
Co-authored-by: rtldg <55846624+rtldg@users.noreply.github.com>
2021-07-22 08:49:55 +00:00
rtldg
a6be0127ee add exact_time_int to playertimes to deal with floating point imprecision 2021-07-11 07:16:00 +00:00
rtldg
7757c9330d mask mousexy more and rename UnpackFrameShorts to UnpackSignedShorts 2021-07-10 04:32:46 +00:00
rtldg
418676d26c add cheapCloneHandle parameter to Shavit_GetReplayFrames 2021-07-10 03:15:47 +00:00
rtldg
9a0dd7f986 add mouse x/y & forwardmove/sidemove to replay file 2021-07-09 13:20:38 +00:00
rtldg
3024982fe1 add SteamIDToAuth stock 2021-07-07 01:46:33 +00:00
rtldg
28e9d4029b add postframes 2021-07-04 10:09:16 +00:00
rtldg
d6d5697ebc Update convar_class.inc to replace backslashes with forwardslashes so trying to create config files doesn't fail if you nest plugins into subfolders 2021-06-22 22:02:26 +00:00
rtldg
dad25f97cb rename parameter for SetReplayData and GetReplayData 2021-06-18 19:10:50 +00:00
rtldg
02fb3e2f7e unadd chatstrings_t parameter from Shavit_OnChatConfigLoaded because it's not worth having 2021-05-29 02:03:21 +00:00
rtldg
c9e0f5de1c bump SHAVIT_VERSION to 3.0.0 and hide Shavit_GetStagePB for now 2021-05-25 09:42:26 +00:00
rtldg
fc37d22f1d fix parameter ordering in Shavit_GetReplayBotIndex 2021-05-23 16:03:22 +00:00
rtldg
36c395dde7 rename Shavit_GetReplayBotLength to Shavit_GetReplayCacheLength 2021-05-23 15:46:05 +00:00
rtldg
dbe9b9bffb rename Shavit_GetReplayBotFrameCount to Shavit_GetReplayCacheFrameCount 2021-05-23 15:42:35 +00:00
rtldg
fb7d36cc18 rename fLadderNormal to vecLadderNormal 2021-05-23 12:39:59 +00:00
rtldg
8f8b29b377 use eventqueuefix's event pausing when possible 2021-05-09 01:14:52 +00:00
rtldg
3be13005e6 add chatstrings_t param to Shavit_OnChatConfigLoaded. add Shavit_GetStyleStringsStruct. add Shavit_GetChatStringsStruct. 2021-05-08 13:00:19 +00:00
rtldg
cdc0c651b9 make Shavit_PrintToChatAll a native so it can use gB_StopChatSound 'better' 2021-05-06 02:15:05 +00:00
rtldg
f838cfdfc6 misc FormatSeconds change 2021-05-06 01:39:35 +00:00
rtldg
94a27a954e add Shavit_GetClientLastStage, Shavit_GetStageWR, and Shavit_GetStagePB 2021-05-01 00:42:41 +00:00
rtldg
96281d2f85 more wip stage stuff 2021-04-30 07:06:18 +00:00
BoomShot
2697e6c5b1 boomshot stages stuff
Move remaining shavit-rankings dependent calls (#1043)

If the shavit-rankings plugin isn't loaded, the calls to its natives will cause an exception and the client's messages will not be formatted correctly.

Add native for getting the number of stages

Implemented native for getting number of stages and allowed practice mode to view stage times.

Added WR stage time comparisons for when a user enters a stage zone.

It's important that the stage zone number starts at two. It may be preferred to remove the user input of stage numbers and just auto increment as stages are added. Stage 1 should be the start zone and just have any additional stages increment from there. I'll readdress this if it's necessary.

Add translations for WR stage time comparison messages

Accidentally undid a change from a previous commit.

I didn't have a merge conflict, so I'm unsure why it got replaced.

Combine stage time translations into one

Implemented suggestions to translations and changed the stagetimes table

The stagetimes table no longer uses auth as a primary key, so it will now replace the old WR stage time.
However, the auth is still stored, so it can be used to reference the player and potentially a players PB.

Update callback name for replacing stage time for logging.
2021-04-19 15:49:47 +00:00
rtldg
7a8c735a28 stop duplicating replay frame buffer when persisting data 2021-04-11 19:37:01 +00:00
rtldg
57e9072b19 remove bot_quota, disable it, and call BotAddCommand directly 2021-04-11 01:20:06 +00:00
rtldg
cb39acc33b remove stylesettings_t and break 3rd party plugins 2021-04-08 21:19:18 +00:00
rtldg
5c772b06e3 hopefully fix checkpoint timescale stuff 2021-04-07 17:21:53 +00:00
rtldg
efea62a023 mark some forgotten natives as optional 2021-04-07 15:37:14 +00:00
rtldg
bbca665d4f fix errors i made 2021-04-07 14:44:42 +00:00
rtldg
a0a74b8eaa too tired for commit messages but i promise this is a good one and if you're not satisfied then we will fully refund your purchase of the bhoptimer 2021-04-07 05:36:15 +00:00
rtldg
d272aae97b bad thing to not let you pause while crouching 2021-04-06 18:10:59 +00:00
rtldg
6113b0c3dc checkpoint code churn 2021-04-05 18:03:19 +00:00
rtldg
7ce9878a50 fix some errors 2021-04-02 19:11:34 +00:00
rtldg
7d6d906060 moving some stuff from stats to rankings
shavit_stats_mvprankones -> shavit_rankings_mvprankones
shavit_stats_mvprankones_maintrack -> shavit_rankings_mvprankones_maintrack
Shavit_GetWRCount, Shavit_GetWRHolders, and Shavit_GetWRHolderRank now in shavit-rankings.sp
2021-04-02 18:15:00 +00:00
rtldg
4dbb371d4f forgot closestpos.inc 2021-04-02 15:14:26 +00:00
rtldg
9c54cd733c maybe working eventqueuefix segmented checkpoint integration 2021-03-29 17:18:26 +00:00
rtldg
01c0ab9639 preemptively add some stuff for the next replay version format 2021-03-25 04:57:17 +00:00
rtldg
56c3b2af00 +some natives +less resizing for player frames arraylist 2021-03-25 02:05:25 +00:00
rtldg
19c5ccb7f3 add sm_ccadd and sm_ccdelete 2021-03-22 09:42:03 +00:00
rtldg
916f141c48 rename some variables and stuff 2021-03-22 06:45:02 +00:00
rtldg
8d4ffd443b ReplayStatus/ReplayType -> int. +Shavit_StartReplayFromFrameCache(), +Shavit_StartReplayFromFile(). change replay file reading so i can have a replayfile_header_t which can be used to read stuff in DeleteReplay easier 2021-03-22 05:59:33 +00:00
rtldg
cb63c59352 add Shavit_GetReplayButtons() and fix error in #1033 2021-03-21 09:16:07 +00:00
rtldg
e9db6dcb02 add Shavit_GetReplayStarter 2021-03-21 02:10:41 +00:00
rtldg
9e43f67fc3 add looping, dynamic, and prop replay bots
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
2021-03-19 03:03:24 +00:00
rtldg
8b48ae8c91 add velocity difference
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
2021-03-13 08:19:51 +00:00
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
BoomShot
35206c7ded Add missing parameter to SetStart native 2021-03-11 00:34:51 -05:00
BoomShot
21cd90597b Add Natives for SetStart/DeleteSetStart 2021-03-10 23:58:32 -05:00
Nairda
687cb0a96a Update dhooks.inc 2021-03-09 08:04:04 +00:00
KiD Fearless
f93a47742b Update version 2021-03-07 14:21:01 -07:00
rtldg
65f58219bd misc changes & stockify GetSpectatorTarget 2021-03-07 03:25:56 +00:00
rtldg
3ca87e27c8 new natives & chat rank stuff & translations
natives:
Shavit_GetWRCount(client) -> Shavit_GetWRCount(client, track, style, usecvars)
Shavit_GetWRHolders(track, style, usecvars)
Shavit_GetWRHolderRank(client, track, style, usecvars)

configs/shavit-chat.cfg:
added w (WR Count) and W (rank out of WR holders) to ranks prefix options
added {pts}, {wrs}, and {wrrank}

translations/shavit-chat.phrases.txt:
added a lot here... make sure you update your #format, parameter numbers, and translations...
2021-03-06 09:14:35 +00:00
rtldg
0caa746290 initial DynamicChannels stuff 2021-03-04 10:31:11 +00:00
rtldg
ee11fa10d4 add Shavit_DeleteWR. refactor run deletion & wipeplayer 2021-03-04 05:53:41 +00:00
Joe
83b82f2355
Merge pull request #1016 from deadw1nter/delete_replay
Add map name check to DeleteReplay
2021-03-04 05:19:20 +00:00
rtldg
720ddeed1d add Shavit_GetPlainChatrank. add {cr} to shavit_misc_clantag 2021-03-02 22:05:03 +00:00
rtldg
41f62f0a8f add the steamid to cpcache so segmented checkpoints don't keep starting in practice mode 2021-03-02 18:56:13 +00:00
rtldg
14741a66c1 this stuff is stored in the timer_snapshot_t 2021-03-02 02:37:25 +00:00
Joe
b62352835f
Merge branch 'very_good_yes' into delete_replay 2021-03-01 02:12:30 +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
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
6ae4ce15d9 Add mapname param to OnWRDeleted 2021-02-24 20:04:34 +08: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
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
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
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
kidfearless
91585c2fd1 Update version to signify dev builds 2020-11-30 09:33:36 -07:00
KiD Fearless
06addf326f Implement the ProcessMovment forwards 2020-11-23 13:56:30 -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
c40ab49fac
Wr suggestions (#972)
* make !wr say map not found when map not found...

* use translation string for 'map was not found'

* stockify GuessBestMapName() and also use in sm_tier

* fix formatting

Co-authored-by: KiD Fearless <kidfearless1@gmail.com>
2020-10-17 15:41:43 -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
d4d51c752d Fixed bugs 2020-08-20 09:44:27 +08: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
3c345790a5 fix bhopstats include for latest sm 2020-07-22 17:50:03 -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
KiD Fearless
6ca4396163 Don't compile debug messages, Fixup naming 2020-07-10 21:47:01 -06: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
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
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
Nairda
54a53db13b
nairda bad-Fix FormatSeconds stock (#923) 2020-06-14 15:26:28 -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
9a4cdef528 Update documentation 2020-04-12 13:23:03 -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
12e0df79e0 increment version 2020-04-04 15:17:18 -06:00
KiD Fearless
d590934324 Add jump multiplier and jump bonus to shavit-styles.cfg 2020-04-04 14:35:14 -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
KiD Fearless
88ca8c8159 Implement set current checkpoint 2020-04-03 15:07:08 -06:00
KiD Fearless
1387b5451a Added more checkpoint natives and forwards 2020-04-02 21:28:26 -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
3283a26d45 Added Convar_class methodmaps for timer convars 2020-01-22 17:16:37 -07:00
KiD Fearless
135242af3d Update Version 2019-12-29 21:01:54 -07:00
KiD Fearless
8f39aa6521 Added stages to shavit-zones 2019-12-29 21:00:06 -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
ea00c86026 Added overflow parameter to Shavit_OnSave 2019-12-14 12:51:47 -07:00
KiD Fearless
0fd6d6507c Added Checkpoint Natives
Added 6 new natives to better interact with the checkpoint system of the timer. As well as moving the cp_cache_t into shavit.inc to allow 3rd party plugins to modify the checkpoint cache.

Update .gitignore
2019-12-06 18:22:08 -07:00
KiD Fearless
f7ae606467 Added checkpoint index to checkpoint forwards 2019-11-24 11:31:47 -07:00
shavit
b0ec640b1e 2.5.5a (hotfix) 2019-08-08 04:53:08 +03:00
KiD Fearless
7e1c729bc1 Added "Shavit_GetClientFrameCount" and "Shavit_GetReplayFrames" 2019-08-05 16:31:47 -06:00
shavit
01b635543f Added missing semicolon. 2019-07-28 03:06:42 +03:00
shavit
89d33d91d4 Added Shavit_OnFinishMessage forward (#821).
(and changed PB cache to only update after the finish message is sent to the players)
2019-07-24 15:19:49 +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
70dd8f7c9c Added tracking for map completions (#804). 2019-05-28 18:32:24 +03:00
shavit
26dd200408 Changed "No Speed Limit" zones to "Custom Speed Limit" (#797). 2019-05-14 04:56:26 +03:00
shavit
a7c743cf29 Added custom airaccelerate zones and some natives. (#797)
Shavit_GetZoneData, Shavit_GetZoneFlags, and Shavit_InsideZoneGetID
2019-05-14 04:27:39 +03:00
shavit
058b88b98c Added zone flags and data to mapzones table. 2019-05-14 03:25:15 +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
44dfa5941e 2.5.5 2019-05-03 10:57:05 +03:00
shavit
203644d1d2 Added prespeed setting 2 which also respect shavit_core_nozaxisspeed. 2019-04-17 22:57:37 +03:00
shavit
f21ba64c84 2.5.4 2019-04-15 04:19:50 +03:00
shavit
b88915ba18 Added "force_groundkeys" style property. 2019-04-15 03:01:06 +03:00
shavit
e607b88d21 2.5.3 2019-04-14 23:35:35 +03:00
shavit
fb0b84878e Added "noimprovement" sound type (#783) 2019-04-14 23:35:35 +03:00
shavit
30264ef092 Added Shavit_OnStopPre 2019-04-14 23:25:13 +03:00
shavit
bac741e7f8 Added teleport parameter to Shavit_ResumeTimer 2019-04-14 22:45:19 +03:00
shavit
3150225755 Added Shavit_CanPause 2019-04-14 22:45:19 +03:00
shavit
3729ed23fa 2.5.2 2019-04-06 01:56:13 +03:00
shavit
a8673c9c78 2.5.1 2019-03-29 08:40:55 +03:00
shavit
7365cbcb53 Added "kzcheckpoints" mode (#759). 2019-03-25 02:48:50 +02:00
shavit
5ec325aa35 Added checkpoint forwards (#759). 2019-03-25 02:19:35 +02:00
shavit
79a6fef09c Added "enabled" and "inaccessible" style settings. (#761) 2019-03-24 23:10:00 +02:00
shavit
4efb36e5f6 Bumped version number.
When I'm done with this pull request, this should have a fair amount of new features.. so I figured this would be 2.5 rather than 2.4.2
2019-03-24 22:32:52 +02:00
shavit
da656d0f5d Bumped version number. 2019-03-09 17:21:34 +02:00
KiD Fearless
ef8af7807d Add topleft hud and clantag forwards 2019-03-08 18:08:02 -07:00
shavit
15c67cc317 Implemented Shavit_OnRankAssigned forward. 2019-03-08 10:57:36 +02:00
shavit
bf37674812 Implemented Shavit_ChangeClientStyle forward. 2019-03-08 09:37:37 +02:00
shavit
08f0224759 Added menu ordering for styles (#681).
Also added Shavit_GetOrderedStyles ofc.
2019-02-24 17:05:39 +02:00
shavit
78bba83fd0 Added Shavit_ReloadLeaderboards. 2019-02-24 15:53:51 +02:00
shavit
6fba2bca9c Added Shavit_DeleteReplay native. 2019-02-24 15:10:08 +02:00
shavit
942d6d9675 Added Shavit_IsPaused. 2019-02-22 17:11:55 +02:00
strafe
683e75c474 Remove semicolon after closing brace on enum structs
https://github.com/alliedmodders/sourcepawn/pull/319
2019-02-21 23:32:15 +00:00
shavit
69b5dd3020 walao eh 2018-12-28 01:59:02 +02:00
shavit
26534c1d18 Added shavit_core_nochatsound 2018-12-27 07:42:17 +02:00
shavit
a0ab1b7147 Structified some of WR plugin, deprecated Shavit_GetPlayerPB
(and GetWRTime)
2018-12-27 00:12:02 +02:00
shavit
2ab6c57e1f Refactored whole plugin to use enum structs
SourceMod 1.10 is now a requirement.
2018-12-24 00:31:50 +02:00
shavit
c82ab35357 2.3.6 2018-12-23 20:42:13 +02:00
shavit
46c244a668 2.3.5 2018-12-07 07:46:03 +02:00
shavit
28d75bda21 2.3.4 2018-11-03 14:04:05 +02:00
shavit
d1cf273dd8 Merge branch 'master' into very_good_yes 2018-10-16 22:25:08 +03:00
shavit
5c22149b93 Deprecated halftime for timescale.
There's backwards compatibility of course. Untested but should work..
2018-10-16 22:24:34 +03:00
blackhawk74/sneaK
eed591f0b6 update steamworks inc 2018-10-12 19:31:52 -04:00
shavit
8fb3f0d23f prac mode alert thing !hud
[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!
2018-10-11 19:16:13 +03:00
shavit
37413dd0d6 Shavit_OnReplayStart Shavit_OnReplayEnd #676 2018-10-10 19:33:52 +03:00
shavit
3813668f1c does anyone even read the commits 2018-10-03 09:38:37 +03:00
shavit
29415315b9 Fixed loading issue with rankings module. 2018-10-02 16:40:33 +03:00
shavit
82ac5c3e48 2.3.1 2018-09-22 23:32:06 +03:00
shavit
81dbdedfba Added !deletemap (#668) 2018-09-15 17:26:11 +03:00
shavit
bd4e75a85d 2.3.0 2018-09-14 17:43:01 +03:00
shavit
b6ca23d9f0 reduced size to 32 blablabla yes the usual things sql error nairda 2018-06-26 19:30:18 +03:00
shavit
5d3bfc45f5 despacito 2018-06-23 21:47:03 +03:00
shavit
a8a581e302 Bumped version to 2.1.3. 2018-05-08 19:04:30 +03:00
shavit
9461c29f71 Added my own minimal implementation of a chat processor.
* Removed Chat-Processor dependency.
* Added cvar `shavit_chat_colon`.
* Fixed inconsistencies with default chat messages.
2018-05-08 19:01:29 +03:00
shavit
7b3e61563b Bumped version to 2.1.2 2018-05-07 18:53:31 +03:00
shavit
f2887fabfa Changed default +left/right block behavior.
* 1 now blocks movement, 2 also stops timer.
2018-05-03 17:00:23 +03:00
shavit
e5ab100053 Fixed checkpoints triggers exploit and bumped version to 2.1.1.
Thanks @SlidyBat :)
2018-05-03 15:58:41 +03:00
shavit
8c25086471 Added perfect jump% measuring for scroll styles.
* 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.
2018-05-02 12:21:38 +03:00
shavit
4712edc803 Bumped version to 2.1.0
This is a very quick jump from 2.0.3, but segmented runs were something that was requested for very long time so it's justified.
2018-04-30 12:07:41 +03:00
shavit
41c2136b42 Added Shavit_HijackAngles.
This native hijacks the replay recording so that the current tick will have your desired angles recorded to the replay data.
2018-04-30 11:51:50 +03:00
shavit
a03fc893c0 Bumped version to 2.0.3 2018-04-30 00:35:13 +03:00
shavit
f01ff69841 Merge branch 'master' into very_good_yes 2018-04-30 00:34:33 +03:00
shavit
050a77ca0a Merge remote-tracking branch 'origin/master' 2018-04-30 00:34:25 +03:00
strafe
e90b847f08 Typos 2018-04-28 17:19:13 +01:00
shavit
f63a05f2a9 Added documentation for Shavit_HasStyleAccess. 2018-04-26 18:59:30 +03:00
shavit
fabc24ca6f Added style permissions. (#622)
* Added `Shavit_HasStyleAccess` native.
* Added `permissions` setting to styles. Use like "p;style_tas" for example. First section is the flag needed, and the second section is the override for it.
2018-04-26 18:56:31 +03:00
shavit
daa04fbf21 Bumped version to 2.0.2 2018-04-19 03:40:20 +03:00
shavit
e004dd3d61 Bumped version to 2.0.1 2018-03-24 01:48:19 +03:00
shavit
b8d7c4173f Bumped version to 2.0.0! 2018-03-18 11:34:29 +02:00
shavit
6808b833d7 Fixed chat titles compatibility with latest Chat-Processor. 2018-03-16 05:07:28 +02:00
shavit
b46c7eadd7 Added Shavit_LogMessage native. 2018-03-15 00:06:12 +02:00
shavit
f726b6b05a Fixed a typo. 2018-03-14 23:59:09 +02:00
shavit
8f51d4c964 Added mouse[2] to OnUserCmdPre. 2018-01-31 05:48:59 +02:00
shavit
cb7bbce676 Changed block_pstrafe's behavior.
* Changed default (1) to block button inconsistencies.
* Made the duration of inconsistencies less annoying.
* Changed the first option to 2, which stops the timer on inconsistencies.
2018-01-28 20:57:22 +02:00
shavit
53456ffe38 Implemented GetGameFrameTime usage. (#440)
* Made pausing better.
* Added `Shavit_OnTimeIncrement` and `Shavit_OnTimeIncrementPost`. Use this for proper timescaling/save state usage.
2018-01-26 05:58:53 +02:00
shavit
1fcb7993fe Added oldtime parameter to Shavit_OnFinish 2018-01-16 10:15:41 +02:00
shavit
59b5664439 Added Shavit_GetReplayBotType and ReplayStatus enum. (#574) 2018-01-13 09:48:23 +02:00
shavit
ebb3203c05 Added native zones support (#491)
CPs aren't implemented because the timer itself doesn't support them.
2017-12-30 05:06:33 +02:00
shavit
990bbb802d Added slide zones (#558) 2017-12-16 10:27:02 +02:00
shavit
cfde142e92 Added TF2 support. (#549)
Tested most of the things in-game, should be good to go!
2017-12-10 09:30:08 +02:00
shavit
3b947e9b30 Added sSpecialString (specialstring) to style config (#543) 2017-12-09 23:35:41 +02:00
shavit
42ee76c742 Added new natives and complete replay bots. (#537) 2017-11-21 12:24:21 +02:00
shavit
35104f6d78 Added KZ support. (#472)
Going by KZ-Climb standards - climb_startbutton, climb_endbutton etc. Only supports one bonus due to the plugin's nature.
2017-11-17 11:18:45 +02:00
shavit
e875280f32 What typo..? 2017-11-17 07:39:34 +02:00
shavit
47c69d1621 Added Shavit_ReloadReplay and Shavit_ReloadReplays (#528) 2017-11-17 07:29:29 +02:00
shavit
6503b6573b Added Shavit_GetTimeForRank (#512)
Also fixed return value for Shavit_GetRankForTime's description.
2017-11-15 03:14:19 +02:00
shavit
f65f7f4411 Added "oldwr" parameter to Shavit_OnWorldRecord (#512) 2017-11-15 03:01:27 +02:00
shavit
934fc5d1e7 Extend checkpoints to work while spectating (#525) 2017-11-15 02:31:05 +02:00
shavit
f2146b6f9c Added Shavit_GetMapTier and Shavit_GetMapTiers (#504) 2017-11-04 18:58:15 +02:00
shavitush
70e885c25f Restructured files. 2017-10-24 01:05:09 +03:00