mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-22 07:52:30 +00:00
Expose K_UnsetItemOut to Lua
This commit is contained in:
parent
9d5cb17c46
commit
d53859e2dd
1 changed files with 12 additions and 0 deletions
|
|
@ -4678,6 +4678,17 @@ static int lib_kSetItemOut(lua_State *L)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int lib_kUnsetItemOut(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_UnsetItemOut(player);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int lib_kGetCollideAngle(lua_State *L)
|
||||
{
|
||||
mobj_t *t1 = *((mobj_t **)luaL_checkudata(L, 1, META_MOBJ));
|
||||
|
|
@ -5157,6 +5168,7 @@ static luaL_Reg lib[] = {
|
|||
{"K_DefaultPlayerRadius",lib_kDefaultPlayerRadius},
|
||||
{"K_ItemScaleForPlayer",lib_kItemScaleForPlayer},
|
||||
{"K_SetItemOut",lib_kSetItemOut},
|
||||
{"K_UnsetItemOut",lib_kUnsetItemOut},
|
||||
|
||||
{"K_GetCollideAngle",lib_kGetCollideAngle},
|
||||
{"K_AddHitLag",lib_kAddHitLag},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue