mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Expose K_IsSPBInGame to Lua
This commit is contained in:
parent
befde2e67b
commit
e720bdb5a2
1 changed files with 8 additions and 0 deletions
|
|
@ -4656,6 +4656,13 @@ static int lib_kPlayerBaseFriction(lua_State *L)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int lib_kIsSPBInGame(lua_State *L)
|
||||||
|
{
|
||||||
|
INLEVEL
|
||||||
|
lua_pushboolean(L, K_IsSPBInGame());
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
static int lib_kDefaultPlayerRadius(lua_State *L)
|
static int lib_kDefaultPlayerRadius(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));
|
||||||
|
|
@ -5265,6 +5272,7 @@ static luaL_Reg lib[] = {
|
||||||
{"K_PlayerEBrake",lib_kPlayerEBrake},
|
{"K_PlayerEBrake",lib_kPlayerEBrake},
|
||||||
{"K_Sliptiding",lib_kSliptiding},
|
{"K_Sliptiding",lib_kSliptiding},
|
||||||
{"K_PlayerBaseFriction",lib_kPlayerBaseFriction},
|
{"K_PlayerBaseFriction",lib_kPlayerBaseFriction},
|
||||||
|
{"K_IsSPBInGame",lib_kIsSPBInGame},
|
||||||
{"K_DefaultPlayerRadius",lib_kDefaultPlayerRadius},
|
{"K_DefaultPlayerRadius",lib_kDefaultPlayerRadius},
|
||||||
{"K_ItemScaleForPlayer",lib_kItemScaleForPlayer},
|
{"K_ItemScaleForPlayer",lib_kItemScaleForPlayer},
|
||||||
{"K_SetItemOut",lib_kSetItemOut},
|
{"K_SetItemOut",lib_kSetItemOut},
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue