mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Expose K_TumbleInterrupt to Lua
This commit is contained in:
parent
6fb9a98896
commit
c493ef9355
1 changed files with 12 additions and 0 deletions
|
|
@ -3998,6 +3998,17 @@ static int lib_kStumbleSlope(lua_State *L)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int lib_kTumbleInterrupt(lua_State *L)
|
||||||
|
{
|
||||||
|
player_t *player = *((player_t **)luaL_checkudata(L, 1, META_PLAYER));
|
||||||
|
NOHUD
|
||||||
|
INLEVEL
|
||||||
|
if (!player)
|
||||||
|
return LUA_ErrInvalid(L, "player_t");
|
||||||
|
K_TumbleInterrupt(player);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
static int lib_kStumblePlayer(lua_State *L)
|
static int lib_kStumblePlayer(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));
|
||||||
|
|
@ -5573,6 +5584,7 @@ static luaL_Reg lib[] = {
|
||||||
{"K_SpinPlayer",lib_kSpinPlayer},
|
{"K_SpinPlayer",lib_kSpinPlayer},
|
||||||
{"K_TumblePlayer",lib_kTumblePlayer},
|
{"K_TumblePlayer",lib_kTumblePlayer},
|
||||||
{"K_StumbleSlope",lib_kStumbleSlope},
|
{"K_StumbleSlope",lib_kStumbleSlope},
|
||||||
|
{"K_TumbleInterrupt",lib_kTumbleInterrupt},
|
||||||
{"K_StumblePlayer",lib_kStumblePlayer},
|
{"K_StumblePlayer",lib_kStumblePlayer},
|
||||||
{"K_CheckStumble",lib_kCheckStumble},
|
{"K_CheckStumble",lib_kCheckStumble},
|
||||||
{"K_ExplodePlayer",lib_kExplodePlayer},
|
{"K_ExplodePlayer",lib_kExplodePlayer},
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue