Merge branch SRB2:next into expos-follow

This commit is contained in:
Krabs 2023-11-01 16:10:49 +00:00
commit d1a6290a69
2 changed files with 50 additions and 0 deletions

View file

@ -159,6 +159,9 @@ stages:
Debian testing GCC: Debian testing GCC:
stage: build stage: build
when: manual
image: debian:testing-slim image: debian:testing-slim
allow_failure: true allow_failure: true
@ -198,6 +201,8 @@ Debian testing GCC:
Windows x86: Windows x86:
stage: build stage: build
when: on_success
artifacts: artifacts:
paths: paths:
- "bin/" - "bin/"
@ -228,6 +233,8 @@ Windows x86:
Debian stable:amd64: Debian stable:amd64:
stage: build stage: build
when: on_success
artifacts: artifacts:
paths: paths:
- "bin/" - "bin/"
@ -270,6 +277,8 @@ Debian stable:amd64:
Debian stable:i386: Debian stable:i386:
stage: build stage: build
when: manual
artifacts: artifacts:
paths: paths:
- "bin/" - "bin/"
@ -311,6 +320,8 @@ Debian stable:i386:
Debian stable:arm64: Debian stable:arm64:
stage: build stage: build
when: manual
artifacts: artifacts:
paths: paths:
- "bin/" - "bin/"
@ -353,6 +364,8 @@ Debian stable:arm64:
Windows x64: Windows x64:
stage: build stage: build
when: manual
artifacts: artifacts:
paths: paths:
- "bin/" - "bin/"
@ -383,6 +396,8 @@ Windows x64:
Debian stable Clang: Debian stable Clang:
stage: build stage: build
when: manual
allow_failure: true allow_failure: true
artifacts: artifacts:
@ -422,6 +437,8 @@ Debian stable Clang:
Debian stable musl: Debian stable musl:
stage: build stage: build
when: manual
allow_failure: true allow_failure: true
artifacts: artifacts:
@ -459,6 +476,8 @@ Debian stable musl:
Debian testing Clang: Debian testing Clang:
extends: Debian stable Clang extends: Debian stable Clang
when: manual
image: debian:testing-slim image: debian:testing-slim
artifacts: artifacts:
@ -473,6 +492,8 @@ Debian testing Clang:
Debian testing musl: Debian testing musl:
extends: Debian stable musl extends: Debian stable musl
when: manual
image: debian:testing-slim image: debian:testing-slim
artifacts: artifacts:

View file

@ -1425,6 +1425,18 @@ static int lib_pGivePlayerRings(lua_State *L)
return 0; return 0;
} }
static int lib_pGivePlayerSpheres(lua_State *L)
{
player_t *player = *((player_t **)luaL_checkudata(L, 1, META_PLAYER));
INT32 num_spheres = (INT32)luaL_checkinteger(L, 2);
NOHUD
INLEVEL
if (!player)
return LUA_ErrInvalid(L, "player_t");
P_GivePlayerSpheres(player, num_spheres);
return 0;
}
static int lib_pGivePlayerLives(lua_State *L) static int lib_pGivePlayerLives(lua_State *L)
{ {
player_t *player = *((player_t **)luaL_checkudata(L, 1, META_PLAYER)); player_t *player = *((player_t **)luaL_checkudata(L, 1, META_PLAYER));
@ -2253,6 +2265,21 @@ static int lib_pDoMatchSuper(lua_State *L)
return 0; return 0;
} }
static int lib_pTouchSpecialThing(lua_State *L)
{
mobj_t *special = *((mobj_t **)luaL_checkudata(L, 1, META_MOBJ));
mobj_t *toucher = *((mobj_t **)luaL_checkudata(L, 2, META_MOBJ));
boolean heightcheck = lua_optboolean(L, 3);
NOHUD
INLEVEL
if (!special || !toucher)
return LUA_ErrInvalid(L, "mobj_t");
if (!toucher->player)
return luaL_error(L, "P_TouchSpecialThing requires a valid toucher.player.");
P_TouchSpecialThing(special, toucher, heightcheck);
return 0;
}
// P_SPEC // P_SPEC
//////////// ////////////
@ -4200,6 +4227,7 @@ static luaL_Reg lib[] = {
{"P_SpawnShieldOrb",lib_pSpawnShieldOrb}, {"P_SpawnShieldOrb",lib_pSpawnShieldOrb},
{"P_SpawnGhostMobj",lib_pSpawnGhostMobj}, {"P_SpawnGhostMobj",lib_pSpawnGhostMobj},
{"P_GivePlayerRings",lib_pGivePlayerRings}, {"P_GivePlayerRings",lib_pGivePlayerRings},
{"P_GivePlayerSpheres",lib_pGivePlayerSpheres},
{"P_GivePlayerLives",lib_pGivePlayerLives}, {"P_GivePlayerLives",lib_pGivePlayerLives},
{"P_GiveCoopLives",lib_pGiveCoopLives}, {"P_GiveCoopLives",lib_pGiveCoopLives},
{"P_ResetScore",lib_pResetScore}, {"P_ResetScore",lib_pResetScore},
@ -4246,6 +4274,7 @@ static luaL_Reg lib[] = {
{"P_FloorzAtPos",lib_pFloorzAtPos}, {"P_FloorzAtPos",lib_pFloorzAtPos},
{"P_CeilingzAtPos",lib_pCeilingzAtPos}, {"P_CeilingzAtPos",lib_pCeilingzAtPos},
{"P_DoSpring",lib_pDoSpring}, {"P_DoSpring",lib_pDoSpring},
{"P_TouchSpecialThing",lib_pTouchSpecialThing},
{"P_TryCameraMove", lib_pTryCameraMove}, {"P_TryCameraMove", lib_pTryCameraMove},
{"P_TeleportCameraMove", lib_pTeleportCameraMove}, {"P_TeleportCameraMove", lib_pTeleportCameraMove},