Commit graph

34 commits

Author SHA1 Message Date
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
James R
9df5a4b25f Conflicts a59c03fef 08d087c6b 2021-02-27 03:32:19 -08:00
Sally Coolatta
9d7ec0ab8f Merge SRB2 next
Probably doesn't compile yet, but I got rid of all of the conflicts for anyone who wants to take a stab at it.
2021-02-27 05:18:36 -05:00
LJ Sonic
079df8df4d Merge branch 'fix-stacktrace' of https://git.do.srb2.org/STJr/SRB2.git into next
# Conflicts:
#	src/dehacked.c
#	src/dehacked.h
2020-11-29 21:54:15 +01:00
GoldenTails
d673604b48 Split dehacked.c into multiple files. 2020-11-23 21:42:26 -06:00