mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-22 12:31:32 +00:00
add redflag, blueflag, rflagpoint and bflagpoint to Lua
This commit is contained in:
parent
70928120c2
commit
d91d9bf7fc
1 changed files with 12 additions and 0 deletions
|
@ -225,6 +225,18 @@ int LUA_PushGlobals(lua_State *L, const char *word)
|
||||||
} else if (fastcmp(word,"pointlimit")) {
|
} else if (fastcmp(word,"pointlimit")) {
|
||||||
lua_pushinteger(L, cv_pointlimit.value);
|
lua_pushinteger(L, cv_pointlimit.value);
|
||||||
return 1;
|
return 1;
|
||||||
|
} else if (fastcmp(word, "redflag")) {
|
||||||
|
LUA_PushUserdata(L, redflag, META_MOBJ);
|
||||||
|
return 1;
|
||||||
|
} else if (fastcmp(word, "blueflag")) {
|
||||||
|
LUA_PushUserdata(L, blueflag, META_MOBJ);
|
||||||
|
return 1;
|
||||||
|
} else if (fastcmp(word, "rflagpoint")) {
|
||||||
|
LUA_PushUserdata(L, rflagpoint, META_MAPTHING);
|
||||||
|
return 1;
|
||||||
|
} else if (fastcmp(word, "bflagpoint")) {
|
||||||
|
LUA_PushUserdata(L, bflagpoint, META_MAPTHING);
|
||||||
|
return 1;
|
||||||
// begin map vars
|
// begin map vars
|
||||||
} else if (fastcmp(word,"spstage_start")) {
|
} else if (fastcmp(word,"spstage_start")) {
|
||||||
lua_pushinteger(L, spstage_start);
|
lua_pushinteger(L, spstage_start);
|
||||||
|
|
Loading…
Reference in a new issue