Commit graph

250 commits

Author SHA1 Message Date
GenericHeroGuy
a9c66ec217 Set lua_compatmode for console commands and cvar functions
Thanks Indev for finding this oopsie and the patch for command code
2025-12-16 23:23:16 +01:00
GenericHeroGuy
bcb0eb95cc More fastcmp cleanup 2025-12-11 21:58:37 +01:00
GenericHeroGuy
e733394ded New Lua item API + cleanup 2025-12-08 20:54:36 +01:00
yamamama
69c50c94d5 Lua support + compat for voices 2025-11-26 07:49:18 -05:00
GenericHeroGuy
f7c1c474e6 Clean up and consolidate all item cooldown code
* The "unique item" flag has moved to kartitem, and split to accomodate
  shields (item slot only, not paper items)
* "BGoneTime" renamed to "CooldownTime"
* indirectitemcooldown has been folded into the existing cooldown system,
  all results with the indirect flag share the highest cooldown time
* Added cooldown debugger to kartdebugdistribution
* Fixed Thunder Shield not resetting cooldown when killing an SPB
2025-11-09 22:00:48 +01:00
GenericHeroGuy
efac1d27c2 Item refactor, part 1
Too much shit to explain, read the diff (you should anyway!)
Very sloppy, expect lots of fixes
TODO: SOC it all, separate "active odds" table, how to handle alt items
2025-11-06 22:59:02 +01:00
GenericHeroGuy
0251d9cab9 Add kartitempush, to push bananas/orbis/jawz/proxmines out of item boxes 2025-11-04 16:22:31 +01:00
GenericHeroGuy
c173a2dcd6 Fix transitive dependencies on k_waypoint.h 2025-10-29 23:34:44 +01:00
NepDisk
65cea70c05 Merge pull request 'Cherries™️ Part 2' (#175) from cherries into blankart-dev
Reviewed-on: https://codeberg.org/NepDisk/blankart/pulls/175
2025-10-24 20:20:57 +02:00
NepDisk
a8609d7204 Un-shitify function.acp1 pointers 2025-10-23 23:26:26 -04:00
NepDisk
7296d9932d handle more memory allocation failure cases
5f394cd938
2025-10-23 21:28:19 -04:00
toaster
22f6c8b532 Rework time limit a bit
- Make timelimitintics handled a bit more like gamespeed, encore, frantic, etc - update on mapload/starttime, not during gameplay
    - Use default setting if can't change rules - this is a surprise tool that will help us later
- Have it properly update when adjusting gametype from the menu
    - Cleaned up SV_StartSinglePlayerServer to do this
- Remove CV_SAVE to prevent time limit bruh moments
2025-10-23 16:28:39 +02:00
LJ Sonic
71f14c1a0e Do not archive nil table keys 2025-10-19 15:28:07 -04:00
NepDisk
735600b0a7 invalidate more things for safety 2025-10-18 11:19:14 -04:00
Anonimus
a697f924c8 Introduce the goner table
I'm Wing Gaster, the royal scientist!
2025-10-15 07:30:50 -04:00
Anonimus
1f392e1cee Item littering toggle
With item littering off, dropped items immediately despawn themselves
2025-10-12 01:19:19 -04:00
NepDisk
151bb79d85 Combine LUA_Archive and LUA_Unarchive 2025-10-07 12:36:36 -04:00
NepDisk
c3bf7e643d Revert "try Netsyncing this stuff"
This reverts commit 2f337ee3d6.
2025-09-24 12:37:24 -04:00
NepDisk
bc4fb8a9c6 Merge pull request '[FEAT] Vectors matrices quaternions' (#117) from vectors-matrices-quaternions into blankart-dev
Reviewed-on: https://codeberg.org/NepDisk/blankart/pulls/117
2025-09-24 18:28:38 +02:00
NepDisk
9df538fe32 Merge branch 'blankart-dev' into AirDrop 2025-09-22 15:35:20 -04:00
Anonimus
fb5b72a600 Add bumpspark as a TA modifier
Also a bunch of other things in relation to that
Kart mode has bumpspark off, Blan mode uses "keep drift, lose charge", and Tech has bumpspark enabled
2025-09-22 02:04:03 -04:00
NepDisk
ffa7850bb6 AirDrop Starting Commit
This introduces a new optional feature called Airdropping. When holding brake in the air you will start to fall faster. If you have rings active and have rings on you, you Ring Drop to fall even faster and with less delay. The ringboost output from this move is weaker then using rings normally making it so always using ring drop isn't the best play
2025-09-20 00:41:08 -04:00
NepDisk
2f337ee3d6 try Netsyncing this stuff 2025-09-18 10:31:53 -04:00
Anonimus
bb1f65fcc1 Fix compiler/linker fussing and inconsistencies
Some things got lost in translation in the revert
2025-09-18 04:10:34 -04:00
LJ Sonic
18d54fc07b Implement vectors, matrices and quaternions 2025-09-17 22:27:36 -04:00
JugadorXEI
dc9bec000a Bot library for Lua (botvars getter/setter, bot functions) 2025-08-31 14:16:49 +02:00
NepDisk
9d0c396c2d Implement Drafting toggle
This is based on an older version of tether with number tweaks and a visual overhal designed to fit our needs. Takes some inspiration from the open assets slipstream mod from v1 for some number tweaks and the visual aspect. The speedboost has been rebalanced to be stronger for low speeds than before in a way where low speeds don't get shafted nor do they overshine high speed. High weight has had its leniency nerfed and general radius has been lowered to 2560 from 3072.
2025-08-25 17:03:00 -04:00
NepDisk
fae4c7c084 Hide mobj_t warning from demo archival 2025-08-20 17:40:27 -04:00
NepDisk
b593545b68 Comment out Lua stack warning for now 2025-08-15 15:24:56 -04:00
NepDisk
a4b6934cc5 Basic unified text input port 2025-08-14 22:57:29 -04:00
NepDisk
2d57e09fae Waypoints library for Lua
https://git.do.srb2.org/KartKrew/RingRacers/-/merge_requests/81
2025-08-11 18:02:27 -04:00
NepDisk
ff74274e99 Merge branch 'blankart-dev' into replaycompat 2025-08-02 19:08:05 -04:00
NepDisk
d164d97fc0 Fix Alt invin conflict with rings and expose some of it to lua 2025-08-02 13:04:04 -04:00
GenericHeroGuy
08726d4098 Fix mobj reading, fix standings goof 2025-08-02 02:16:53 +02:00
GenericHeroGuy
0ab3957717 Add compat to Lua unarchiving 2025-08-02 00:11:27 +02:00
NepDisk
63c244b381 Entirely remove player iterate loops from getting the dedicated server player
This was very annoying for writing lua and kind of redundent when you can already get the serverplayer from server
2025-07-04 03:05:35 -04:00
NepDisk
2f84779d41 Update rest of the existing files to use blankart branding 2025-07-01 00:23:30 -04:00
NepDisk
f004b36dbb Revert 'Merge pull request 'File loading refactor' (#68) from wadstrbuf into blankart-dev'
This reverts commit f72475b557, reversing
changes made to 0c89c85aae.

Sorry Generic this branch is really cool but it needs more work. I shouldn't have merged it too early...
2025-06-30 01:45:01 -04:00
NepDisk
6983e6bcd3 Properly invalidate other player lua data 2025-06-28 23:41:50 -04:00
GenericHeroGuy
92c59ddbcb Merge branch 'blankart-dev' into wadstrbuf 2025-06-27 18:46:47 +02:00
GenericHeroGuy
4ffd4621e4 Let's clean this shit up properly
lumpinfo_t is now private. Wanna iterate thru lumps? Use the W_* functions
2025-06-25 00:43:46 +02:00
NepDisk
02196b622c Allow reading and writing *time variables from SOC and Lua
This should also for simple edits such as extending hyudoro length without janky lua scripts
2025-06-24 10:44:48 -04:00
GenericHeroGuy
927f30e51f Aww yeah, string buffers baby! 2025-06-24 01:05:56 +02:00
NepDisk
b087b5e372 Port JugadorXEI's Terrain library for Lua
Credits go to JugadorXEI for the code in this. https://git.do.srb2.org/KartKrew/RingRacers/-/merge_requests/103\#d1c6f6fa1ba8207cb6aaef9f4a47d9a0b6b8b5c1

Modifications have been made to account for extra terrainflags, new terraintypes and removal of Ring Racers specfic types
2025-06-02 14:38:33 -04:00
NepDisk
950c6b4f2d Add support for max translations 2025-05-26 17:38:32 -04:00
NepDisk
d5fdd9957f Fix splitscren parties not working in kart scripts 2025-04-21 20:20:35 -04:00
LJ Sonic
3f30e97609 No longer store wadnum in sprnames 2025-04-10 09:54:02 -04:00
NepDisk
f338eec51a Merge pull request 'Hardcoded Stacking and Chaining' (#33) from stackingmaybe into blankart-dev
Reviewed-on: https://codeberg.org/NepDisk/blankart/pulls/33
2025-03-26 18:30:19 +00:00
NepDisk
f0b6ef89eb stacking pt.3: start work on chaining 2025-03-25 18:03:39 -04:00
GenericHeroGuy
a609c7b5ce Replace prevmenu with menustack
menustack[0] replaces both menuactive and activeMenuId
Hopefully this is the last major change to the codebase...
2025-03-23 01:47:19 +01:00