Commit graph

588 commits

Author SHA1 Message Date
GenericHeroGuy
51fbf12903 Start by clearing out a bunch of warnings 2025-12-28 02:00:47 +01:00
yamamama
c8b0a0483b Expose K_GetSpeedPercentage to Lua 2025-12-26 03:43:50 -05:00
yamamama
8bb3482bc5 Expose the Arrow Bullet scalar to Lua
Very much for prototyping reasons
2025-12-26 03:43:41 -05:00
NepDisk
7249273ca3 Revert "Kill Alt. Invin."
This reverts commit f414006e66.
2025-12-22 20:23:45 -05:00
yamamama
f414006e66 Kill Alt. Invin. 2025-12-22 20:05:13 -05:00
yamamama
d031776ed3 Introduce handleboost
Copying the system directly from RR 2.4
2025-12-20 23:41:45 -05:00
Indev
2fe0fcf14c Make music credit animation arguments optional in lua S_ShowMusicCredit
Signed-off-by: NepDisk <nepdisk@noreply.codeberg.org>
2025-12-16 18:28:53 -05:00
GenericHeroGuy
eb2cb338db Add compatibility for KRITEM constants 2025-12-16 22:10:20 +01:00
yamamama
c9b3e5c45a Use Y_ItemListActive in Lua contexts 2025-12-14 18:35:56 -05:00
NepDisk
81dc08b9c3 Allow boostinfo to be read and set
Yes I'm aware you can only read what lua sets in the hud but theres not much I can do about that. This should still let mobjthinker,  prethinkframe and thinkframe to read boost data though
2025-12-13 22:59:46 -05:00
NepDisk
b17601c1a5 Clean up v1 UB for G_BuildMapName Lua 2025-12-13 13:05:47 -05:00
NepDisk
1fbdf0f0ec Recreate UB in v1 luas for gBuildMapName 2025-12-13 12:02:52 -05:00
yamamama
b937c0519c Reformat the stupid cvar 2025-12-12 21:38:16 -05:00
yamamama
a77355889b Add some itemlist functions to Lua
Proper library... at some point.
2025-12-12 21:38:16 -05:00
GenericHeroGuy
bcb0eb95cc More fastcmp cleanup 2025-12-11 21:58:37 +01:00
NepDisk
6d6cb09280 Convert most strcmp/stricmp to fastcmp/fasticmp 2025-12-11 13:00:32 -05:00
NepDisk
9c57956d63 Expose more Kart functions to Lua 2025-12-08 18:39:21 -05:00
GenericHeroGuy
e733394ded New Lua item API + cleanup 2025-12-08 20:54:36 +01:00
yamamama
6aa50b62d7 Add support for Alt. item patches 2025-12-07 20:38:41 -05:00
minenice55
43caabf3c7 expose K_SetItemOut and K_UnsetItemOut to lua 2025-12-06 18:50:02 -05:00
yamamama
74b76b8471 Merge remote-tracking branch 'origin/next' into subvsdub
Nep taking a sledgehammer to the codebase as refactors are happening :,)

# Conflicts:
#	src/g_demo.c
2025-12-01 17:05:58 -05:00
GenericHeroGuy
891459b53b Change all voice arrays to be exposed as arrays in Lua
For the sake of consistency and future expansion!
Also expose mobj->voice (read-only for now, hopefully), and fix missing
NOSET for player->voice_id
2025-12-01 22:29:34 +01:00
minenice55
e7fc5226ec expose K_IsMissileOrKartItem 2025-12-01 13:41:03 -05:00
GenericHeroGuy
aebe13c2d6 Whole-diff garbage collection 2025-11-30 22:25:52 +01:00
yamamama
fd3ced710b Readd skin voices to Lua
Featuring more reroute nonsense
2025-11-29 21:54:44 -05:00
yamamama
51a005a7de Refactor voices
* Tie all voices to skins, allocate voices during skin allocation and patching
* Bring back voice.name, kill voice.parent, add voice.id
* Lua compatibility for voices (again) soon (hopefully)
2025-11-29 20:51:25 -05:00
yamamama
14753a4534 Merge remote-tracking branch 'origin/next' into subvsdub 2025-11-29 11:07:05 -05:00
minenice55
1897fdab73 expose some item throwing related functions to lua 2025-11-28 11:20:56 -05:00
yamamama
3f23e3b00d Use srtlcpy for voice name conversions 2025-11-26 07:49:25 -05:00
yamamama
22ff92ea43 Voice -> KartVoice (mostly)
Guest-starring: META_VOICE_ARRAY
2025-11-26 07:49:25 -05:00
yamamama
fbbb5c9343 Lua voice allocation and setters
Idiot proofed these as much as I could; setting arrays in this language is hell
2025-11-26 07:49:24 -05:00
yamamama
69c50c94d5 Lua support + compat for voices 2025-11-26 07:49:18 -05:00
Anonimus
4b9f9999cd Kartvoice_t
Supercedes the soundsid array and may allow for a dubbing system later on
2025-11-26 07:46:37 -05:00
NepDisk
380e504d98 Revert "Use x and y on point of collide instead of trymove end x and y when available"
This reverts commit 88c42e3116.
2025-11-22 22:36:23 -05:00
NepDisk
88c42e3116 Use x and y on point of collide instead of trymove end x and y when available 2025-11-22 21:59:23 -05:00
NepDisk
c030d46462 [PATCH] Fix up Rumble and LED stuff and add extra drift stuff to rumble
Thanks Alug!
2025-11-20 16:49:35 -05:00
NepDisk
b337a9e69a Port Saturn's rumble and gamepad LED systems 2025-11-20 14:39:37 -05:00
yamamama
6e86c7af83 Expose some functions to Lua 2025-11-17 19:06:35 -05:00
NepDisk
19224629d9 Merge pull request 'Refactor item system' (#180) from itemstuff into blankart-dev
Reviewed-on: https://codeberg.org/NepDisk/blankart/pulls/180
2025-11-16 01:32:37 +01:00
NepDisk
1bc89c3fa7 If flags are not specified, assume 0 for P_DoPlayerExit 2025-11-13 10:02:02 -05:00
GenericHeroGuy
15c64731e4 Make kartitemtype_e unsigned, replace KITEM_SAD with MAXKARTITEMS
Plus some misc fixes/changes (per-map initialization in one place)
2025-11-12 22:06:05 +01:00
minenice55
48dce534e2 implement item usage cooldown (xItemLib feature)
mainly to by used by lua scripts
2025-11-12 00:38:41 -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
Anonimus
a7508fa923 Expose a bunch of functions to Lua 2025-11-09 03:25:12 -05:00
GenericHeroGuy
96b766fb56 Merge branch 'blankart-dev' into itemstuff 2025-11-08 16:34:13 +01:00
NepDisk
d7ed03fab9 Remove M_Memcpy
Was quite literally a wrapper that did nothing.
2025-11-08 02:00:30 -05: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
Anonimus
a697f924c8 Introduce the goner table
I'm Wing Gaster, the royal scientist!
2025-10-15 07:30:50 -04:00
GenericHeroGuy
aa64b9aeed Let flame shield punt hazards 2025-10-13 21:41:48 +02:00
GenericHeroGuy
efd6779ef7 Refactor player shield management
shieldtracer has been moved to player_t, replacing curshield, in order to
maintain a Single Source of Truth(tm) and to help ourselves and Lua
scripters in the future
2025-10-13 20:23:17 +02:00