Commit Graph

338 Commits

Author SHA1 Message Date
shavit
9fc2b72504 Fixed exploit allowing segments for save states. 2019-02-02 00:35:33 +02:00
shavit
4e72ed2c8a Another attempt at this. Let's hope it works. 2019-02-02 00:18:24 +02:00
shavit
26534c1d18 Added shavit_core_nochatsound 2018-12-27 07:42:17 +02:00
shavit
3114eec03f Got rid of the cached cvars bullshit
protip: don't follow hosties' coding conventions that shit sucks mad dick
2018-12-27 06:42: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
fd44ba68b6 Fixed out of bounds error in Shotgun Shot sound hook 2018-12-23 20:41:11 +02:00
shavit
7e8eb0c861 Fixed classname not resetting bug 2018-12-07 07:47:28 +02:00
shavit
0de22f4026 Fixed naming and CS:GO offset for CCSPlayer::GetPlayerMaxSpeed 2018-12-07 07:45:24 +02:00
shavit
e77478d159 monkaS 2018-11-28 22:47:12 +02:00
shavit
fc69bd38ab fixed target/classnames not saving what the frick how did i forget this 2018-11-28 22:42:51 +02:00
shavit
2b0e549150 fixed cpmenu next button 2018-10-12 23:21:33 +03:00
shavit
d1d594503e Dropped dynamic arrays for strings, unless necessary. 2018-09-23 04:16:23 +03:00
shavit
6d7980c035 Fixed exploit that allowed you to escape practice mode in segmented run. 2018-09-14 10:49:50 +03:00
shavit
b473265a3b Fixed teleporting to stolen CP from start zone not showing alert. 2018-09-14 01:53:57 +03:00
shavit
90cd1ba53c Fixed shavit_misc_prespeed 4.
Set to 4 and combine with shavit_core_nozaxisspeed 1 to get the same behavior that SourceCode timer has.
2018-09-13 23:06:57 +03:00
shavit
791fc7c3b3 fixed memory leak with cps 2018-09-13 22:41:14 +03:00
shavit
5a933fd135 Fixed segmented CPs and made !save match !cp's save behavior. 2018-09-13 22:04:44 +03:00
shavit
a584082fd7 bandaid fix for checkpoint theft exploit 2018-08-10 17:23:55 +03:00
shavit
fbf7736ae1 fixed menu saving 2018-07-09 02:49:36 +03:00
shavit
ea339ed6c7 rewrote some of the save/tele code
for the 100000000th time
2018-06-29 00:50:56 +03:00
shavit
15a36a2e2f cya basevelocity (fix for prediction issue) 2018-06-28 19:12:43 +03:00
shavit
519756bd70 fixed the !save issues 2018-06-28 19:07:37 +03:00
shavit
36b4ed4a94 Fixed !save behaving differently from the !cp menu option. 2018-06-23 11:36:33 +03:00
shavit
74239a3639 Fixed wrong classname variable in CP saving. 2018-06-23 11:27:33 +03:00
shavit
682932ed2e Changed velocity in misc to use vecAbsVelocity 2018-06-23 11:26:43 +03:00
shavit
1cd46a71c2 (untested) Added base velocity saving 2018-05-14 03:16:56 +03:00
shavit
fca8eccdcc Changed ArrayList sizes to 32 bytes instead of cells. 2018-05-14 03:16:00 +03:00
shavit
f872a39981 Removed viewangle hijacking from CPs as we record real viewangles now. 2018-05-13 21:17:19 +03:00
shavit
26493c85a8 Fixed invalid client error on CP save. 2018-05-13 21:17:00 +03:00
shavit
535fee9785 Changed m_vecAbsVelocity to m_vecVelocity. 2018-05-13 21:16:50 +03:00
shavit
11c1e67933 Added shavit_misc_maxcp and shavit_misc_maxcp_seg. 2018-05-13 21:16:31 +03:00
shavit
cbb1af3bd0 Made CP save targetname/classname, both are very efficient now! 2018-05-13 21:16:06 +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
7e5f9c7c85 Added shavit_misc_speclist for misc's !speclist
Who to show in !specs?
* 0 - everyone
* 1 - all admins (admin_speclisthide override shavit_misc_speclist to bypass)
* 2 - players you can target
2018-05-08 15:58:12 +03:00
shavit
e3c8aaed70 Ensured SCPs with deleted replay data are gone. 2018-05-08 15:51:29 +03:00
shavit
d9222adaa3 Changed clan tag {time} to display only at 1 second or above. 2018-05-08 15:42:53 +03:00
shavit
a0c13d466c Fixed possible memory leak. 2018-05-07 18:24:27 +03:00
shavit
2cd0d3e2db Pop up SCP menu when changing from a segmented style. 2018-05-04 14:15:28 +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
e357131299 Changed weapon removal method. 2018-05-02 12:34:11 +03:00
shavit
a82a983b52 Fixed weapon cleanup when dropped by disconnected players. 2018-05-02 10:52:05 +03:00
shavit
fa78e70dbb Fixed manually going to spectator team. 2018-05-02 09:54:15 +03:00
shavit
ee713d829f Respect mp_humanteam in jointeam hook. 2018-05-02 09:45:12 +03:00
shavit
96bf46fdb9 Allow menu to reopen in case of missing frame array.
If you ever see this error happen and know how to reproduce it, report ASAP.
2018-05-01 22:31:04 +03:00
shavit
f8b5b1ef52 Adjusted max segmented CPs to 10.
In order to save server memory when many players are doing segmented runs.
2018-05-01 22:27:05 +03:00
shavit
66a2820808 Fixed segmented CP exploit 2.
Thanks @cytrus224.
You could borrow others' CPs on segmented styles and use their route.
2018-05-01 22:15:03 +03:00
shavit
647701c28d Fixed segmented CP exploit 1.
Thanks @kidfearless.
Bug allowed you to build up speed unintentionally in segmented runs.
2018-05-01 22:10:50 +03:00
shavit
91696294c4 Fixed memory leak and a bug with segmented checkpoints.
The bugs allowed you to save more than 25 segmented checkpoints, and create replay data over the existing data which caused a memory leak.
2018-04-30 12:42:14 +03:00
shavit
afe0a261a7 Added segmented run support with replay integration.
Use `segments` in the `specialstring` property to enable segmented checkpoints.
2018-04-30 12:04:48 +03:00
shavit
43727c15fe Micro optimization in spawn point generation. 2018-04-28 09:41:50 +03:00
shavit
26a5e946cb Reworked gun shot muting behavior + TF2 support.
* TF2 is now supported for gun shot muting.
* The parameter mismatch issue in CS:GO is now fixed.
* Now gun shots will be muted for you only when you use !hide. Everyone else's gun shots except your own and of the player you spectate will be muted.
2018-04-15 21:56:31 +03:00
shavit
de78f1ceb0 Also use m_bDucking for CS:GO. 2018-04-06 03:38:15 +03:00
shavit
7ff9f4e2a8 Fixed teleporting to ducked CPs in both CS:S/CS:GO. 2018-04-06 01:35:34 +03:00
shavit
29df19b1b3 Adjusted misc's description. 2018-04-06 01:34:52 +03:00
shavitush
0f0628719c Added proper ducktime for checkpoints (CS:S). 2018-03-31 19:52:14 +03:00
shavit
431287cd56 Fixed being able to cycle to non-existent CPs. (#607) 2018-03-24 02:01:55 +03:00
shavit
4176d68b86 Fixed errors when saving checkpoints on inactive bots. 2018-03-24 01:46:09 +03:00
shavit
8a7d3d4de0 Fixed targetname exploit.
Thanks Reeve/acer.
2018-03-24 01:42:08 +03:00
shavit
02beaad597 Reverted footstep muting.
Not that great in CS:GO unfortunately, and makes scroll styles unplayable in CS:S
2018-03-15 00:17:41 +02:00
shavit
a01bbefe39 Reset targetname upon restarting with practice mode.
Might not be the ideal solution, hope it is though.
2018-03-10 18:19:05 +02:00
shavit
2ac410926a Added the ability to save CPs from the replay bot. (#525)
This isn't perfect due to limitations, but it motsly works well!

* Surf-HSW styles won't save their WASD settings.
* Stamina will not be valid for scroll styles.
* Strafes/sync won't be saved from the bot.
2018-02-06 11:14:49 +02:00
shavit
34a4f9e4bb Fixed CP saving while not spectating a valid player. (#525) 2018-02-06 11:12:20 +02:00
shavit
5d3034664e Added setting 4 to shavit_misc_prespeed.
It allows you to stop prespeeding after a certain amount of velocity (shavit_misc_prestrafelimit), rather than only limit prestrafing.
2018-02-06 10:42:31 +02:00
shavit
36686e37b0 Fixed restart not removing pause status. (#590) 2018-02-04 15:38:38 +02:00
shavit
7cd9fbef9b Fixed states not applying correctly on style/track changes. (#588) 2018-02-04 10:26:10 +02:00
shavit
bb2571cd08 Add TF2 spawn point generation. 2018-02-04 10:25:27 +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
917fe7e683 Fixed style changes not restarting with built in zones. (#582) 2018-01-22 18:58:17 +02:00
shavit
757e9de8c6 Fixed zone offset being wrong for point 1 (#585) 2018-01-22 18:33:47 +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
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
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
74e3e74f32 Added shavit_misc_jointeamhook 2018-01-03 21:28:27 +02:00
shavit
16cc4caea2 Rewrite clan tag handling. 2017-12-24 23:40:23 +02:00
shavit
f06437084f Added Discord server to README 2017-12-11 09:56:12 +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
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
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
db441dd28c Fixed checkpoint translation/speed. 2017-11-15 02:46:57 +02:00
shavit
934fc5d1e7 Extend checkpoints to work while spectating (#525) 2017-11-15 02:31:05 +02:00
shavit
26acaf57fb Changed default value for shavit_misc_resettargetname (#523) 2017-11-15 01:49:02 +02:00
shavitush
70e885c25f Restructured files. 2017-10-24 01:05:09 +03:00