Commit Graph

141 Commits

Author SHA1 Message Date
rtldg
f55419cd10 add more mapchooser cvars and move stuff around 2021-09-11 08:58:28 +00:00
rtldg
77bf06aa02 speed up !nominate and !map 2021-09-11 00:02:24 +00:00
rtldg
6818151c4b some zone stuff. sorry commit msg hard 2021-09-07 05:20:59 +00:00
rtldg
addf123025 precache zone stuff sooner in OnMapStart 2021-09-05 19:25:06 +00:00
rtldg
6f87974938 recreate zones in case the entity randomly disappears. might fix a bug? 2021-09-05 16:26:52 +00:00
rtldg
c0eaba7b37 still use angles even if setstart pos isn't in start zone 2021-09-02 13:33:04 +00:00
rtldg
f8eb56cd17 unload zones on plugin end (so reloading doesn't leave entities) 2021-09-02 13:18:45 +00:00
rtldg
831d46c4fa remove unnecessary check 2021-09-02 10:58:55 +00:00
rtldg
762c9a1923 swap GetTimerDatabaseHandle2 with Shavit_GetDatabase in a few places 2021-08-31 20:03:59 +00:00
rtldg
a62a5ca3bb increase zone life to help with flickering with a lot of zones 2021-08-28 21:23:31 +00:00
rtldg
ea5e6b8535 prebuilt zone cache fixes and menu changes 2021-08-28 17:52:49 +00:00
rtldg
2b4d77d281 add sql logging define 2021-08-18 15:10:42 +00:00
rtldg
14c10049ce insert prebuilt zones into db so !mapsleft and !loadunzonedmap work better 2021-08-17 14:45:15 +00:00
rtldg
e00b394356 change zone-intersection checks to only happen for start & end zones 2021-08-15 12:39:21 +00:00
rtldg
048fee9569 make start position use PointInBox for moved zones 2021-08-12 11:32:05 +00:00
rtldg
6bcb16b361 touch up some zone intersect stuff 2021-08-11 13:20:05 +00:00
rtldg
eab31036a4 fix grid snap visualization 2021-08-08 22:47:36 +00:00
rtldg
c441fa4fa7 prevent zones from being placed inside another zone 2021-08-08 22:43:27 +00:00
rtldg
c873f218a6 also make loadunzonedmap use lowercase 2021-08-08 15:55:15 +00:00
rtldg
6c5be61344 try to consistently use lowercase mapnames and PLATFORM_MAX_PATH for mapname buffers 2021-08-08 15:55:09 +00:00
rtldg
b68aba6fd2 reorganize some things to stop looping so much when a player joins 2021-08-01 18:07:06 +00:00
rtldg
a64a29263d make sm_loadunzonedmap use valve-virtual-fs 2021-07-31 07:53:02 +00:00
rtldg
82c6ab1f92 add shavit-mapfixes.cfg 2021-07-23 15:31:38 +00:00
rtldg
72b87d666f add another map to cvar description 2021-07-23 10:30:48 +00:00
rtldg
6dbc73fae3 add shavit_zones_prebuilt_visual_offset 2021-07-23 10:25:40 +00:00
OliviaMourning
af8ab48fc9 add shavit_core_pause_movement stuff
Co-authored-by: rtldg <55846624+rtldg@users.noreply.github.com>
2021-07-22 08:49:55 +00:00
rtldg
7c4a7c0c15 slightly unbreak old ssj plugins that used Shavit_InsideZone with 2 params 2021-07-22 05:52:40 +00:00
rtldg
57e6f9563d don't let zones positions be at the same spot 2021-07-15 08:44:32 +00:00
rtldg
7df75c4c35 don't kill zone entities in OnEntityDestroyed 2021-07-13 01:45:22 +00:00
rtldg
f2b9c13ec5 make sm_loadunzonedmap query use DISTINCT 2021-07-10 08:47:02 +00:00
rtldg
0063436f66 add sm_loadunzonedmap temporarily until I move it to shavit-mapchooser 2021-07-09 13:27:49 +00:00
rtldg
11137e9407 move zone modifier stuff around so they don't reset 2021-07-07 02:47:27 +00:00
rtldg
187e749352 unset gB_Late after use 2021-07-06 08:51:35 +00:00
rtldg
6f058127c4 make all plugins require dhooks so there's error spam due to them not loading 2021-07-06 02:22:35 +00:00
rtldg
eefaf5ebd0 don't clear gI_MapZones on Round_Start 2021-06-06 09:27:02 +00:00
rtldg
0f5f0870b2 normalize prebuilt zone names 2021-06-02 11:54:49 +00:00
rtldg
02fb3e2f7e unadd chatstrings_t parameter from Shavit_OnChatConfigLoaded because it's not worth having 2021-05-29 02:03:21 +00:00
rtldg
b381194139 clear iEntityID so we don't accidentally delete random entities 2021-05-23 10:03:00 +00:00
Dustin
d7e4a08e70
added missing prefix (#1049)
to prevent fails for people that are using a prefix 
[shavit-zones.smx] Timer (zones GetStageZone) SQL query failed. Reason: Table 'bhoptimer.mapzones' doesn't exist
Query callback. Number of returned results: 399, Maps added to g_aMapList:284, g_aAllMapsList.Length:287, g_mMapList:286
2021-05-18 07:16:44 +00:00
rtldg
3be13005e6 add chatstrings_t param to Shavit_OnChatConfigLoaded. add Shavit_GetStyleStringsStruct. add Shavit_GetChatStringsStruct. 2021-05-08 13:00:19 +00:00
rtldg
328f4301aa fix aborting zone edit 'destroying' the original zoone 2021-05-06 04:29:43 +00:00
rtldg
94a27a954e add Shavit_GetClientLastStage, Shavit_GetStageWR, and Shavit_GetStagePB 2021-05-01 00:42:41 +00:00
rtldg
a4a9d0840f raise restart teleport location by 1 unit 2021-04-30 21:12:10 +00:00
rtldg
96281d2f85 more wip stage stuff 2021-04-30 07:06:18 +00:00
BoomShot
2697e6c5b1 boomshot stages stuff
Move remaining shavit-rankings dependent calls (#1043)

If the shavit-rankings plugin isn't loaded, the calls to its natives will cause an exception and the client's messages will not be formatted correctly.

Add native for getting the number of stages

Implemented native for getting number of stages and allowed practice mode to view stage times.

Added WR stage time comparisons for when a user enters a stage zone.

It's important that the stage zone number starts at two. It may be preferred to remove the user input of stage numbers and just auto increment as stages are added. Stage 1 should be the start zone and just have any additional stages increment from there. I'll readdress this if it's necessary.

Add translations for WR stage time comparison messages

Accidentally undid a change from a previous commit.

I didn't have a merge conflict, so I'm unsure why it got replaced.

Combine stage time translations into one

Implemented suggestions to translations and changed the stagetimes table

The stagetimes table no longer uses auth as a primary key, so it will now replace the old WR stage time.
However, the auth is still stored, so it can be used to reference the player and potentially a players PB.

Update callback name for replacing stage time for logging.
2021-04-19 15:49:47 +00:00
rtldg
9a116a6e96 only cycle zone drawing when zone is actually drawn 2021-04-08 22:35:00 +00:00
rtldg
cb39acc33b remove stylesettings_t and break 3rd party plugins 2021-04-08 21:19:18 +00:00
rtldg
64d16342d8 check for BAD BAD BAD WRONG entities named mod_zone_bonus_start or mod_zone_bonus_end (bhop_somp_island is bad and does this) 2021-04-05 12:03:25 +00:00
rtldg
eb9c09be65 something something zones not loading 2021-04-04 08:34:43 +00:00
rtldg
d50a93db09 another prebuilt zonecache error thing 2021-04-01 14:29:12 +00:00