mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Expose K_MakeObjectReappear to Lua
This commit is contained in:
parent
915b4db6cd
commit
187f77fd6f
1 changed files with 12 additions and 0 deletions
|
|
@ -4740,6 +4740,17 @@ static int lib_kPlayerCanPunt(lua_State *L)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int lib_kMakeObjectReappear(lua_State *L)
|
||||||
|
{
|
||||||
|
mobj_t *mo = *((mobj_t **)luaL_checkudata(L, 1, META_MOBJ));
|
||||||
|
NOHUD
|
||||||
|
INLEVEL
|
||||||
|
if (!mo)
|
||||||
|
return LUA_ErrInvalid(L, "mobj_t");
|
||||||
|
K_MakeObjectReappear(mo);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
static int lib_kGetCollideAngle(lua_State *L)
|
static int lib_kGetCollideAngle(lua_State *L)
|
||||||
{
|
{
|
||||||
mobj_t *t1 = *((mobj_t **)luaL_checkudata(L, 1, META_MOBJ));
|
mobj_t *t1 = *((mobj_t **)luaL_checkudata(L, 1, META_MOBJ));
|
||||||
|
|
@ -5226,6 +5237,7 @@ static luaL_Reg lib[] = {
|
||||||
{"K_isPlayerInSpecialState",lib_kIsPlayerInSpecialState},
|
{"K_isPlayerInSpecialState",lib_kIsPlayerInSpecialState},
|
||||||
{"K_IsPlayingDisplayPlayer",lib_kIsPlayingDisplayPlayer},
|
{"K_IsPlayingDisplayPlayer",lib_kIsPlayingDisplayPlayer},
|
||||||
{"K_PlayerCanPunt",lib_kPlayerCanPunt},
|
{"K_PlayerCanPunt",lib_kPlayerCanPunt},
|
||||||
|
{"K_MakeObjectReappear",lib_kMakeObjectReappear},
|
||||||
|
|
||||||
{"K_GetCollideAngle",lib_kGetCollideAngle},
|
{"K_GetCollideAngle",lib_kGetCollideAngle},
|
||||||
{"K_AddHitLag",lib_kAddHitLag},
|
{"K_AddHitLag",lib_kAddHitLag},
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue