mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-18 03:22:35 +00:00
Expose K_UpdateShrinkCheat to Lua
This commit is contained in:
parent
c34adcb4ed
commit
c700adf1a4
1 changed files with 11 additions and 0 deletions
|
|
@ -4530,6 +4530,16 @@ static int lib_kPlayerShrinkCheat(lua_State *L)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static int lib_kUpdateShrinkCheat(lua_State *L)
|
||||
{
|
||||
player_t *player = *((player_t **)luaL_checkudata(L, 1, META_PLAYER));
|
||||
INLEVEL
|
||||
if (!player)
|
||||
return LUA_ErrInvalid(L, "player_t");
|
||||
K_UpdateShrinkCheat(player);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int lib_kGetItemPatch(lua_State *L)
|
||||
{
|
||||
UINT8 item = (UINT8)luaL_optinteger(L, 1, KITEM_NONE);
|
||||
|
|
@ -5030,6 +5040,7 @@ static luaL_Reg lib[] = {
|
|||
{"K_GetKartAccel",lib_kGetKartAccel},
|
||||
{"K_GetKartFlashing",lib_kGetKartFlashing},
|
||||
{"K_PlayerShrinkCheat",lib_kPlayerShrinkCheat},
|
||||
{"K_UpdateShrinkCheat",lib_kUpdateShrinkCheat},
|
||||
{"K_GetItemPatch",lib_kGetItemPatch},
|
||||
{"K_GetInvincibilityItemFrame",lib_kGetInvincibilityItemFrame},
|
||||
{"K_GetOrbinautItemFrame",lib_kGetOrbinautItemFrame},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue