Commit Graph

350 Commits

Author SHA1 Message Date
haooy
21a7b58c82 Reset players hp when needed
Some checks failed
Compile / Build SM ${{ matrix.sm-version }} (1.12) (push) Has been cancelled
Compile / Release (push) Has been cancelled
Reset players hp when needed
2025-10-08 00:05:10 +00:00
mourningsickness
0b0be25c78
shavit-misc.sp - don't stop timer on tpto if paused with pause movement enabled (#1249) 2025-07-15 00:46:59 +00:00
Awesomerly
354c2445c2
Startzone speed limit flexibility (#1219)
Some checks failed
Compile / Build SM ${{ matrix.sm-version }} (1.12) (push) Has been cancelled
Compile / Release (push) Has been cancelled
* Add config flag for MaxPrestrafe override

* Allow zoners to edit startzone data

* Use start zone data field for prestrafe limit

* Add prespeed type 6 that behaves like 5 and prevents prehopping

* Fix formatting

* Bodged up code for 1 second prehop cooldown on prestrafe mode 6

* Make anti prespeed a little bit better (maybe????)

* Tiredly twiddle with prespeed style 6 impl

* Add description to maxprestrafe style-setting

* nitpicky styling things

* Use GetGameTickCount instead of GetSysTickCount

* ;

---------

Co-authored-by: rtldg <55846624+rtldg@users.noreply.github.com>
Co-authored-by: rtldg <rtldg@protonmail.com>
2025-04-12 15:54:54 +00:00
olivia
2726865399
shavit-misc Add cvar UnNoclipOnRestart (#1232)
Some checks failed
Compile / Build SM ${{ matrix.sm-version }} (1.12) (push) Has been cancelled
Compile / Release (push) Has been cancelled
* shavit-misc Add cvar UnNoclipOnRestart


Add functionality to turn off noclip on timer restart, disabled by default u.u

I used to use a separate plugin I made for this, but figured it should be in the main plugin itself as a cvar instead. Since adding as a cvar, may as well see if it is wanted upstream.

* shavit-misc.sp shavit_misc_unnocliponrestart 1 by default (^:
2025-04-11 01:41:20 +00:00
swaggamer69
78f55f9a1a
swap sm_p to sm_noclip in shavit_misc_noclipme description (#1230)
Some checks failed
Compile / Build SM ${{ matrix.sm-version }} (1.12) (push) Has been cancelled
Compile / Release (push) Has been cancelled
2025-03-23 06:48:02 +00:00
rtldg
ad48aa3345 fix some advertisements colors not working 2025-02-11 03:51:53 +00:00
rtldg
16a927cd91 drop support for sourcemod 1.10 2024-04-23 20:53:18 +00:00
rtldg
309aa7a189 get the shavit_misc_prespeed 1&&>=3 working again with the on-ground timer 2023-06-21 01:41:07 +00:00
azalty
ca60971410
Godmode fix for DMG_CRUSH and point_hurt (#1188)
* godmod fix for DMG_CRUSH and point_hurt

* Added the "shavit_misc_godmode 4" option

* fix error about `default` case not being last. `default` can be removed too since the convar has min/max limits

---------

Co-authored-by: rtldg <55846624+rtldg@users.noreply.github.com>
2023-04-29 14:59:44 +00:00
xhaooy
9eceb51ea6 reset hp on restart #1187
Co-authored-by: rtldg <rtldg@protonmail.com>
2023-02-26 05:48:19 +00:00
rtldg
bb49da4d9c add !specbot to shavit-misc as an alias for !spec ... (which makes it spec the replay bot if it exists) 2022-12-30 12:12:00 +00:00
rtldg
a7e3fe517c tf2: fix 0vel underwater & hook PreventBunnyJumping 2022-11-08 21:11:18 +00:00
rtldg
a6da4358de tf2: only check for 'jointeam spectate' so we don't break the class menu popup 2022-11-02 23:09:05 +00:00
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