Commit Graph

129 Commits

Author SHA1 Message Date
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
rtldg
f238bbcb60 bug fixes for the prebuilt zonecache merging 2021-04-01 13:43:15 +00:00
rtldg
2d39b90564 wip merging prebuilt zones into zonecache, drawing prebuilt zones, and using prebuilt stages 2021-03-31 10:14:28 +00:00
rtldg
78ecccf7c4 change some cvar defaults 2021-03-23 10:14:34 +00:00
rtldg
d1e415498e add beam_ignorez to draw beams through walls when setting up zones #618 2021-03-22 11:02:49 +00:00
GAMMACASE
2843123712 Change TraceRay masks to use MASK_PLAYERSOLID 2021-03-21 08:17:39 +03:00
rtldg
f9825f8ca1 allow beams to be changed for each zone. add vanilla_beams and no_halo too 2021-03-14 01:43:53 +00:00
rtldg
bf7f68faec change all menus to display for at least 5 minutes 2021-03-14 00:03:10 +00:00
rtldg
3f7d3e3a59 speculative fix for timers starting when you're not on the ground 2021-03-11 13:09:36 +00:00
rtldg
f69d692bd6 don't allow setstart if !gB_ZonesCreated 2021-03-11 10:11:23 +00:00
rtldg
0cf6920328 use next track when copying zone settings 2021-03-11 09:51:09 +00:00
rtldg
17847d7cb0 add more setstart cmds, add anglesonly for floating bonuses, add missing create table, fix some sql ordering 2021-03-11 09:37:48 +00:00
BoomShot
63819a4e88 Implemented SetStart/DeleteSetStart into zones
The player's position and view angles when using sm_r, sm_b, and sm_start are saved into the startpositions table in the database. The primary key for each entry is a concatenation of their Steam ID, map name, and track number. It still needs to be tested on MySQL. The Natives have been tested in a separate plugin.
2021-03-11 01:25:46 -05:00