Commit Graph

745 Commits

Author SHA1 Message Date
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
2286344b8f Removed frames ArrayList deletion. 2018-05-14 03:17:56 +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
b2ce7daa46 Retroactively ignore spawn point settings in zone config.
(to prevent errors from users who update from an earlier version)
2018-05-13 23:36:15 +03:00
shavit
67ec34a069 Use correct index for zone config. 2018-05-13 21:21:06 +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
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
a572b20b89 Made viewangle recording use verified angles instead. 2018-05-13 21:14:44 +03:00
shavit
49705cf814 Fixed ArrayList ownership. 2018-05-13 21:14:21 +03:00
shavit
a1a318b007 Fixed SQL error on new setups. 2018-05-13 21:14:10 +03:00
shavit
1ba79fcc09 Removed flat zone cvar, added shavit-zones config instead.
Removed custom spawn from cfg to prevent confusions.
2018-05-13 21:13:13 +03:00
shavit
8a98fe96b9 Unrestricted movement when noclipping. 2018-05-09 19:55:15 +03:00
shavit
10f4cd2c2e Fixed percentile rankings being broken. 2018-05-08 22:25:02 +03:00
shavit
dc2eddf83f Fixed duplicated messages and console say. 2018-05-08 20:20:38 +03:00
shavit
3593e5a246 Fixed default colon character, increased MAXLENGTH_NAME. 2018-05-08 19:26:43 +03:00
shavit
a8a581e302 Bumped version to 2.1.3. 2018-05-08 19:04:30 +03:00
shavit
9461c29f71 Added my own minimal implementation of a chat processor.
* Removed Chat-Processor dependency.
* Added cvar `shavit_chat_colon`.
* Fixed inconsistencies with default chat messages.
2018-05-08 19:01:29 +03:00
shavit
b5a41ae4d0 Fixed chat color injection. 2018-05-08 16:31:36 +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
7b3e61563b Bumped version to 2.1.2 2018-05-07 18:53:31 +03:00
shavit
06250b7fe0 Assigned style ID 0 on connect, merged style gameplay setting updates.
Should solve the out-of-bound error.
2018-05-07 18:53:17 +03:00
shavit
07434d085d Fixed chat printing error. 2018-05-07 18:25:13 +03:00
shavit
8be2d1085c Adjusted replays to record when the timer is running. 2018-05-07 18:25:01 +03:00
shavit
a0c13d466c Fixed possible memory leak. 2018-05-07 18:24:27 +03:00
shavit
2a4ffbb162 Changed bot flag behavior to remove flags when needed. 2018-05-04 14:34:45 +03:00
shavit
2cd0d3e2db Pop up SCP menu when changing from a segmented style. 2018-05-04 14:15:28 +03:00
shavit
f2887fabfa Changed default +left/right block behavior.
* 1 now blocks movement, 2 also stops timer.
2018-05-03 17:00:23 +03:00
shavit
ff31efeaf5 Merge branch 'master' into very_good_yes 2018-05-03 16:00:05 +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
strafe
b51460fff3 Copy missing style string in shavit-replay + docs 2018-05-03 12:35:32 +01:00
shavit
4bcfae7e94 Don't show perf% for old records. 2018-05-02 13:54:01 +03:00
shavit
e357131299 Changed weapon removal method. 2018-05-02 12:34:11 +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
8861c388fe Added record count in !delete menu, disabled buttons when unnecessary. 2018-05-02 10:56:21 +03:00
shavit
a82a983b52 Fixed weapon cleanup when dropped by disconnected players. 2018-05-02 10:52:05 +03:00
shavit
799d6ba65b Added replay deletion to admin menu. 2018-05-02 10:30:44 +03:00
shavit
c1b93bfdff Opt-in to per-plugin adminmenu integration rather.
Rather than creating the category via core and then adding items on it.
2018-05-02 10:23:43 +03:00
shavit
fa78e70dbb Fixed manually going to spectator team. 2018-05-02 09:54:15 +03:00
shavit
0c59af68f1 Always respect shavit_replay_defaultteam. 2018-05-02 09:45:42 +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
99335a54f2 Fixed memory leak with Shavit_SetReplayData. 2018-05-01 22:25:29 +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
f30a99fa14 Fixed a bug when loading a state after finishing the map. 2018-04-30 13:07:56 +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
49d1dc0deb oops 2018-04-30 12:33:00 +03:00
shavit
4712edc803 Bumped version to 2.1.0
This is a very quick jump from 2.0.3, but segmented runs were something that was requested for very long time so it's justified.
2018-04-30 12:07:41 +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
41c2136b42 Added Shavit_HijackAngles.
This native hijacks the replay recording so that the current tick will have your desired angles recorded to the replay data.
2018-04-30 11:51:50 +03:00
shavit
499a395baf Added shavit_replay_botshooting.
This cvar can allow you to disable attacking buttons for bots. 0 will make the bots not press mouse1/mouse2 at all. 1 will only allow shooting, 2 will only allow right clicking and 3 will allow everything.
2018-04-30 01:10:51 +03:00
shavit
a03fc893c0 Bumped version to 2.0.3 2018-04-30 00:35:13 +03:00
shavit
f01ff69841 Merge branch 'master' into very_good_yes 2018-04-30 00:34:33 +03:00
shavit
050a77ca0a Merge remote-tracking branch 'origin/master' 2018-04-30 00:34:25 +03:00
shavit
b5f0f7b4c0 Fixed an issue where players get a wrong rank when actually unranked.
Thanks Nairda for finding this!
2018-04-30 00:34:14 +03:00
strafe
e90b847f08 Typos 2018-04-28 17:19:13 +01:00
shavit
fb18240253 Reworked sounds to emit properly in CS:GO. 2018-04-28 09:53:58 +03:00
shavit
b7db4b55c3 Scaled slide zones scale with speed/gravity. 2018-04-28 09:53:33 +03:00
shavit
43727c15fe Micro optimization in spawn point generation. 2018-04-28 09:41:50 +03:00
shavit
f63a05f2a9 Added documentation for Shavit_HasStyleAccess. 2018-04-26 18:59:30 +03:00
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
daa04fbf21 Bumped version to 2.0.2 2018-04-19 03:40:20 +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
e2e60bdc70 Code style adaptions. 2018-04-15 21:56:48 +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
a4ecd879b9 Fixed 'to rank' parameter for pecentile ranking. 2018-04-15 21:22:50 +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
shavitush
5ddbbdcede Fixed built-in triggers not saving spawn point before map changes. 2018-03-31 19:38:56 +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
b41db94b87 what the fuck sourcemod
this commit fixes an issue where you sometimes don't see the current chat title selected in the chat ranks menu

why does it happen? i don't know, i have no idea at all..
2018-03-24 03:02:15 +03:00
shavit
b38795cfcf Check for custom title flag continuously rather than cache it. (#608) 2018-03-24 02:06:16 +03:00
shavit
431287cd56 Fixed being able to cycle to non-existent CPs. (#607) 2018-03-24 02:01:55 +03:00
shavit
5b4f61837d Merge branch 'master' into css_hud_fixes 2018-03-24 01:48:39 +03:00
shavit
e004dd3d61 Bumped version to 2.0.1 2018-03-24 01:48:19 +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
cytrus224
0a413ebcec
Update shavit-timelimit.sp
Deleted min value of shavit_timelimit_default. Credits to Nickelony.
2018-03-21 16:29:33 +01:00
shavit
fdeceabcf0 Fixed CS:S HUD breaking apart after adding new styles without restart. 2018-03-20 04:32:47 +02:00
shavit
cc8dd17c07 Fixed CS:S HUD not showing empty line instead of track name. 2018-03-19 17:35:33 +02:00
shavit
507c9c90cd Fixed teleport zone insertion to allow a track immediately. (#604) 2018-03-19 17:29:56 +02:00
shavit
b8d7c4173f Bumped version to 2.0.0! 2018-03-18 11:34:29 +02:00
shavit
0cca32a766 Fixed wrong text. 2018-03-18 11:20:50 +02:00
shavit
256b21fd89 Fixed ccmsg using ccname as the variable. 2018-03-18 02:19:21 +02:00
shavit
3f3f9c3c0b Added {points} variable to chat titles.
Also extended the display text's limitations.
2018-03-17 23:26:14 +02:00
shavit
61cf6e09ba Fixed name not being replaced in CS:GO. 2018-03-17 23:03:43 +02:00
shavit
6808b833d7 Fixed chat titles compatibility with latest Chat-Processor. 2018-03-16 05:07:28 +02:00
shavit
045fbb03fe Fixed shavit_chat_customchat 0 not being respected. 2018-03-15 06:03:48 +02:00
shavit
90c12340ce Implemented chat titles and rankings integration (#499)
* Added {clan} variable.
* Check addons/sourcemod/configs/shavit-chat.cfg.
* Update your translations! Otherwise this won't work.
2018-03-15 05:37:21 +02:00
shavit
8d350bc012 Added plugin name to logs. 2018-03-15 01:40:04 +02:00
shavit
b6861033d0 Added logging for admin actions in shavit-wr. 2018-03-15 00:23:55 +02: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
bb654fe29e Added logging for admin actions in shavit-zones. 2018-03-15 00:14:34 +02:00
shavit
b46c7eadd7 Added Shavit_LogMessage native. 2018-03-15 00:06:12 +02:00
shavit
f726b6b05a Fixed a typo. 2018-03-14 23:59:09 +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
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
bf46c7aac0 Updated EmptyVector to support NULL_VECTOR. 2018-03-10 18:18:45 +02:00
shavit
8ec7f0004a Disallowed MOVETYPE_WALK to prevent issues with teleports. 2018-02-16 20:03:46 +02:00
shavit
ee7dd0972f Changed collision group of for bots to COLLISION_GROUP_DEBRIS_TRIGGER. 2018-02-16 20:03:25 +02:00
shavit
c9f2e06cc4 Shorten map name length. 2018-02-16 20:02:46 +02:00
shavit
8b3caf405a Removed trigger hooking from replay bots.
Replay bots will hit triggers/doors. This is necessary to fix an issue that recently got reported on Discord.
This will be problematic only in specific maps such as bhop_addict_v2 or kz_bhop_yonkoma, where music plays when the player has finished the map.
2018-02-16 20:02:34 +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
5e3277062f Fixed replay abortion after playback is done. (#592) 2018-02-06 10:29:45 +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
26fc6e0b38 Tweaked movetype/flag adjustments on bots. 2018-02-02 10:59:56 +02:00
shavit
d99548abd7 Fix wrong entities being removed. 2018-02-02 10:27:40 +02:00
shavit
8f51d4c964 Added mouse[2] to OnUserCmdPre. 2018-01-31 05:48:59 +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
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
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
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
5ba897e274 Fixed 'shavit_hud_ticksperupdate'. 2018-01-26 19:50:16 +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
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
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
a5a026e8c9 another oops 2017-12-10 01:54:43 +02:00
shavit
3710bfe170 Adjusted replay length. 2017-12-10 01:06:28 +02:00
shavit
ff8e20c44f Add chat message about entering an anti-cheat zone (#548) 2017-12-10 00:53:46 +02:00
shavit
1d8d43638b oops 2017-12-10 00:40:03 +02:00
shavit
b5181473b0 Fixed potential memory leak. 2017-12-10 00:39:03 +02:00
shavit
70c2c8e73e Workaround for WR deletion when rounding issues happen. 2017-12-10 00:34:31 +02:00
shavit
2f8be00a24 Added dynamic zone settings.
If you edit the plugin to add more zone tracks, now their zone settings will be respected too. To use this feature, copy the zone settings from the first one to the last one of each track, rename and modify. i.e. the diff for shavit-zones.cfg in this commit.
2017-12-10 00:29:34 +02:00
shavit
938b0d4f02 Added zone track enforcing (shavit_zones_enforcetracks) (#547) 2017-12-10 00:27:18 +02:00
shavit
a64b07d031 Fixed wall snapping not respecting grid snap (#541)
Not that great for maps where the mapper did a shitty grid setup. Use cursor position setup for those.
2017-12-10 00:04:27 +02:00
shavit
697fa9c5e7 Adjusted query priority (#542) 2017-12-09 23:37:49 +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
30acc1ec65 Fixed locking issue in replay 2017-11-28 18:53:46 +02:00
shavit
712afbbf20 Reimplemented Native_GetReplayLength 2017-11-25 11:59:11 +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
d0075a6115 Update WR deletion to properly delete new format replays. 2017-11-22 18:16:34 +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
cb250ee861 CallOnStyleChanged() where needed (#536) 2017-11-21 03:05:59 +02:00
shavitush
d371d99ff3 Fixed !rr selecting wrong row content. (#532) 2017-11-19 01:53:09 +02:00
shavitush
d443726fe3 Fixed issues with long names in !rr menu. 2017-11-19 01:43:38 +02:00
shavitush
af4a007c81 Fixed wrong WR count. (#532) 2017-11-19 01:34:32 +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
7ee7335140 Added per-track beam colors. (#508) 2017-11-17 08:41:58 +02:00
shavit
bb44534c93 Added replay bot integration with bhopstats. 2017-11-17 08:06:49 +02:00
shavit
b67edfcea0 Fixed a CS:S bug with timelimits. 2017-11-17 08:06:31 +02:00
shavit
e875280f32 What typo..? 2017-11-17 07:39:34 +02:00
shavit
47c69d1621 Added Shavit_ReloadReplay and Shavit_ReloadReplays (#528) 2017-11-17 07:29:29 +02:00
shavit
70475ea6e5 Fixed duplication of the zone drawing timer. 2017-11-17 06:05:09 +02:00
shavit
03973665d5 Fixed !ccname and !ccmsg with no arguments not showing current setting. 2017-11-15 05:33:06 +02:00
shavit
af1c2c9870 Fixed zones not appearing after changing to a map with more zones. 2017-11-15 05:26:48 +02:00
shavit
9c74b62a28 Fixed shavit-chat SQL error with remote databases. (#505) 2017-11-15 04:47:50 +02:00
shavit
61d4541361 Fixed double timer issue. 2017-11-15 04:47:28 +02:00
shavit
6ba9fe5499 Added cycling for zone drawing (#490) 2017-11-15 04:19:00 +02:00
shavit
6503b6573b Added Shavit_GetTimeForRank (#512)
Also fixed return value for Shavit_GetRankForTime's description.
2017-11-15 03:14:19 +02:00
shavit
f65f7f4411 Added "oldwr" parameter to Shavit_OnWorldRecord (#512) 2017-11-15 03:01:27 +02:00
shavit
ef539c1ac5 Fix potential issue with team chat. (#524) 2017-11-15 02:55:03 +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
shavit
76189611b9 Fix !bwr back button issues (#511) 2017-11-12 20:21:50 +02:00
shavit
6f42a78416 Fixed issues with replay playback (#521) 2017-11-12 20:09:02 +02:00
shavit
dd5090d286 Just to be fail-safe. 2017-11-12 19:44:00 +02:00
shavit
1c0c410020 Fix unranked message in a populated database (#519) 2017-11-12 19:39:28 +02:00
shavit
8d3b4fee07 Fixed !b teleporting to wrong spawn point (#522) 2017-11-12 19:28:07 +02:00
shavit
ed11f900e8 Fix invalid array index issue (#484)
L 11/05/2017 - 21:07:50: [SM] Exception reported: Invalid index 0 (count: 0)
L 11/05/2017 - 21:07:50: [SM] Blaming: shavit-wr.smx
L 11/05/2017 - 21:07:50: [SM] Call stack trace:
L 11/05/2017 - 21:07:50: [SM]   [0] ArrayList.Get
L 11/05/2017 - 21:07:50: [SM]   [1] Line 2202, E:\git\bhoptimer\addons\sourcemod\scripting\shavit-wr.sp::GetRankForTime
L 11/05/2017 - 21:07:50: [SM]   [2] Line 2038, E:\git\bhoptimer\addons\sourcemod\scripting\shavit-wr.sp::Shavit_OnFinish
L 11/05/2017 - 21:07:50: [SM]   [4] Call_Finish
L 11/05/2017 - 21:07:50: [SM]   [5] Line 1016, E:\git\bhoptimer\addons\sourcemod\scripting\shavit-core.sp::Native_FinishMap
L 11/05/2017 - 21:07:50: [SM]   [7] Shavit_FinishMap
L 11/05/2017 - 21:07:50: [SM]   [8] Line 2321, E:\git\bhoptimer\addons\sourcemod\scripting\shavit-zones.sp::StartTouchPost
2017-11-08 01:57:45 +02:00
shavit
bb05771440 Allow admins to see other admins in spectator list (#517) 2017-11-08 01:52:27 +02:00
shavit
0e19f08d6e Attempt to fix #516
Reset ranked styles upon style config loading.
2017-11-08 01:45:57 +02:00
shavit
f2146b6f9c Added Shavit_GetMapTier and Shavit_GetMapTiers (#504) 2017-11-04 18:58:15 +02:00
shavit
24c38788da Fix tier not updating in cache. 2017-11-04 18:39:01 +02:00
shavit
c3db507b85 S/HSW exploit fix 2017-11-03 01:14:27 +02:00
shavit
7e1ffd4846 Added procedural rank updates.
Ugly workaround but we can't use multiple queries in the same line in SourceMod.
2017-10-29 19:01:32 +02:00
shavit
f597b2dd5e Missed this one.. 2017-10-29 18:20:29 +02:00
shavit
a1629d839c Add indexes, VARCHAR >> CHAR(n).
BIG optimization.
2017-10-29 18:08:44 +02:00
shavit
96350387dc Optimized points updating
Got rid of a JOIN by directly setting the value. I'm still looking for a way to optimize this further, and this pull request sadly won't be merged until I do.
2017-10-27 07:42:09 +03:00
shavit
8fb7eadd9c Optimized UpdateRankedPlayers 2017-10-24 06:34:35 +03:00
shavit
ade4b001f8 Fix an issue where !rank may show points of another player.
I hope this won't be a bad solution, but I commented the code with a solution just in-case!
2017-10-24 06:23:08 +03:00
shavitush
70e885c25f Restructured files. 2017-10-24 01:05:09 +03:00