mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-28 15:11:55 +00:00
Add lua player.botleader and player.buttons_last (read+write)
This commit is contained in:
parent
e19b085684
commit
ce8e389a2d
1 changed files with 4 additions and 0 deletions
|
@ -370,6 +370,10 @@ static int player_get(lua_State *L)
|
|||
lua_pushboolean(L, plr->outofcoop);
|
||||
else if (fastcmp(field,"bot"))
|
||||
lua_pushinteger(L, plr->bot);
|
||||
else if (fastcmp(field,"botleader"))
|
||||
LUA_PushUserdata(L, plr->botleader, META_PLAYER);
|
||||
else if (fastcmp(field,"buttons_last"))
|
||||
lua_pushinteger(L, plr->buttons_last);
|
||||
else if (fastcmp(field,"jointime"))
|
||||
lua_pushinteger(L, plr->jointime);
|
||||
else if (fastcmp(field,"quittime"))
|
||||
|
|
Loading…
Reference in a new issue