mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-22 07:52:30 +00:00
Expose K_ItemScaleForPlayer to Lua
This commit is contained in:
parent
9ec314aac4
commit
641630bbdd
1 changed files with 11 additions and 0 deletions
|
|
@ -4657,6 +4657,16 @@ static int lib_kDefaultPlayerRadius(lua_State *L)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static int lib_kItemScaleForPlayer(lua_State *L)
|
||||
{
|
||||
player_t *player = *((player_t **)luaL_checkudata(L, 1, META_PLAYER));
|
||||
INLEVEL
|
||||
if (!player)
|
||||
return LUA_ErrInvalid(L, "player_t");
|
||||
lua_pushfixed(L, K_ItemScaleForPlayer(player));
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int lib_kGetCollideAngle(lua_State *L)
|
||||
{
|
||||
mobj_t *t1 = *((mobj_t **)luaL_checkudata(L, 1, META_MOBJ));
|
||||
|
|
@ -5134,6 +5144,7 @@ static luaL_Reg lib[] = {
|
|||
{"K_Sliptiding",lib_kSliptiding},
|
||||
{"K_PlayerBaseFriction",lib_kPlayerBaseFriction},
|
||||
{"K_DefaultPlayerRadius",lib_kDefaultPlayerRadius},
|
||||
{"K_ItemScaleForPlayer",lib_kItemScaleForPlayer},
|
||||
|
||||
{"K_GetCollideAngle",lib_kGetCollideAngle},
|
||||
{"K_AddHitLag",lib_kAddHitLag},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue