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