mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-04 15:12:58 +00:00
Expose K_TripwirePassConditions to Lua
This commit is contained in:
parent
c877070f91
commit
0f531c5937
1 changed files with 11 additions and 0 deletions
|
|
@ -4368,6 +4368,16 @@ static int lib_kPlayerTripwireSpeedThreshold(lua_State *L)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int lib_kTripwirePassConditions(lua_State *L)
|
||||||
|
{
|
||||||
|
player_t *player = *((player_t **)luaL_checkudata(L, 1, META_PLAYER));
|
||||||
|
INLEVEL
|
||||||
|
if (!player)
|
||||||
|
return LUA_ErrInvalid(L, "player_t");
|
||||||
|
lua_pushinteger(L, K_TripwirePassConditions(player));
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
static int lib_kGetKartSpeed(lua_State *L)
|
static int lib_kGetKartSpeed(lua_State *L)
|
||||||
{
|
{
|
||||||
player_t *player = *((player_t **)luaL_checkudata(L, 1, META_PLAYER));
|
player_t *player = *((player_t **)luaL_checkudata(L, 1, META_PLAYER));
|
||||||
|
|
@ -4884,6 +4894,7 @@ static luaL_Reg lib[] = {
|
||||||
{"K_ApplyOffroad",lib_kApplyOffroad},
|
{"K_ApplyOffroad",lib_kApplyOffroad},
|
||||||
{"K_SlopeResistance",lib_kSlopeResistance},
|
{"K_SlopeResistance",lib_kSlopeResistance},
|
||||||
{"K_PlayerTripwireSpeedThreshold",lib_kPlayerTripwireSpeedThreshold},
|
{"K_PlayerTripwireSpeedThreshold",lib_kPlayerTripwireSpeedThreshold},
|
||||||
|
{"K_TripwirePassConditions",lib_kTripwirePassConditions},
|
||||||
{"K_GetKartSpeed",lib_kGetKartSpeed},
|
{"K_GetKartSpeed",lib_kGetKartSpeed},
|
||||||
{"K_GetKartAccel",lib_kGetKartAccel},
|
{"K_GetKartAccel",lib_kGetKartAccel},
|
||||||
{"K_GetKartFlashing",lib_kGetKartFlashing},
|
{"K_GetKartFlashing",lib_kGetKartFlashing},
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue