mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Expose K_WaterRun to Lua
This commit is contained in:
parent
d5be6c60f9
commit
2c988bc4e3
1 changed files with 11 additions and 0 deletions
|
|
@ -4398,6 +4398,16 @@ static int lib_kMovingHorizontally(lua_State *L)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static int lib_kWaterRun(lua_State *L)
|
||||
{
|
||||
mobj_t *mobj = *((mobj_t **)luaL_checkudata(L, 1, META_MOBJ));
|
||||
INLEVEL
|
||||
if (!mobj)
|
||||
return LUA_ErrInvalid(L, "mobj_t");
|
||||
lua_pushboolean(L, K_WaterRun(mobj));
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int lib_kGetKartSpeed(lua_State *L)
|
||||
{
|
||||
player_t *player = *((player_t **)luaL_checkudata(L, 1, META_PLAYER));
|
||||
|
|
@ -4917,6 +4927,7 @@ static luaL_Reg lib[] = {
|
|||
{"K_TripwirePassConditions",lib_kTripwirePassConditions},
|
||||
{"K_TripwirePass",lib_kTripwirePass},
|
||||
{"K_MovingHorizontally",lib_kMovingHorizontally},
|
||||
{"K_WaterRun",lib_kWaterRun},
|
||||
{"K_GetKartSpeed",lib_kGetKartSpeed},
|
||||
{"K_GetKartAccel",lib_kGetKartAccel},
|
||||
{"K_GetKartFlashing",lib_kGetKartFlashing},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue