Commit Graph

114 Commits

Author SHA1 Message Date
shavit
9a49977e10 Fixed a few leftover issues from the frametime change.
* Fixed time not being loaded via snapshots.
* Fixed practice mode not being set to false upon restart.
2018-01-26 08:05:53 +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
dda1afa0e7 Fix RTL chat messages being colored randomly. 2018-01-26 05:57:09 +02:00
shavit
a4bcaa6fcf Show time in CS:S while paused. 2018-01-26 05:56:57 +02:00
shavit
d7f9ed3186 Remove custom IsNullVector function. 2018-01-26 05:56:24 +02:00
shavit
1eda6a2616 just pretend that the previous commit never existed 2018-01-25 01:45:15 +02:00
shavit
132d3d80e2 Hacky fix for autorespawn.
L 01/24/2018 - 08:49:06: Info (map "bhop_forest") (file "errors_20180124.log")
L 01/24/2018 - 08:49:06: [SM] Exception reported: Invalid data pack handle 11503 (error 4)
L 01/24/2018 - 08:49:06: [SM] Blaming: shavit-misc.smx
L 01/24/2018 - 08:49:06: [SM] Call stack trace:
L 01/24/2018 - 08:49:06: [SM]   [0] DataPack.Reset
L 01/24/2018 - 08:49:06: [SM]   [1] Line 2059, E:\git\bhoptimer\addons\sourcemod\scripting\shavit-misc.sp::Respawn
2018-01-25 01:18:13 +02:00
shavit
3a0f133da2 Tweaked points calculation format with a stored function. (#586)
Big thanks to Deathknife~

* There's no bonus points for a bigger amount of records, due to necessary optimizations.
* Added `GetRecordPoints`.
* `sm_recalcall` should run *very* quickly now.
2018-01-23 05:29:25 +02:00
shavit
ee8b85621c Changed playertimes' structure for the billionth time..
See: 74d468c639...40f21523f4

Also, changed `style` and `track` to TINYINT.
2018-01-23 05:22:32 +02:00
shavit
adda10c3d4 Fixed replay HUD not showing track properly. 2018-01-22 19:05:50 +02:00
shavit
917fe7e683 Fixed style changes not restarting with built in zones. (#582) 2018-01-22 18:58:17 +02:00
shavit
009c849a6c Fixed !b and !bend for built in zones. (#582) 2018-01-22 18:53:32 +02:00
shavit
757e9de8c6 Fixed zone offset being wrong for point 1 (#585) 2018-01-22 18:33:47 +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
6690947e5f Added track letter ("{tr}") to scoreboard tag. (#584) 2018-01-18 18:24:47 +02:00
shavitush
72bb86eeef Merge remote-tracking branch 'origin/master' 2018-01-17 13:03:13 +02:00
shavit
314406c203 Record entity flags and movetypes in replays. (#579) 2018-01-16 12:04:44 +02:00
shavit
56d37bb871 Added 'infinite checkpoints' (#575)
* Soft cap is 1000 to avoid going above the set heap size.

Also fixes:
* Adds entity flags to checkpoint data.
* Only sets your movetype to the one in the checkpoint data if it's either the walk or ladder types, so you can save while noclipping but teleport normally.
2018-01-16 11:47:34 +02:00
shavit
1fcb7993fe Added oldtime parameter to Shavit_OnFinish 2018-01-16 10:15:41 +02:00
strafe
7e79b02167 Styling 2018-01-13 13:36:07 +00:00
strafe
623360a02a Account for track when respawning on restart (#554) 2018-01-13 10:58:22 +00:00
shavit
03074283ab Changed arg-less !spec to automatically forward to replay bot. (#574) 2018-01-13 09:54:25 +02:00
shavit
59b5664439 Added Shavit_GetReplayBotType and ReplayStatus enum. (#574) 2018-01-13 09:48:23 +02:00
shavit
13b243f1d7 Adjusted the grid visualisation's alpha. 2018-01-13 09:35:41 +02:00
shavit
a61cfadfd2 Fixed an issue with WR menu record count.
The menu would show the amount of records for the current map rather than grab it from the map itself.
2018-01-13 09:35:21 +02:00
shavit
27e0dad8ad Conut >> Count 2018-01-13 09:34:33 +02:00
shavit
9b0aad6583 Fix formatting issue with top-left HUD. 2018-01-13 09:34:17 +02:00
shavit
05258480d5 Added configuration for replay data folder. (#570) 2018-01-10 10:44:47 +02:00
shavit
65abbce252 Fixed an issue where certain replays would not save. 2018-01-03 21:29:27 +02:00
shavit
5810dbc806 Micro-optimization to shavit-wr 2018-01-03 21:28:50 +02:00
shavit
74e3e74f32 Added shavit_misc_jointeamhook 2018-01-03 21:28:27 +02:00
shavit
f092b76f7b Hotfix for error log spam. 2017-12-30 05:08:03 +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
dd4234ae00 Added SnapToGrid function to make code cleaner. 2017-12-30 04:11:14 +02:00
shavit
2c30ef252e Changed grid snap's visualization. (#569) 2017-12-30 03:21:41 +02:00
shavit
fd06555188 Fixed prestrafe limit being wrong.
290 is apparently the accepted absolute maximum, so yeah.
2017-12-30 03:21:17 +02:00
shavit
16cc4caea2 Rewrite clan tag handling. 2017-12-24 23:40:23 +02:00
shavit
4f34901613 Fix for replay saving.
Some replays would not overwrite because of disrepancy between record time and frame count. This commit makes it so the replay saves as long as it contains less frames than the old one, which usually results in less time spent running.
2017-12-24 23:39:50 +02:00
shavit
2a6b3182d5 Rewrite autobhop code.
This commit uses a different method of autobhop.

Benefits over the old one:
* Doesn't break with unusual trigger_push setups (i.e. bhop_arcane_v1, bhop_cutekittenz, bhop_ml - or any map with badges' "unbreakable boosters" prefab).
* Doesn't modify the usercmd, therefore other plugins can see the jump button being in use.
2017-12-23 16:37:14 +02:00
shavit
4681e82e90 Fixed nonsense with KZ button hooking. 2017-12-20 09:18:56 +02:00
shavit
56fee65f34 Re-do points calculation.
This new method fixes LOTS of issues with the old one. Now it also is more "dynamic" and is simpler to use.
I have to note that it also takes approximately 14% of the time to execute relatively to the old method.
2017-12-18 23:00:02 +02:00
shavit
1c807bc79f Fix issue with HUD's style cache not updating properly. 2017-12-18 22:58:32 +02:00
shavit
09dee3ce29 Fix issue where new replays get saved even if done with CPs. 2017-12-18 22:57:57 +02:00
shavit
48b66f09ef Reverted this change I forgot to remove in first place.. 2017-12-16 10:53:03 +02:00
shavit
990bbb802d Added slide zones (#558) 2017-12-16 10:27:02 +02:00
shavit
225dd2fadf Fixed "n records" in WR menu capping at shavit_wr_recordlimit 2017-12-11 21:21:33 +02:00
shavit
596934c735 Fixed shavit-wr's cvars being respected as bool instead of int (#535) 2017-12-11 20:46:07 +02:00
shavit
f06437084f Added Discord server to README 2017-12-11 09:56:12 +02:00