Commit graph

54 commits

Author SHA1 Message Date
Alug
660ffd9383 init superactions global
was missed before
2026-02-17 21:49:24 -05:00
NepDisk
3ed99e27ef Fix evalmath not properly getting sound effects 2026-02-15 10:16:49 -05:00
yamamama
bf6f86a5fb Expose airdrop flags to Lua 2026-02-04 11:21:25 -05:00
GenericHeroGuy
eb2cb338db Add compatibility for KRITEM constants 2025-12-16 22:10:20 +01:00
NepDisk
e5df08bc43 Some more UDMF conversion changes 2025-11-19 15:20:57 -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
GenericHeroGuy
ed861e5c1b Untested Changes Theory 2025-11-08 16:30:40 +01:00
GenericHeroGuy
3c64f345fb SOC the items... finally! 2025-11-07 23:23:23 +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
NepDisk
6a85aed2d8 Add backwards compat for FULLSTASIS 2025-10-25 14:44:02 -04:00
NepDisk
a8609d7204 Un-shitify function.acp1 pointers 2025-10-23 23:26:26 -04:00
NepDisk
2f84779d41 Update rest of the existing files to use blankart branding 2025-07-01 00:23:30 -04:00
GenericHeroGuy
0009807746 Unify info lookup functions for SOC/Lua/ACS
Use MAX* constants instead of -1 for invalid values, because enum signedness
is implementation-defined
2025-05-18 17:37:47 +02:00
GenericHeroGuy
c3fe5e80ac Screw checking for nameofs being zero, just keep count of mobjs/states 2025-05-18 14:46:24 +02:00
GenericHeroGuy
4e66cb67a8 Fix returned mobj/state index in compatmode 2025-05-14 19:03:29 +02:00
GenericHeroGuy
711944350e Deduplicated freeslotting code 2025-05-14 18:56:28 +02:00
GenericHeroGuy
e3f8019b84 And menus 2025-05-14 16:43:20 +02:00
GenericHeroGuy
1b095d220e Why stop there? Go for skincolors too :^) 2025-05-14 16:06:11 +02:00
GenericHeroGuy
1793c2ea95 Use string buffers for mobjs and states 2025-05-14 15:35:26 +02:00
NepDisk
d8e1083429 Refactor some HUD elements and bring colorized hud support 2025-05-05 17:51:39 -04:00
NepDisk
06d35a774e Merge branch 'blankart-dev' into portv1objects 2025-04-15 16:41:57 -04:00
NepDisk
1d1f697f2f Compat changes for TOLs 2025-04-15 16:39:19 -04:00
NepDisk
4369ed7a07 Merge branch 'blankart-dev' into portv1objects 2025-04-10 09:57:55 -04:00
LJ Sonic
3f30e97609 No longer store wadnum in sprnames 2025-04-10 09:54:02 -04:00
NepDisk
a580bc9433 Port v1 objects pt 4.5: extra stuff 2025-04-09 16:39:58 -04:00
GenericHeroGuy
fedf429c9b Merge branch 'blankart-dev' into socmenus 2025-03-21 13:58:19 +01:00
GenericHeroGuy
6a43aac0d5 Fix the Lua Linedef Flags conundrum 2025-03-17 23:01:09 +01:00
GenericHeroGuy
0e30c0c5eb SOC menus, part 1 2025-03-15 04:03:44 +01:00
NepDisk
037a75df08 Match is battle 2025-03-03 13:49:16 -05:00
NepDisk
c25e287d40 More lua fixes 2025-02-21 19:24:44 -05:00
toaster
88ae398eea Rework nextmap to be automatic
- Refactor significantly (now has its own func, `G_GetNextMap`)
    - If gametype uses cups, iterate through cups to find the current level, then grab the next valid level
    - If not, get the next valid mapheader for your gametype
    - SOC `nextmap`/`marathonnext` is not just deprecated but REMOVED
    - Hide the NEXTMAP_ constants again, but leave support dummied out for if we have them publically accessible again
- Also get rid of a bunch of OTHER mapheader stuff we're never gonna use
    - NiGHTS Grades? NOPE
    - Vanilla titlecard patches? NOPE
    - Boss music fadeout/replacement? NOPE
    - Select Heading? NOPE
    - You've been blocked.
- Don't show maps without lumps on the level select list
- this is me being petty, but making it NOTIMEATTACK in SOC instead of TIMEATTACK so we can reconsider the maps with/without them.
2025-02-11 02:24:01 +01:00
GenericHeroGuy
3024a95ac1 Assorted Lua fixes, part 2 2025-01-28 17:52:08 +01:00
GenericHeroGuy
390fa8c30f Assorted Lua fixes, part 1 2025-01-28 02:29:43 +01:00
NepDisk
a148d4e17b Seperate out itemflags 2025-01-27 12:24:19 -05:00
NepDisk
f7ab1af75b Merge pull request 'Port Lua based backwards compat to hardcode.' (#6) from luacompat into ACS2
Reviewed-on: https://codeberg.org/NepDisk/blankart/pulls/6
2025-01-09 18:32:28 +00:00
Sal
7d269db4cc Merge branch 'lua-first-freeslot' into 'master'
Lua: add S_FIRSTFREESLOT, MT_FIRSTFREESLOT, SPR_FIRSTFREESLOT

See merge request KartKrew/Kart!1667
2025-01-09 13:20:17 -05:00
NepDisk
ac3e8827a7 Rename back to thundershield, update doomdata.h ml_flags, update constants 2024-12-31 01:31:03 -05:00
NepDisk
38600f1eb6 Powers->Player_t metatable 2024-12-28 13:48:02 -05:00
NepDisk
2d573e1923 PT 2 of Kartstuff->Player_t mapping, setter 2024-12-27 17:43:03 -05:00
NepDisk
e406da29c8 PT 1 of Kartstuff->Player_t mapping 2024-12-27 17:22:15 -05:00
NepDisk
a2fcc4bc20 UDMF cherry-pick cherry-pick 2024-08-20 02:47:00 -04:00
Hannu Hanhi
32a66b1585 Fix Lua stack overflow in LUA_UpdateSprName 2024-08-01 03:11:33 -04:00
Hannu Hanhi
6367af6cd7 LUA_EnumLib optimizations for constant value access
- constants are stored into _G after first use

- made LUA_EvalMath's dedicated Lua state permanent so it can also benefit from these optimizations
2024-08-01 03:11:20 -04:00
Sally Coolatta
087c15c1ef Add PRECIP_ to enum lib 2022-05-31 09:08:01 -04:00
Sally Coolatta
4c3f89cdf7 Allow freesloting & editing precipprops
Allows for custom weather types.

In SOC:
```Freeslot
PRECIP_GROOVY

Weather PRECIP_GROOVY
Type = MT_PARTICLE
Effects = PRECIPFX_THUNDER|PRECIPFX_LIGHTNING```

In Lua:
```freeslot("PRECIP_GROOVY")

precipprops[PRECIP_GROOVY] = {
    type = MT_PARTICLE,
    effects = PRECIPFX_THUNDER|PRECIPFX_LIGHTNING
}```

Then in level header, simply set `Weather = PRECIP_GROOVY`.

Other properties are part of the object itself:
- Falling speed is set as the object's speed
- Sound ID is set via the object's SeeSound
- Sound frequency is set by the object's Mass.
2022-05-31 09:03:06 -04:00
toaster
884064049e * Allocate the "MISSING" patch only once, statically, at first boot via missingpat, and prevent it from being freed.
* Rework HU_UpdatePatch to HU_UpdateOrBlankPatch with a "required" boolean.
    * If desired graphic is not present in resources:
        * If required is true, return `missingpat`.
        * If false, return NULL as before (font compatibility).
    * Add an alias with the previous function signature, so you don't need to add a million `true`s everywhere.
* Remove a ton of irrelevant graphics the game attempts to cache only because of code inherited from vanilla SRB2.
* Remove the unused hudinfo system, also inherited from vanilla SRB2.
2022-05-14 14:56:02 +01:00
toaster
bf6b9c6fed Remove music slot compatibility
# Conflicts:
#	src/deh_lua.c
#	src/lua_baselib.c
2022-03-18 13:54:03 +00:00
James R
82f4364eb4 pedantic: fix misc leniencies and GNU-isms 2022-02-20 03:28:22 -08:00
toaster
b3d006b093 structs gunched 2021-04-17 00:27:13 +01:00
toaster
71cceaaf3c Readded Kartstuff and Karthud access to Lua, resolving both #143 and #138. 2021-03-28 23:10:30 +01:00