mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 20:41:46 +00:00
Expose P_DoAllPlayersExit to Lua
This commit is contained in:
parent
00ce9bcfa2
commit
4a2078aaa1
1 changed files with 11 additions and 0 deletions
|
|
@ -1729,6 +1729,16 @@ static int lib_pDoPlayerExit(lua_State *L)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int lib_pDoAllPlayersExit(lua_State *L)
|
||||||
|
{
|
||||||
|
pflags_t flags = luaL_checkinteger(L, 1);
|
||||||
|
boolean trygivelife = lua_optboolean(L, 2);
|
||||||
|
NOHUD
|
||||||
|
INLEVEL
|
||||||
|
P_DoAllPlayersExit(flags, trygivelife);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
static int lib_pInstaThrust(lua_State *L)
|
static int lib_pInstaThrust(lua_State *L)
|
||||||
{
|
{
|
||||||
mobj_t *mo = *((mobj_t **)luaL_checkudata(L, 1, META_MOBJ));
|
mobj_t *mo = *((mobj_t **)luaL_checkudata(L, 1, META_MOBJ));
|
||||||
|
|
@ -5439,6 +5449,7 @@ static luaL_Reg lib[] = {
|
||||||
{"P_GivePlayerLives",lib_pGivePlayerLives},
|
{"P_GivePlayerLives",lib_pGivePlayerLives},
|
||||||
{"P_MovePlayer",lib_pMovePlayer},
|
{"P_MovePlayer",lib_pMovePlayer},
|
||||||
{"P_DoPlayerExit",lib_pDoPlayerExit},
|
{"P_DoPlayerExit",lib_pDoPlayerExit},
|
||||||
|
{"P_DoAllPlayersExit",lib_pDoAllPlayersExit},
|
||||||
{"P_InstaThrust",lib_pInstaThrust},
|
{"P_InstaThrust",lib_pInstaThrust},
|
||||||
{"P_ReturnThrustX",lib_pReturnThrustX},
|
{"P_ReturnThrustX",lib_pReturnThrustX},
|
||||||
{"P_ReturnThrustY",lib_pReturnThrustY},
|
{"P_ReturnThrustY",lib_pReturnThrustY},
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue