Commit Graph

186 Commits

Author SHA1 Message Date
rtldg
8a31bc84aa replace shavit_misc_weaponsspawngood with !hud settings. also add default-pistol thing 2021-10-26 20:41:18 +00:00
rtldg
b54de50c1a mess with some #include's and include-guards 2021-10-25 13:01:38 +00:00
rtldg
966ceea5f8 finish splitting shavit.inc 2021-10-18 07:22:50 +00:00
rtldg
474627e437 csgo doesn't need the quadruple percent-sign 2021-10-11 14:55:23 +00:00
rtldg
07a50717c4 remove debugging print 2021-10-11 03:18:57 +00:00
rtldg
a0a2cce04a add wip alternatecenterkeys for css linux gamers 2021-10-11 03:04:37 +00:00
rtldg
c5d4679c9a add missing sync display in css 2021-10-07 16:48:46 +00:00
rtldg
3552f29853 Replace Shavit_GetStyleSetting() in some places 2021-10-07 13:43:09 +00:00
rtldg
b1a5339910 add shavit_hud_debugtargetname for me :) 2021-09-27 00:01:04 +00:00
rtldg
1951ac9a73 some timelimit changes so it instantly changes the map 2021-09-14 08:28:56 +00:00
rtldg
ef5bf0c460 only show 'In End/Start Zone' for zones of your track 2021-09-08 17:43:08 +00:00
rtldg
d8dfef5279 trim some hud code 2021-08-28 01:32:08 +00:00
GAMMACASE
94f30693c0 Move trim function to shavit.inc 2021-08-23 22:42:44 +03:00
rtldg
f79335270d add Shavit_GetReplayCacheName 2021-08-12 15:03:27 +00:00
rtldg
11d2ae0785 another thing to fix hud display for custom-frame bots 2021-08-12 10:43:57 +00:00
rtldg
fc8b78ae43 make sure StartReplayFromFile uses delay and fix hud time for customframes 2021-08-11 13:20:42 +00:00
rtldg
b4d1d8a8c0 fix some checkpoint/gravity/timescale/speed related stuff 2021-08-08 15:55:16 +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
e1dac1697a have Shavit_OnTopLeftHUD run even when there's no WR 2021-07-23 16:20:18 +00:00
rtldg
5a4acc49a4 change css key overlay a bit 2021-07-23 09:29:18 +00:00
rtldg
ec3e4d2d84 add angle diff to Shavit_GetReplayButtons 2021-07-23 09:15:23 +00:00
rtldg
878917daf9 negative replay percentage complete 2021-07-22 08:28:47 +00:00
rtldg
187e749352 unset gB_Late after use 2021-07-06 08:51:35 +00:00
rtldg
6f058127c4 make all plugins require dhooks so there's error spam due to them not loading 2021-07-06 02:22:35 +00:00
rtldg
00fa237c28 hide flickering hint text when scoreboard is open 2021-07-06 01:56:15 +00:00
rtldg
28e9d4029b add postframes 2021-07-04 10:09:16 +00:00
rtldg
87e64c87c7 add HUD2_VELOCITYDIFFERENCE 2021-06-08 15:39:52 +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
35b61a0abc fix wrong variable being sizeof()'d 2021-05-25 18:53:06 +00:00
GAMMACASE
720251166e
Increase top left wr hud buffer size (#1050) 2021-05-23 08:33:37 +00:00
rtldg
0f37aac00f get all this gamedata stuff working on tf2 2021-05-17 10:51:31 +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
9e39c10e28 shavit_hud_timedifference -> shavit_replay_timedifference 2021-04-11 03:36:47 +00:00
rtldg
cb39acc33b remove stylesettings_t and break 3rd party plugins 2021-04-08 21:19:18 +00:00
rtldg
85609db2e6 increase css center keys text buffer 2021-04-07 16:30:01 +00:00
rtldg
efea62a023 mark some forgotten natives as optional 2021-04-07 15:37:14 +00:00
rtldg
eaf2e3b280 less allocations for csgo zone hud 2021-04-06 14:26:47 +00:00
rtldg
aef853a308 fix csgo sm_keys alignment 2021-04-05 17:04:22 +00:00
rtldg
f9060498fb cleaner looking angle normalization for sm_keys direction 2021-04-05 11:18:45 +00:00
rtldg
3750c8edeb some angle diff arrows in keys
WHICH I CAN'T SEE IF IT LOOKS GOOD BECAUSE THE CHARACTERS DON'T SHOW ON LINUX
2021-04-02 18:31:24 +00:00
Nairda
cd8bbdf850
update menu drawing time (#1036)
* Update shavit-rankings.sp

* Update shavit-rankings.sp

* Update shavit-hud.sp

* Update shavit-core.sp

* Update shavit-misc.sp

* Update shavit-replay.sp

* Update shavit-stats.sp
2021-04-01 13:44:10 +00:00
rtldg
cb63c59352 add Shavit_GetReplayButtons() and fix error in #1033 2021-03-21 09:16:07 +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
bf7f68faec change all menus to display for at least 5 minutes 2021-03-14 00:03:10 +00:00
rtldg
6ff39c0891 hopefully remove velocity difference when timer stopped in csgo 2021-03-13 23:08:10 +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
65f58219bd misc changes & stockify GetSpectatorTarget 2021-03-07 03:25:56 +00:00
rtldg
0caa746290 initial DynamicChannels stuff 2021-03-04 10:31:11 +00: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
kidfearless
2f48ddb85a Removed shavit_getstylesettings from shavit-hud 2020-12-04 07:01: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
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