exposed ply.startboost and the absent BT_ flags to lua
This commit is contained in:
king the memer 2024-05-26 15:54:16 +01:00
parent 161d375532
commit b20a5d412e
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"))