mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-23 16:32:36 +00:00
Expose K_IsPlayingDisplayPlayer to Lua
This commit is contained in:
parent
a08fd3daec
commit
5b25572ca1
1 changed files with 11 additions and 0 deletions
|
|
@ -4720,6 +4720,16 @@ static int lib_kIsPlayerInSpecialState(lua_State *L)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int lib_kIsPlayingDisplayPlayer(lua_State *L)
|
||||||
|
{
|
||||||
|
player_t *player = *((player_t **)luaL_checkudata(L, 1, META_PLAYER));
|
||||||
|
INLEVEL
|
||||||
|
if (!player)
|
||||||
|
return LUA_ErrInvalid(L, "player_t");
|
||||||
|
lua_pushboolean(L, K_IsPlayingDisplayPlayer(player));
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
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));
|
||||||
|
|
@ -5204,6 +5214,7 @@ static luaL_Reg lib[] = {
|
||||||
{"K_PointLimitForGametype",lib_kPointLimitForGametype},
|
{"K_PointLimitForGametype",lib_kPointLimitForGametype},
|
||||||
{"K_Cooperative",lib_kCooperative},
|
{"K_Cooperative",lib_kCooperative},
|
||||||
{"K_isPlayerInSpecialState",lib_kIsPlayerInSpecialState},
|
{"K_isPlayerInSpecialState",lib_kIsPlayerInSpecialState},
|
||||||
|
{"K_IsPlayingDisplayPlayer",lib_kIsPlayingDisplayPlayer},
|
||||||
|
|
||||||
{"K_GetCollideAngle",lib_kGetCollideAngle},
|
{"K_GetCollideAngle",lib_kGetCollideAngle},
|
||||||
{"K_AddHitLag",lib_kAddHitLag},
|
{"K_AddHitLag",lib_kAddHitLag},
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue