Commit Graph

32 Commits

Author SHA1 Message Date
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
3681cb2f3d Added shavit_core_defaultstyle.
Usage: style ID. Add an exclamation mark as the prefix to ignore style coookies.
2018-04-19 03:38:16 +03:00
shavit
fdeceabcf0 Fixed CS:S HUD breaking apart after adding new styles without restart. 2018-03-20 04:32:47 +02:00
shavit
8d350bc012 Added plugin name to logs. 2018-03-15 01:40:04 +02:00
shavit
b46c7eadd7 Added Shavit_LogMessage native. 2018-03-15 00:06:12 +02:00
shavit
f04257597d Updated minimum forwardmove/sidemove values. 2018-03-10 18:23:53 +02:00
shavit
6059b19cb2 Removed some core cvars where style settings exist.
shavit_core_autobhop
shavit_core_blockleftright
shavit_core_nostaminareset

Use the appropriate style settings for them instead.
2018-03-10 18:23:18 +02:00
shavit
36686e37b0 Fixed restart not removing pause status. (#590) 2018-02-04 15:38:38 +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
52b9c1e81f Allowed pausing in practice mode.
It was disabled before due to the mess with time calculation. Shouldn't be problematic now.
2018-01-28 20:54:15 +02:00
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
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
1fcb7993fe Added oldtime parameter to Shavit_OnFinish 2018-01-16 10:15: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
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
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
5b34eaf3a4 Fixed compilation on SourceMod 1.9 2017-12-09 23:24:35 +02:00
shavit
d26ad819a6 Adjusted snapshots' behavior and timer start conditions
It feels smoother now, nothing major.
2017-12-01 00:05:56 +02:00
shavit
e36d917f6d Update table creation queries. 2017-11-23 22:20:33 +02:00
shavit
1d84cfe866 Default convar usage changes, see commit description.
`shavit_misc_prespeedlimit`'s behavior was changed and is now `shavit_misc_prestrafelimit`. The value determines the maximum allowed prestrafe in the start zone *added* to the style's run speed. So i.e., Scroll can prestrafe up to 280 (in reality, 278) and Normal can up to 290.

The default settings for `shavit_core_blockprejump` and `shavit_misc_prespeed` were changed due to this commit.
`shavit_misc_createspawnpoints`'s default setting was changed to 6 as 32 didn't make much sense.
2017-11-22 18:24:45 +02:00
shavit
cb250ee861 CallOnStyleChanged() where needed (#536) 2017-11-21 03:05:59 +02:00
shavitush
5a51b109ac Fix recent HSW issues. (#529) 2017-11-19 01:03:47 +02:00
shavitush
da2d08d9fe Allow all movements on ladders. (#530) 2017-11-19 00:59:29 +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
c3db507b85 S/HSW exploit fix 2017-11-03 01:14:27 +02:00
shavit
a1629d839c Add indexes, VARCHAR >> CHAR(n).
BIG optimization.
2017-10-29 18:08:44 +02:00
shavitush
70e885c25f Restructured files. 2017-10-24 01:05:09 +03:00