Commit Graph

225 Commits

Author SHA1 Message Date
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
rtldg
9210b84d50 fix some native definition & optional things 2023-03-06 23:38:04 +00:00
rtldg
7bd954880a RecalcHighestStage typo caught by Haze 2023-02-23 20:15:00 +00:00
rtldg
b468f9d67a fix stale zone cache entries being checked, preventing start/end zone placement sometimes 2023-01-04 20:49:56 +00:00
rtldg
e0c59404c3
supress warning about missing explicit return value 2022-11-25 21:30:49 +00:00
rtldg
2bcd20fac7 make ZF_Origin store floats with decimals instead of as hexadecimal
(this makes it more readable in json dumps of zones)
2022-11-15 21:33:36 +00:00
rtldg
12d7e5590d zones typo galore 2022-11-14 20:42:59 +00:00
rtldg
9cf9d7ff27 shavit-zones-http -> shavit-zones-json & some shit 2022-11-14 19:47:08 +00:00
jedso
f7ff341131
make shavit_zones_box_offset a bool (which also affects height offset) & correct TF2 bounding box values (#1179)
* Add correct gCV_BoxOffset default value for TF2 bounding box

* Include correct height for TF2 bounding box in SetZoneMinsMaxs

* make shavit_zones_box_offset a bool & use height

* use division-by-2 instead of shift

Co-authored-by: rtldg <55846624+rtldg@users.noreply.github.com>
2022-11-13 04:26:30 +00:00
rtldg
5ccd0efd04 make the autostage thing start at 1. starting at 2 was dumb 2022-09-24 04:59:47 +00:00
rtldg
ea8f14fa07 use smaller zone widths for the epic zone edit axis stuff 2022-09-24 04:57:22 +00:00
rtldg
1c82605db5 draw zone edit axis sides thing 2022-07-22 22:42:40 +00:00
rtldg
bf25061444 de-page zone adjust menu 2022-07-20 15:32:54 +00:00
rtldg
1e7459a6c4 have the customzones cookie be long & no high bit shenanigans 2022-07-20 13:41:47 +00:00
rtldg
684ade8dd9 fix typo for czones 2022-07-18 01:03:30 +00:00
rtldg
4ac0b4da5d make the InsertZones cache.iDatabaseID setting more robust! 2022-07-11 13:20:11 +00:00
rtldg
5c14dfcc60 add ZF_Origin & fix a lot of broken button stuff 2022-07-05 04:45:20 +00:00
rtldg
27ec578c7d don't draw zones around hooked buttons 2022-07-05 01:56:23 +00:00
rtldg
0f7360f374 fix loop exiting early and error on invalid entity 2022-07-05 01:37:58 +00:00
rtldg
fb42a370fe update zone cache database id on zone creation 2022-07-05 00:51:15 +00:00
rtldg
8900e4b6ff open a menu for !deletesetstart 2022-07-04 21:19:27 +00:00
rtldg
72ae96e0c8 fix creating a zone and not being able to delete it without reloading the map 2022-07-04 21:03:58 +00:00
rtldg
bdfa61e3f9 fix !addspawn after zones wip pr 2022-06-29 19:23:40 +00:00
rtldg
4486528880 preliminary postgresql support 2022-06-23 09:10:22 +00:00
rtldg
d922cebf97 add auto stage thing #1147 2022-06-13 07:03:16 +00:00
rtldg
0f44dd1710 add shavit_core_log_sql & remove Database2/Transaction2 methmodmaps 2022-06-13 06:28:46 +00:00
rtldg
7c251ef81d add Back to admin commands to go back to admin menu 2022-06-13 05:42:40 +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
09917f91d9 fix adminmenu 2.0 2022-06-07 16:53:01 +00:00
rtldg
6fc6ca86bc remove unused/broken beamer code 2022-05-27 01:57:47 +00:00
rtldg
4bfa75a32c replace many instances of NULL_VECTOR because sourcemod is fucking stupid 2022-05-26 09:19:39 +00:00
rtldg
d8a9dd7d7b add sm_beamer 2022-05-26 08:44:37 +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
96ef03e458 make slay zones *actually* force suicide. only slay if timer != stopped 2022-05-22 07:46:13 +00:00
rtldg
acf47a11b1 add Zone_Speedmod for oblivious 2022-05-10 01:51:00 +00:00
rtldg
ab73e36a15 czones: use same settings for all bonuses & let more types be editable 2022-05-09 23:55:00 +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
840490cc54 this should let you change shavit_zones_box_offset without reloading the plugin 2022-02-21 18:39:28 +00:00
rtldg
fc4aac0c47 remove forgotten params & add !czone & maintain menu pos 2022-02-12 20:57:28 +00:00
NukoOoOoOoO
9c634868cb
sm_czones implementation (#1119)
* Initial czones implementation

* ok men

* read cookie

* :pepega:

* Update shavit-zones.sp

* UltraThin lets goooo

* Translation, ZoneDisplay_None

* format a little bit

* more readable

* Fix typo and i did this on phone

* getting translation properly, thank you haze <3

* make GetZoneName check for >=ZONETYPES_SIZE

* i dont know why this was in common.txt, maybe parallel universe is real

* some random things

* combine custom-zone cookies

Co-authored-by: rtldg <55846624+rtldg@users.noreply.github.com>
2022-02-12 20:49:20 +00:00
rtldg
a6ade753fe add startinair style setting 2022-02-10 22:02:52 +00:00
rtldg
9c4f626076 fix Shavit_GetZoneID :^) 2022-01-04 15:41:43 +00:00
rtldg
baa824e872 add Shavit_GetZoneTrack, Shavit_GetZoneType, and Shavit_GetZoneID 2022-01-04 14:25:51 +00:00
rtldg
0c91c19ba6 trim whitespace & add licenses 2022-01-01 10:15:28 +00:00
rtldg
ae0145430a remove some sourcemod 1.11 warnings 2022-01-01 10:15:18 +00:00
BoomShotKapow
3348e54316 SourceMod 1.11 dev changes & Query -> Query2 2022-01-01 10:12:53 +00:00
BoomShotKapow
b17979aad0 Minor fix to KillAllZones 2022-01-01 07:18:07 +00:00