mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-22 10:02:01 +00:00
Expose K_FastFallBounce to Lua
This commit is contained in:
parent
c3f60dff44
commit
c831549bbd
1 changed files with 12 additions and 0 deletions
|
|
@ -5048,6 +5048,17 @@ static int lib_kSetItemOut(lua_State *L)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int lib_kFastFallBounce(lua_State *L)
|
||||
{
|
||||
player_t *player = *((player_t **)luaL_checkudata(L, 1, META_PLAYER));
|
||||
NOHUD
|
||||
INLEVEL
|
||||
if (!player)
|
||||
return LUA_ErrInvalid(L, "player_t");
|
||||
lua_pushboolean(L, K_FastFallBounce(player));
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int lib_kUnsetItemOut(lua_State *L)
|
||||
{
|
||||
player_t *player = *((player_t **)luaL_checkudata(L, 1, META_PLAYER));
|
||||
|
|
@ -5947,6 +5958,7 @@ static luaL_Reg lib[] = {
|
|||
{"K_ThunderDome",lib_kThunderDome},
|
||||
{"K_PlayerCanUseItem",lib_kPlayerCanUseItem},
|
||||
{"K_PlayerGuard",lib_kPlayerGuard},
|
||||
{"K_FastFallBounce",lib_kFastFallBounce},
|
||||
{"K_SetTireGrease",lib_kSetTireGrease},
|
||||
|
||||
{"K_GetCollideAngle",lib_kGetCollideAngle},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue