mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Expose K_EggmanTransfer to Lua
This commit is contained in:
parent
c831549bbd
commit
8fecb320cb
1 changed files with 13 additions and 0 deletions
|
|
@ -5160,6 +5160,18 @@ static int lib_kPlayerCanUseItem(lua_State *L)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int lib_kEggmanTransfer(lua_State *L)
|
||||||
|
{
|
||||||
|
player_t *source = *((player_t **)luaL_checkudata(L, 1, META_PLAYER));
|
||||||
|
player_t *victim = *((player_t **)luaL_checkudata(L, 2, META_PLAYER));
|
||||||
|
NOHUD
|
||||||
|
INLEVEL
|
||||||
|
if (!source || !victim)
|
||||||
|
return LUA_ErrInvalid(L, "player_t");
|
||||||
|
K_EggmanTransfer(source, victim);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
static int lib_kSetTireGrease(lua_State *L)
|
static int lib_kSetTireGrease(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));
|
||||||
|
|
@ -5959,6 +5971,7 @@ static luaL_Reg lib[] = {
|
||||||
{"K_PlayerCanUseItem",lib_kPlayerCanUseItem},
|
{"K_PlayerCanUseItem",lib_kPlayerCanUseItem},
|
||||||
{"K_PlayerGuard",lib_kPlayerGuard},
|
{"K_PlayerGuard",lib_kPlayerGuard},
|
||||||
{"K_FastFallBounce",lib_kFastFallBounce},
|
{"K_FastFallBounce",lib_kFastFallBounce},
|
||||||
|
{"K_EggmanTransfer",lib_kEggmanTransfer},
|
||||||
{"K_SetTireGrease",lib_kSetTireGrease},
|
{"K_SetTireGrease",lib_kSetTireGrease},
|
||||||
|
|
||||||
{"K_GetCollideAngle",lib_kGetCollideAngle},
|
{"K_GetCollideAngle",lib_kGetCollideAngle},
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue