Commit Graph

98 Commits

Author SHA1 Message Date
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
BoomShot
21cd90597b Add Natives for SetStart/DeleteSetStart 2021-03-10 23:58:32 -05:00
rtldg
ad9581ce2e add sm_b%d for bonuses and sm_s%d for stages 2021-03-11 02:09:23 +00:00
rtldg
16a8ba33d1 copy bonus1 zone settings to the rest of the bonuses 2021-03-11 01:22:02 +00:00
KiD Fearless
9ea63fab11 Merge branch 'very_good_yes' 2021-03-07 14:15:56 -07:00
rtldg
65f58219bd misc changes & stockify GetSpectatorTarget 2021-03-07 03:25:56 +00:00
rtldg
5f59c57c4f brackets and oversights 2021-03-06 09:54:03 +00:00
rtldg
45dd960d3e remove PrintToChatAll from shavit-zones 2021-03-04 05:30:13 +00:00
deadw1nter
32336e5ab6 Merge remote-tracking branch 'upstream/very_good_yes' into delete_replay 2021-02-24 10:44:29 +08:00
KiD Fearless
d18d3f8fb5 Merge branch 'master' of https://github.com/shavitush/bhoptimer 2021-02-18 07:02:24 -07:00
KiD Fearless
e7f20d7209 Fix compiler error 2021-02-18 07:02:18 -07:00
Nairda
ed90da0eb8
l2 indent (#1006)
follow the spaghetti
2021-01-20 13:25:36 -07:00
KiD Fearless
3ceb90644f Wrap debug print with debug check 2021-01-20 13:15:54 -07:00
KiD Fearless
590b70dd2f Sent players movetype to none to prevent movement processing, don't allow paused players to finish the map
Thanks acer for the report
2021-01-13 10:22:18 -07:00
KiD Fearless
976fc90d87 Speculatory exploit fix 2021-01-06 13:47:19 -07:00
Joe
a1e60b39fa
Multiple bonuses (#982)
* cleanup GetTrackName()

* a few more changes to change mod_zone_bonus & add Track_Bonus_Last

* fix undefined symbol sTrack

* fixup !bwr for multiple bonuses

* fix GetTrackName() after I broke it

* add bonus number param to help text of sm_bwr

* fix !wr after I broke it adding !bwr [bonus number]

* ignore checkpoint zones for now because nothing is ready for them

* update points for bonus #2 through #8 at same time

so instead of something like `9 (track count) * 22 (style count)` queries, it'll do `3 (main, bonus1, rest of bonuses) * 22 (style count)` queries and the rest of the bonuses on the recalc all in the same query
2020-11-30 09:40:45 -07:00
Joe
f69f761685
only print the stage time message once per stage (#965)
* only print the stage time message once per stage

* show stage message every time when segmenting

* add missing Shavit_OnStageMessage forward include
2020-11-30 09:35:40 -07:00
Herman Simensen
35878fc81d
Fix offset bug and add GetStageZone native (#948)
* fix bug and add GetStageZone native

* Update Native

Now preloads stage zone data on map start.
2020-10-04 07:54:48 -06:00
kidfearless
48f051f78c
Update very_good_yes from master (#932)
* Add Convar to restrict noclip in start zone

* remove unused translation file

* Require the enum struct size to be passed to natives

This should hopefully prevent Invalid memory access from plugins compiled on older version of the timer. If an enum struct is changed then plugins compiled on older version of the timer will be forced to be recompiled to match the version they are using.

* Fix save states not tracking preframes

Misc. name changes for natives. And a somehow possible exception fixed when getting a record.

* Add hitbox/center mass cvar (#930)

* Add optional cvar for player center of mass/player hitbox for touching zones

* 2.5.7a Final Changes

fix spelling mistake
add missing optional native
tabify spaces

Co-authored-by: Nairda <38843773+Nairdaa@users.noreply.github.com>
2020-07-07 17:37:17 -06:00
Kyle
e75617e191 Fix admin menu
Fix for adminmenu late load or reload
2020-03-07 13:28:31 +08:00
KiD Fearless
3283a26d45 Added Convar_class methodmaps for timer convars 2020-01-22 17:16:37 -07:00
KiD Fearless
8f39aa6521 Added stages to shavit-zones 2019-12-29 21:00:06 -07:00
shavit
fd76d6d1c4 Fixed prebuilt zones not working right after plugin reload or server start. 2019-07-24 15:52:51 +03:00
shavit
d54b42405a Fixed !end for prebuilt zones (#820). 2019-07-24 15:52:27 +03:00
shavit
fd121092c8 Refactored database handles so that there are multiple instead of a single one. 2019-05-31 17:32:03 +03:00
shavit
0650d20eff Removed ancient SetPrefix code and put it in a stock function instead. 2019-05-31 17:03:27 +03:00
shavit
f8e385fda5 Added better indicators for speed limit zone creation. 2019-05-14 05:06:58 +03:00
shavit
26dd200408 Changed "No Speed Limit" zones to "Custom Speed Limit" (#797). 2019-05-14 04:56:26 +03:00
shavit
a7c743cf29 Added custom airaccelerate zones and some natives. (#797)
Shavit_GetZoneData, Shavit_GetZoneFlags, and Shavit_InsideZoneGetID
2019-05-14 04:27:39 +03:00
shavit
b6b78f8eab Added flag to force zones to be drawn (#798). 2019-05-14 03:44:42 +03:00
shavit
058b88b98c Added zone flags and data to mapzones table. 2019-05-14 03:25:15 +03:00
shavit
7bc010b82b Made cursor zoning a default. Get used to it 2019-04-14 22:45:20 +03:00