mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Expose K_UpdateSteeringValue to Lua
This commit is contained in:
parent
e75f02963b
commit
195b0ceb33
1 changed files with 9 additions and 0 deletions
|
|
@ -4421,6 +4421,14 @@ static int lib_kGetKartRingPower(lua_State *L)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static int lib_kUpdateSteeringValue(lua_State *L)
|
||||
{
|
||||
fixed_t inputSteering = luaL_checkinteger(L, 1);
|
||||
fixed_t destSteering = luaL_checkinteger(L, 2);
|
||||
lua_pushinteger(L, K_UpdateSteeringValue(inputSteering, destSteering));
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int lib_kGetKartDriftSparkValue(lua_State *L)
|
||||
{
|
||||
player_t *player = *((player_t **)luaL_checkudata(L, 1, META_PLAYER));
|
||||
|
|
@ -5796,6 +5804,7 @@ static luaL_Reg lib[] = {
|
|||
{"K_FindJawzTarget",lib_kFindJawzTarget},
|
||||
{"K_CheckPlayersRespawnColliding",lib_kCheckPlayersRespawnColliding},
|
||||
{"K_GetKartRingPower",lib_kGetKartRingPower},
|
||||
{"K_UpdateSteeringValue",lib_kUpdateSteeringValue},
|
||||
{"K_GetKartDriftSparkValue",lib_kGetKartDriftSparkValue},
|
||||
{"K_StairJankFlip",lib_kStairJankFlip},
|
||||
{"K_SpawnDriftBoostExplosion",lib_kSpawnDriftBoostExplosion},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue