mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-22 10:02:01 +00:00
Expose K_GetSpindashChargeSpeed to Lua
This commit is contained in:
parent
e687e6a0f1
commit
f3e03127c0
1 changed files with 11 additions and 0 deletions
|
|
@ -4458,6 +4458,16 @@ static int lib_kGetSpindashChargeTime(lua_State *L)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static int lib_kGetSpindashChargeSpeed(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_GetSpindashChargeSpeed(player));
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int lib_kGetKartSpeed(lua_State *L)
|
||||
{
|
||||
player_t *player = *((player_t **)luaL_checkudata(L, 1, META_PLAYER));
|
||||
|
|
@ -4983,6 +4993,7 @@ static luaL_Reg lib[] = {
|
|||
{"K_IsHoldingDownTop",lib_kIsHoldingDownTop},
|
||||
{"K_GetGardenTop",lib_kGetGardenTop},
|
||||
{"K_GetSpindashChargeTime",lib_kGetSpindashChargeTime},
|
||||
{"K_GetSpindashChargeSpeed",lib_kGetSpindashChargeSpeed},
|
||||
{"K_GetKartSpeed",lib_kGetKartSpeed},
|
||||
{"K_GetKartAccel",lib_kGetKartAccel},
|
||||
{"K_GetKartFlashing",lib_kGetKartFlashing},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue