Commit Graph

186 Commits

Author SHA1 Message Date
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
KiD Fearless
7696670d6d move replay check to actual usage location 2020-11-14 12:45:50 -07:00
KiD Fearless
77676db8ed Tidy up dynamic time difference so that both cheap and expensive methods are available.
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.
2020-11-14 07:45:42 -07:00
kidfearless
b7be81f45c
Merge pull request #975 from GAMMACASE/spec_panel_fix
Spectator panel player name truncation improvement
2020-11-10 12:45:13 -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
Joe
86436b19d2
add turn binds to !keys (#980)
* add turn binds to !keys

* move turn keys to a newline
2020-10-30 16:20:18 -06:00
GAMMACASE
8230d55f3e Improve player name truncation in spec panel 2020-10-19 04:48:18 +03:00
deadw1nter
0cd539dfc4
How can I didn't notice this before 2020-09-17 10:54:03 +08:00
Q
733b9a61e3 Make it optional 2020-08-20 09:57:59 +08:00
Q
d4d51c752d Fixed bugs 2020-08-20 09:44:27 +08:00
KiD Fearless
bdc600fedb Wrap dynamic time difference in shavit-replay library check 2020-08-09 14:01:20 -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
8fe630f7c3 Add convar to enable and disable dynamic time differences 2020-07-23 19:55:55 -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
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
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
8f0fd02f32 Merge branch 'very_good_yes' 2020-06-16 21:01:24 -06:00
KiD Fearless
97eb4bfc00 re-add silly percentage 2020-06-16 19:32:06 -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
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
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
44a6b1646f Show hud data during prerun 2020-04-04 12:39:04 -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
8fb6312b89 Add csgo hint fix text by default and block hooking it.
Thanks @gammacase
2020-03-05 16:40:38 -07:00
KiD Fearless
3283a26d45 Added Convar_class methodmaps for timer convars 2020-01-22 17:16:37 -07: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
b5ce632272 Improvements to how hint text HUD settings is being loaded. 2019-07-13 09:34:30 +03:00
shavit
26dd200408 Changed "No Speed Limit" zones to "Custom Speed Limit" (#797). 2019-05-14 04:56:26 +03:00
shavit
08afbfa67a Fixed replay HUD speed with speed multipliers. 2019-03-27 12:59:25 +02:00
shavit
4aa6365b01 Added missing no-speed-limit text for CS:S HUD. 2019-03-24 01:12:06 +02:00
shavit
38a03a1467 Merge branch 'master' into very_good_yes 2019-03-09 16:33:45 +02:00
shavit
4cab7f997f Removed useless lines. 2019-03-09 16:33:39 +02:00
strafe
cb91330927 Replace tier with track name in non-main start zones and indent text 2019-03-09 12:42:55 +00:00
KiD Fearless
ef8af7807d Add topleft hud and clantag forwards 2019-03-08 18:08:02 -07:00
shavit
feec3f0a2f Removed debug message 2019-02-25 00:19:29 +02:00
shavit
a712c1daeb Fixed replay HUD time display issues for timescale styles (#689). 2019-02-22 21:21:59 +02:00
shavit
a784b717ff Added tier to zone HUD (#675). 2019-02-22 17:48:43 +02:00
shavit
0bad2d6457 oops 2019-02-22 17:48:10 +02:00
shavit
942d6d9675 Added Shavit_IsPaused. 2019-02-22 17:11:55 +02:00
shavit
5e6c84ef98 Merge branch 'master' into very_good_yes 2019-02-22 17:05:57 +02:00
shavit
188de7287c
Merge branch 'master' into csgo_hudfix1 2019-02-22 16:56:12 +02:00
shavit
62877282d0 HUD PB split (#732) 2019-02-22 15:16:38 +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
GAMMACASE
fee460efcc
Fixed empty line for csgo hud. 2019-02-04 12:04:51 +03:00
shavit
6c4ae5f1ec Added commands to toggle frequently changed HUD settings.
!keys, !master, !center, !zonehud, !hideweapon, !truevel
2019-02-02 00:10:31 +02:00
shavit
f3f05d9e92 Merge remote-tracking branch 'origin/enum_structs' into enum_structs 2019-02-01 23:14:25 +02:00
shavit
055eb29509 Made !hud less confusing. 2019-02-01 23:08:25 +02:00
strafe
9d24c5512f Add speed to CS:GO bot HUD 2019-01-13 12:23:04 +00:00
shavit
522b41682e Fixed CS:GO HUD hint showing empty 2018-12-29 20:15:21 +02:00
shavit
34fb49ec7b Minor bug fix, teehee~
definitely not hud revamp
2018-12-28 03:40:34 +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
d652289814 fixed replay hud for timescale styles 2018-10-25 01:36:03 +03:00
shavit
304ea735ae Fixed replay HUD not scaling with timescale. 2018-10-16 22:24:48 +03: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
020acc5ac2 Fixed PB showing #0 when #1 2018-10-10 17:54:13 +03:00
shavit
d1d594503e Dropped dynamic arrays for strings, unless necessary. 2018-09-23 04:16:23 +03:00
shavit
833b1289f4 Fixed HUD speclist being broken for spectators. (#663) 2018-09-13 23:45:46 +03:00
shavit
aaa76e4e1d Fixed HUD showing wrong speeds for slowmo styles (#601) 2018-09-13 23:38:23 +03:00
shavit
bb81a61507 kinda fixed csgo hud (untested) 2018-08-10 17:13:55 +03:00
shavit
1a07229685 Fixed CS:S spec list not respecting admin visibility cvar. 2018-05-13 21:18:52 +03:00
shavit
37a59f9a90 Fixed top-left HUD not showing correct style/track data. 2018-05-13 21:18:37 +03:00
shavit
cc6b622d54 Added shavit_hud_speclist for HUD's spectator list.
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
2018-05-08 16:26:53 +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
739562216d Fix main track replay HUD looking terrible after the CS:S HUD fix. 2018-03-24 03:02:33 +03:00
shavit
cc8dd17c07 Fixed CS:S HUD not showing empty line instead of track name. 2018-03-19 17:35:33 +02:00
shavit
1d34b310d1 Fixed top-left HUD flickering.
Text might look uglier in CS:GO, but this works.
2018-01-28 20:57:55 +02:00
shavit
14a23b210a Changed default HUD updates to 5 ticks per.
Previous default was 20 ticks per update.
2018-01-28 20:54:45 +02:00
shavit
5ba897e274 Fixed 'shavit_hud_ticksperupdate'. 2018-01-26 19:50:16 +02:00
shavit
a4bcaa6fcf Show time in CS:S while paused. 2018-01-26 05:56:57 +02:00
shavit
adda10c3d4 Fixed replay HUD not showing track properly. 2018-01-22 19:05:50 +02:00
shavit
271f2ea9ed Introduced 'shavit_hud_ticksperupdate'
- Dropped timers for updates in order to allow better precision.
2018-01-18 19:58:06 +02:00
shavit
9b5e4ad85d Some CS:GO HUD tweaks (#584)
* 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.
2018-01-18 19:19:51 +02:00
shavit
e6d09e9bc2 Added scroll pad to CS:GO HUD 2018-01-18 18:57:12 +02:00
shavit
9b0aad6583 Fix formatting issue with top-left HUD. 2018-01-13 09:34:17 +02:00
shavit
1c807bc79f Fix issue with HUD's style cache not updating properly. 2017-12-18 22:58:32 +02:00
shavit
8ddf59a1c2 Source Engine 2013 changes. 2017-12-10 09:51:42 +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
42ee76c742 Added new natives and complete replay bots. (#537) 2017-11-21 12:24:21 +02:00
shavit
d20839218c New replay bot format (#434) and some of #537 2017-11-21 11:28:57 +02:00
shavit
bb44534c93 Added replay bot integration with bhopstats. 2017-11-17 08:06:49 +02:00
shavit
47c69d1621 Added Shavit_ReloadReplay and Shavit_ReloadReplays (#528) 2017-11-17 07:29:29 +02:00
shavit
bb05771440 Allow admins to see other admins in spectator list (#517) 2017-11-08 01:52:27 +02:00
shavitush
70e885c25f Restructured files. 2017-10-24 01:05:09 +03:00