Merge branch 'master' into 'master'

exposed ply.startboost and the absent BT_ flags to lua

See merge request KartKrew/RingRacers!32
This commit is contained in:
toaster 2024-08-17 18:49:02 +00:00
commit 53d111b522
2 changed files with 9 additions and 0 deletions

View file

@ -4963,6 +4963,11 @@ struct int_const_s const INT_CONST[] = {
{"BT_DRIFT",BT_DRIFT},
{"BT_BRAKE",BT_BRAKE},
{"BT_ATTACK",BT_ATTACK},
{"BT_LOOKBACK",BT_LOOKBACK},
{"BT_RESPAWN",BT_RESPAWN},
{"BT_VOTE",BT_VOTE},
{"BT_EBRAKEMASK",BT_EBRAKEMASK}, // Macro button
{"BT_SPINDASHMASK",BT_SPINDASHMASK}, // Macro button
{"BT_LUAA",BT_LUAA}, // Lua customizable
{"BT_LUAB",BT_LUAB}, // Lua customizable
{"BT_LUAC",BT_LUAC}, // Lua customizable

View file

@ -294,6 +294,8 @@ static int player_get(lua_State *L)
lua_pushinteger(L, plr->gateBoost);
else if (fastcmp(field,"gatesound"))
lua_pushinteger(L, plr->gateSound);
else if (fastcmp(field,"startboost"))
lua_pushinteger(L, plr->startboost);
else if (fastcmp(field,"aizdriftstraft"))
lua_pushinteger(L, plr->aizdriftstrat);
else if (fastcmp(field,"aizdriftextend"))
@ -856,6 +858,8 @@ static int player_set(lua_State *L)
plr->gateBoost = luaL_checkinteger(L, 3);
else if (fastcmp(field,"gatesound"))
plr->gateSound = luaL_checkinteger(L, 3);
else if (fastcmp(field,"startboost"))
plr->startboost = luaL_checkinteger(L, 3);
else if (fastcmp(field,"aizdriftstraft"))
plr->aizdriftstrat = luaL_checkinteger(L, 3);
else if (fastcmp(field,"aizdrifttilt"))