Commit Graph

337 Commits

Author SHA1 Message Date
rtldg
fdbbc11d2a add !autoreset as alias for !autorestart 2022-09-15 13:15:39 +00:00
Isaac Boaz
e3aab46e01
Added !autorestart | Feat/autorestart (#1170)
* Add autorestart

* Revert HUD Change

* small changes

* Update shavit-misc.sp

Co-authored-by: rtldg <55846624+rtldg@users.noreply.github.com>
2022-09-15 12:07:40 +00:00
rtldg
bdea503697
add typo handler for 1r -> !r and 1b -> !b 2022-08-15 10:32:16 +00:00
jedso
578636d528
[TF2] Fix broken NoWeaponDrops (shavit-misc) (#1160)
* Fix broken shavit_misc_noweapondrops for TF2

* Set dropped weapon lifetime OnConfigsExecuted
2022-07-25 16:59:58 +00:00
rtldg
e322606492 typo in shavit_misc_bad_setlocalangles_fix implentation 2022-07-21 18:05:11 +00:00
rtldg
3e29099ab8 ensure we have a valid AdvertisementCycle index 2022-06-16 13:04:12 +00:00
rtldg
e3aac2d24e
zones wip (#1143)
* backup a lot of this zone_cache_t stuff since i'm going to do something else first

* AAAAAAAAAAAAAA

* add the sTarget checking

* this pr will get squashed so this message doesn't matter

* wip Shavit_RemoveZone

* wip ZF_Solid and TODO notes

* move hook thing

* do some zone insert stuff that doesn't reload *every* zone

* condense some zone editing global variables

* add some spaces to some ifs

* remove gV_MapZones

* remove random loop

* big change

* remove ClearZone()

* .

* ..

* add speed to zone beam settings

* add bhop_n0bs1_css stripper cfg for shit zone

* ...

* remove draw timer to OnConfigsExecuted because interval cvar

* change string for mapfixes print

* wew

* rename iSource to iForm and add sSource

* add Shavit_ReloadZones() and rename some source things

* add shavit-zones-http.sp

* add a getarray

* adjust the http api format slightly

* remove Shavit_GetStageZone() & fix zone inserts

* api update

* convar edits

* increase buf size

* wrong buf...

* normalize points inside Shavit_AddZone

* rename ZonesNotLocal to ZonesNotSQL

* small cleanup

* add the zone hooking menu stuff

* make the confirm menu Exit button STOP DRAWING!!!

* only try to draw trigger_multiples

* asdf

* typo

* improvements

* add distance to menu

* use PassesTriggerFilters like rngfix

* finish some docs

* make dist be meters

* more hooking tele things

* remove all this migration stuff

* add entity under crosshair

* shorten stage translation message
2022-06-12 14:43:16 +00:00
rtldg
79baadf541 add shavit_misc_bad_setlocalangles_fix 2022-05-27 03:16:44 +00:00
rtldg
4bfa75a32c replace many instances of NULL_VECTOR because sourcemod is fucking stupid 2022-05-26 09:19:39 +00:00
rtldg
ef3ca621c4 add more contributors & copyright attributions. mostly done via git blame but also it's also likely i missed some people. 2022-05-25 11:43:57 +00:00
rtldg
c8ed191d11 m_iPrimaryAmmoType can be -1 for knives 2022-04-26 14:55:35 +00:00
rtldg
a25417cc8a add infinite ammo options for all guns to shavit_misc_weaponcommands 2022-04-26 14:44:59 +00:00
rtldg
fb5c247953 add some checks if shavit-zones is loaded 2022-04-15 15:51:54 +00:00
Shahrazad
6d208a8595
merge CP menus & shavit-kz.sp, etc. (#1137)
* fix normal CP menu spams on changing the style from non-kz to kz styles

* fix normal CP menu spams on changing from non-kz to kz styles, again

* merge OpenKZCPMenu() into OpenNormalCPMenu() and rename it to OpenCPMenu()

* fix handle error on server restart in KZCP styles

* 1. Added "kzcheckpoints_ontele" and "kzcheckpoints_ontele" style settings(merged in `shavit-kz.sp`).
2. Added "force"(ignore style access) parameter for "Shavit_LoadSnapshot()" and "Shavit_LoadCheckpointCache()".
3. Made "segments" as a style setting instead of special strings.
   (use "segments" as specialstrings is still feasible)

note: maybe better to change TAS's default ranking multiplier to "0.0" since segmented style is also "0.0".

* 😵‍💫

* updated shavit-checkpoints.sp

* updated style-settings.sp
2022-04-11 13:58:18 +00:00
GAMMACASE
8f07c1d510
Fix targetname and classname locking (#1135)
* Move resettargetname cvars to shavit-zones

* Prevent Touch function to proceed when it should be skipped
2022-03-24 14:20:35 +00:00
GAMMACASE
0fee1862c8
Change the behaviour of shavit_misc_resettargetname (#1123)
* Redo shavit_misc_resettargetname

Also changes the way event abuses are fixed

* Obsolete shavit_misc_resettargetname/classname cvars

Also few minor optimisations to the code

* Revert the deletion of shavit_misc_resettargetname/classname

* Move targetname/classname resets to OnStartPre() forward

* Rename shavit_misc_resettargetname cvar

* Move event reset code to shavit-zones

Also replaces PhysicsCheckForEntityUntouch() function call with PhysicsRemoveTouchedList()

* don't hook teleport on bots & some random code-style changes

* remove added whitespace

Co-authored-by: rtldg <55846624+rtldg@users.noreply.github.com>
2022-03-18 02:17:19 +00:00
rtldg
807baa13ad make sure a timer works 2022-02-27 07:09:04 +00:00
rtldg
98ee179927 make prespeed_ez_vel work with just angles too 2022-02-21 18:31:15 +00:00
rtldg
525b62753b change prespeed_ez_vel velocity vector calculation 2022-02-20 22:42:57 +00:00
rtldg
22c9e50ed7 remove some warnings & TODOs 2022-02-09 22:28:16 +00:00
rtldg
a0153de9f8 don't let mp_humanteam get in the way of jointeam 1 (for css spectate menu prompt on first join) 2022-02-04 02:21:28 +00:00
rtldg
0000000868 use Plugin_Stop instead of Plugin_Handled in command-listener 2022-01-21 08:39:08 +00:00
rtldg
0000000b2b Revert "update scoreboard/clantag more often" -- css scoreboard update interval is 1s
This reverts commit a8016dff00.
2022-01-20 16:50:39 +00:00
rtldg
00000008fd make sure the z isn't scaled just in case for prespeed_ez_vel 2022-01-20 18:45:34 +00:00
rtldg
894ecdff48 make sure the DumbSetVelocity only happens if we scale prespeed speed 2022-01-19 09:41:09 +00:00
rtldg
3d40d4f809 add !adverts 2022-01-15 12:19:17 +00:00
rtldg
f4d2d6d653 fix memory leak in spec_next/spec_prev listener. thx @Ciallo-Ani 2022-01-07 16:19:43 +00:00
rtldg
0c91c19ba6 trim whitespace & add licenses 2022-01-01 10:15:28 +00:00
EvanIMK
4ec8a620be add Shavit_IsClientUsingHide() 2022-01-01 07:13:31 +00:00
rtldg
8e0736e3d3 add prespeed_ez_vel 2021-12-31 18:58:30 +00:00
rtldg
900083b321 make ihatemain & advertisements silent messages 2021-12-30 09:25:14 +00:00
rtldg
0a99f06ff4 mess around with the timer starting & restarting code 2021-12-30 09:24:12 +00:00
rtldg
35391f36d1 make stoptimer confirmation menu work with styles and add some more forwards 2021-12-29 09:24:18 +00:00
rtldg
62c2a26e48 make spectate command use !spec handler 2021-12-29 09:24:18 +00:00
rtldg
53aeec31f2 get more stoptimer confirmation menus working 2021-12-29 09:24:18 +00:00
rtldg
396f2017c5 add prespeed_type, blockprejump, nozaxisspeed, and restrictnoclip as available style settings 2021-12-21 00:38:14 +00:00
rtldg
7ca35b908b Revert "shavit_misc_staticprestrafe -> shavit_core_staticprestrafe"
This reverts commit c4783eae37.
2021-12-21 00:38:06 +00:00
rtldg
a8016dff00 update scoreboard/clantag more often 2021-12-15 12:57:51 +00:00
rtldg
6573e0cbbc add shavit_misc_resetclassname_main and such 2021-12-15 01:57:57 +00:00
rtldg
86b23b33a2 fix some kz button restarting things & add track param to Shavit_MarkKZMap() & Shavit_IsKZMap() 2021-12-05 01:52:04 +00:00
rtldg
f3ec01870b don't display stop confirmation when in practice mode 2021-11-29 04:46:47 +00:00
rtldg
8ce9cd97b4 fixup some gun spawning stuff 2021-11-12 19:02:31 +00:00
rtldg
b9c6c47db4 swap #include <shavit> with <shavit/core> 2021-10-28 21:18:53 +00:00
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
49ea502662 rename guns.sp to weapon-stocks.inc 2021-10-17 05:08:30 +00:00
rtldg
f724863bc7 move some weapon stocks to another file 2021-10-16 13:54:50 +00:00
rtldg
5d26e76ec2 remove shavit_misc_bhopsounds 0 2021-10-16 13:32:30 +00:00
rtldg
73b17941ce change !hide's settransmit hook to also hide dead players like btimes
so players can't use a speclist cheat in csgo
2021-10-16 13:26:53 +00:00