mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Expose K_RemoveGrowShrink to Lua
This commit is contained in:
parent
195f4f15ae
commit
c8140d8a37
1 changed files with 12 additions and 0 deletions
|
|
@ -3863,6 +3863,17 @@ static int lib_kSpawnBattlePoints(lua_State *L)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int lib_kRemoveGrowShrink(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_RemoveGrowShrink(player);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int lib_kSpinPlayer(lua_State *L)
|
||||
{
|
||||
player_t *player = *((player_t **)luaL_checkudata(L, 1, META_PLAYER));
|
||||
|
|
@ -4717,6 +4728,7 @@ static luaL_Reg lib[] = {
|
|||
{"K_MomentumAngle",lib_kMomentumAngle},
|
||||
{"K_DoInstashield",lib_kDoInstashield},
|
||||
{"K_SpawnBattlePoints",lib_kSpawnBattlePoints},
|
||||
{"K_RemoveGrowShrink",lib_kRemoveGrowShrink},
|
||||
{"K_SpinPlayer",lib_kSpinPlayer},
|
||||
{"K_TumblePlayer",lib_kTumblePlayer},
|
||||
{"K_StumblePlayer",lib_kStumblePlayer},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue