mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Expose K_DropKitchenSink to Lua
This commit is contained in:
parent
adf52e4ab5
commit
73df772720
1 changed files with 12 additions and 0 deletions
|
|
@ -4286,6 +4286,17 @@ static int lib_kDropRocketSneaker(lua_State *L)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int lib_kDropKitchenSink(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_DropKitchenSink(player);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int lib_kStripItems(lua_State *L)
|
||||
{
|
||||
player_t *player = *((player_t **)luaL_checkudata(L, 1, META_PLAYER));
|
||||
|
|
@ -4835,6 +4846,7 @@ static luaL_Reg lib[] = {
|
|||
{"K_DropHnextList",lib_kDropHnextList},
|
||||
{"K_DropItems",lib_kDropItems},
|
||||
{"K_DropRocketSneaker",lib_kDropRocketSneaker},
|
||||
{"K_DropKitchenSink",lib_kDropKitchenSink},
|
||||
{"K_StripItems",lib_kStripItems},
|
||||
{"K_StripOther",lib_kStripOther},
|
||||
{"K_MomentumToFacing",lib_kMomentumToFacing},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue