Add waterrun to lua
This commit is contained in:
parent
9f937cc4ae
commit
b10b78b1a4
2 changed files with 6 additions and 2 deletions
|
|
@ -6702,7 +6702,7 @@ void K_KartPlayerThink(player_t *player, ticcmd_t *cmd)
|
|||
player->floorboost--;
|
||||
|
||||
if (player->sneakertimer == 0)
|
||||
player->waterrun = 0;
|
||||
player->waterrun = false;
|
||||
|
||||
if (player->driftboost)
|
||||
player->driftboost--;
|
||||
|
|
|
|||
|
|
@ -323,7 +323,9 @@ static int player_get(lua_State *L)
|
|||
else if (fastcmp(field,"sneakertimer"))
|
||||
lua_pushinteger(L, plr->sneakertimer);
|
||||
else if (fastcmp(field,"floorboost"))
|
||||
lua_pushinteger(L, plr->floorboost);
|
||||
lua_pushboolean(L, plr->floorboost);
|
||||
else if (fastcmp(field,"waterrun"))
|
||||
lua_pushinteger(L, plr->waterrun);
|
||||
else if (fastcmp(field,"growshrinktimer"))
|
||||
lua_pushinteger(L, plr->growshrinktimer);
|
||||
else if (fastcmp(field,"rocketsneakertimer"))
|
||||
|
|
@ -674,6 +676,8 @@ static int player_set(lua_State *L)
|
|||
plr->sneakertimer = luaL_checkinteger(L, 3);
|
||||
else if (fastcmp(field,"floorboost"))
|
||||
plr->floorboost = luaL_checkinteger(L, 3);
|
||||
else if (fastcmp(field,"waterrun"))
|
||||
plr->waterrun = luaL_checkboolean(L, 3);
|
||||
else if (fastcmp(field,"growshrinktimer"))
|
||||
plr->growshrinktimer = luaL_checkinteger(L, 3);
|
||||
else if (fastcmp(field,"rocketsneakertimer"))
|
||||
|
|
|
|||
Loading…
Reference in a new issue