mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-23 16:32:36 +00:00
Expose K_PlayerGuard to Lua
This commit is contained in:
parent
3bbdab5528
commit
f53ae302cf
1 changed files with 11 additions and 0 deletions
|
|
@ -4715,6 +4715,16 @@ static int lib_kPlayerEBrake(lua_State *L)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int lib_kPlayerGuard(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_PlayerGuard(player));
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
static int lib_kSliptiding(lua_State *L)
|
static int lib_kSliptiding(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));
|
||||||
|
|
@ -5623,6 +5633,7 @@ static luaL_Reg lib[] = {
|
||||||
{"K_BumperInflate",lib_kBumperInflate},
|
{"K_BumperInflate",lib_kBumperInflate},
|
||||||
{"K_ThunderDome",lib_kThunderDome},
|
{"K_ThunderDome",lib_kThunderDome},
|
||||||
{"K_PlayerCanUseItem",lib_kPlayerCanUseItem},
|
{"K_PlayerCanUseItem",lib_kPlayerCanUseItem},
|
||||||
|
{"K_PlayerGuard",lib_kPlayerGuard},
|
||||||
|
|
||||||
{"K_GetCollideAngle",lib_kGetCollideAngle},
|
{"K_GetCollideAngle",lib_kGetCollideAngle},
|
||||||
{"K_AddHitLag",lib_kAddHitLag},
|
{"K_AddHitLag",lib_kAddHitLag},
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue