Commit Graph

65 Commits

Author SHA1 Message Date
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
shavit
54b2371b70 Modernized custom spawn points setup and added multi-track support (#756). 2019-03-27 14:50:43 +02:00
shavit
ee1dddc8c7 Changed track changing in zones menu to be easier (#597). 2019-03-27 11:31:43 +02:00
shavit
5fca6ded0c Added decreasing grid snap button (#743). 2019-03-25 14:00:23 +02:00
shavit
bbccdcf28a Removed ancient table migration code (#758).
Should speed up initial load after map change by a lot! I believe this is now useless.
2019-03-25 10:20:23 +02:00
shavit
463b8a857b Major optimizations to database structure.
* in table `playertimes` add `time` to the `map` index - it should look like this:
```sql
INDEX `map` (`map`, `style`, `track`, `time`)
```

* in all tables, change all CHAR(x) to VARCHAR(x). the following are the changes:
- `chat.auth VARCHAR(32)`
- `chat.ccname VARCHAR(128)`
- `chat.ccmessage VARCHAR(16)`
- `users.auth VARCHAR(32)`
- `users.country VARCHAR(32)`
- `users.ip VARCHAR(64)`
- `maptiers.map VARCHAR(128)`
- `playertimes.auth VARCHAR(32)`
- `playertimes.map VARCHAR(128)`
- `playertimes.date VARCHAR(16)`
- `mapzones.map VARCHAR(128)`
2019-03-25 09:33:34 +02:00
sneak_it
90227dd1e7 change default zone modifier to 16 units 2019-03-23 21:52:56 -04:00
shavit
055eb29509 Made !hud less confusing. 2019-02-01 23:08:25 +02:00
shavit
3114eec03f Got rid of the cached cvars bullshit
protip: don't follow hosties' coding conventions that shit sucks mad dick
2018-12-27 06:42:02 +02:00
shavit
2ab6c57e1f Refactored whole plugin to use enum structs
SourceMod 1.10 is now a requirement.
2018-12-24 00:31:50 +02:00
shavit
0aa4c69d85 Prioritized custom spawns > server zones > prebuilt zones 2018-12-15 04:41:44 +02:00
shavit
d1d594503e Dropped dynamic arrays for strings, unless necessary. 2018-09-23 04:16:23 +03:00
shavit
81dbdedfba Added !deletemap (#668) 2018-09-15 17:26:11 +03:00
shavit
b2ce7daa46 Retroactively ignore spawn point settings in zone config.
(to prevent errors from users who update from an earlier version)
2018-05-13 23:36:15 +03:00
shavit
67ec34a069 Use correct index for zone config. 2018-05-13 21:21:06 +03:00
shavit
a1a318b007 Fixed SQL error on new setups. 2018-05-13 21:14:10 +03:00
shavit
1ba79fcc09 Removed flat zone cvar, added shavit-zones config instead.
Removed custom spawn from cfg to prevent confusions.
2018-05-13 21:13:13 +03:00
shavit
c1b93bfdff Opt-in to per-plugin adminmenu integration rather.
Rather than creating the category via core and then adding items on it.
2018-05-02 10:23:43 +03:00
shavit
b7db4b55c3 Scaled slide zones scale with speed/gravity. 2018-04-28 09:53:33 +03:00
shavit
e2e60bdc70 Code style adaptions. 2018-04-15 21:56:48 +03:00
shavitush
5ddbbdcede Fixed built-in triggers not saving spawn point before map changes. 2018-03-31 19:38:56 +03:00
shavit
507c9c90cd Fixed teleport zone insertion to allow a track immediately. (#604) 2018-03-19 17:29:56 +02:00
shavit
bb654fe29e Added logging for admin actions in shavit-zones. 2018-03-15 00:14:34 +02:00
shavit
bf46c7aac0 Updated EmptyVector to support NULL_VECTOR. 2018-03-10 18:18:45 +02:00
shavit
d99548abd7 Fix wrong entities being removed. 2018-02-02 10:27:40 +02:00
shavit
009c849a6c Fixed !b and !bend for built in zones. (#582) 2018-01-22 18:53:32 +02:00
shavit
757e9de8c6 Fixed zone offset being wrong for point 1 (#585) 2018-01-22 18:33:47 +02:00
shavit
13b243f1d7 Adjusted the grid visualisation's alpha. 2018-01-13 09:35:41 +02:00
shavit
f092b76f7b Hotfix for error log spam. 2017-12-30 05:08:03 +02:00
shavit
ebb3203c05 Added native zones support (#491)
CPs aren't implemented because the timer itself doesn't support them.
2017-12-30 05:06:33 +02:00
shavit
dd4234ae00 Added SnapToGrid function to make code cleaner. 2017-12-30 04:11:14 +02:00
shavit
2c30ef252e Changed grid snap's visualization. (#569) 2017-12-30 03:21:41 +02:00
shavit
4681e82e90 Fixed nonsense with KZ button hooking. 2017-12-20 09:18:56 +02:00
shavit
990bbb802d Added slide zones (#558) 2017-12-16 10:27:02 +02:00