Commit Graph

213 Commits

Author SHA1 Message Date
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
rtldg
870c62a8c9 don't tele on style-change while dead & fix !r while dead not respawning 2022-01-01 05:02:09 +00:00
rtldg
0a99f06ff4 mess around with the timer starting & restarting code 2021-12-30 09:24:12 +00:00
rtldg
1509e77728 hopefully stop timer commands menu from being wiped on plugins reload 2021-12-29 08:55:20 +00:00
rtldg
c68d50a4d0 show 'Refresh menu' on every zone menu page 2021-12-27 11:03:12 +00:00
rtldg
39c9d96924 don't do zone offset stuff on mins/maxs if the offset is bigger than the zone's x/y half-distance
xc_fox_shrine_japan_v1 will crash if i make a 16unit zone at the top (maybe elsewhere too?) so that's why this was added.
2021-12-21 00:33:45 +00:00
rtldg
6952bab715 add some unused zone things until i get around to messing with it more 2021-12-21 00:33:45 +00:00
rtldg
04eea994d8 allow any number of kz buttons 2021-12-07 05:37:49 +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
f02ac94bbf let you press climb_endbuttons without being on the ground 2021-12-05 00:52:48 +00:00
rtldg
2067dc7c38 change zones.cfg parsing to jump to keys instead of hoping they're in order 2021-11-29 04:34:23 +00:00
rtldg
c55531168d add Zone_NoTimerGravity and Zone_Gravity 2021-11-28 21:56:05 +00:00
rtldg
3c5958eb93 add some hacky menu stuff so the zone returns after hitting exit on the zone-edit menu 2021-11-27 20:19:38 +00:00