mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 19:20:46 +00:00
LunaCON: add a couple of ud members, gamevars; handle 'dynamicremap' only once.
Also, allow MAXVOLUMES+1 to first arg of 'music'. git-svn-id: https://svn.eduke32.com/eduke32@3817 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
4e9cf9722a
commit
13b69711ac
3 changed files with 23 additions and 5 deletions
|
@ -639,7 +639,7 @@ local PlayerLabels = {
|
||||||
footprintshade = PL".footprintshade",
|
footprintshade = PL".footprintshade",
|
||||||
|
|
||||||
refresh_inventory = PL".refresh_inventory",
|
refresh_inventory = PL".refresh_inventory",
|
||||||
last_full_weapon = { PL".last_full_weapon" },
|
last_full_weapon = PL".last_full_weapon",
|
||||||
|
|
||||||
walking_snd_toggle = PL".walking_snd_toggle",
|
walking_snd_toggle = PL".walking_snd_toggle",
|
||||||
palookup = PL".palookup",
|
palookup = PL".palookup",
|
||||||
|
@ -835,16 +835,19 @@ local UserdefLabels = {
|
||||||
detail = { "1" },
|
detail = { "1" },
|
||||||
display_bonus_screen = UD".display_bonus_screen",
|
display_bonus_screen = UD".display_bonus_screen",
|
||||||
drawweapon = UDRO".drawweapon",
|
drawweapon = UDRO".drawweapon",
|
||||||
|
eog = UD".eog",
|
||||||
ffire = UDRO".ffire",
|
ffire = UDRO".ffire",
|
||||||
fta_on = UD".fta_on",
|
fta_on = UD".fta_on",
|
||||||
god = UDRO".god",
|
god = UDRO".god",
|
||||||
idplayers = UDRO".idplayers",
|
idplayers = UDRO".idplayers",
|
||||||
|
level_number = UDRO".level_number",
|
||||||
lockout = UDRO".lockout",
|
lockout = UDRO".lockout",
|
||||||
pause_on = UDRO".pause_on",
|
pause_on = UDRO".pause_on",
|
||||||
player_skill = UD".player_skill",
|
player_skill = UD".player_skill",
|
||||||
m_volume_number = UDRO".m_volume_number",
|
m_volume_number = UDRO".m_volume_number",
|
||||||
mouseflip = UDRO".mouseflip",
|
mouseflip = UDRO".mouseflip",
|
||||||
multimode = { "1" },
|
multimode = { "1" },
|
||||||
|
noexits = UDRO".noexits",
|
||||||
overhead_on = UD".overhead_on",
|
overhead_on = UD".overhead_on",
|
||||||
show_level_text = UD".show_level_text",
|
show_level_text = UD".show_level_text",
|
||||||
screen_size = { UD".screen_size", UD":set_screen_size(%%s)" },
|
screen_size = { UD".screen_size", UD":set_screen_size(%%s)" },
|
||||||
|
|
|
@ -272,7 +272,7 @@ __attribute__((packed)) struct {
|
||||||
bool holster_weapon;
|
bool holster_weapon;
|
||||||
uint8_t falling_counter, footprintshade;
|
uint8_t falling_counter, footprintshade;
|
||||||
uint8_t refresh_inventory;
|
uint8_t refresh_inventory;
|
||||||
const uint8_t last_full_weapon;
|
const<W> uint8_t last_full_weapon;
|
||||||
|
|
||||||
bool toggle_key_flag;
|
bool toggle_key_flag;
|
||||||
uint8_t knuckle_incs, knee_incs, access_incs;
|
uint8_t knuckle_incs, knee_incs, access_incs;
|
||||||
|
|
|
@ -284,6 +284,14 @@ local function new_initial_gvartab()
|
||||||
STICKYBOMB_LIFETIME = PRW(PLSX".tripbombLifetime"),
|
STICKYBOMB_LIFETIME = PRW(PLSX".tripbombLifetime"),
|
||||||
STICKYBOMB_LIFETIME_VAR = PRW(PLSX".tripbombLifetimeVar"),
|
STICKYBOMB_LIFETIME_VAR = PRW(PLSX".tripbombLifetimeVar"),
|
||||||
|
|
||||||
|
-- Some *writable* system gamevars relating to multiplayer.
|
||||||
|
-- TODO_MP.
|
||||||
|
RESPAWN_MONSTERS = RO "0",
|
||||||
|
RESPAWN_ITEMS = RO "0",
|
||||||
|
RESPAWN_INVENTORY = RO "0",
|
||||||
|
MONSTERS_OFF = RO "0",
|
||||||
|
MARKER = RO "0",
|
||||||
|
|
||||||
-- These are not 100% authentic (they're only updated in certain
|
-- These are not 100% authentic (they're only updated in certain
|
||||||
-- circumstances, see player.c: P_SetWeaponGamevars()). But IMO it's
|
-- circumstances, see player.c: P_SetWeaponGamevars()). But IMO it's
|
||||||
-- more useful like this.
|
-- more useful like this.
|
||||||
|
@ -1051,8 +1059,8 @@ end
|
||||||
function Cmd.music(volnum, ...)
|
function Cmd.music(volnum, ...)
|
||||||
local envmusicp = (volnum==0)
|
local envmusicp = (volnum==0)
|
||||||
|
|
||||||
if (not (volnum >= 0 and volnum <= conl.MAXVOLUMES)) then
|
if (not (volnum >= 0 and volnum <= conl.MAXVOLUMES+1)) then
|
||||||
-- NOTE: Don't allow MAXVOLUMES+1 for now.
|
-- NOTE: Also allow MAXVOLUMES+1.
|
||||||
errprintf("volume number must be between 0 and MAXVOLUMES=%d", conl.MAXVOLUMES)
|
errprintf("volume number must be between 0 and MAXVOLUMES=%d", conl.MAXVOLUMES)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
@ -1201,6 +1209,13 @@ function Cmd.gamevar(identifier, initval, flags)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function Cmd.dynamicremap()
|
||||||
|
if (g_dyntilei==nil) then
|
||||||
|
print("Using dynamic tile remapping");
|
||||||
|
g_dyntilei=true;
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
function lookup.gamearray(identifier)
|
function lookup.gamearray(identifier)
|
||||||
local ga = g_gamearray[identifier]
|
local ga = g_gamearray[identifier]
|
||||||
if (ga == nil) then
|
if (ga == nil) then
|
||||||
|
@ -1347,7 +1362,7 @@ local Couter = {
|
||||||
|
|
||||||
--- 2. Defines and Meta-Settings
|
--- 2. Defines and Meta-Settings
|
||||||
dynamicremap = cmd()
|
dynamicremap = cmd()
|
||||||
/ function() print("Using dynamic tile remapping"); g_dyntilei=true; end,
|
/ Cmd.dynamicremap,
|
||||||
setcfgname = sp1 * tok.filename
|
setcfgname = sp1 * tok.filename
|
||||||
/ Cmd.nyi("`setcfgname'"),
|
/ Cmd.nyi("`setcfgname'"),
|
||||||
setdefname = sp1 * tok.filename
|
setdefname = sp1 * tok.filename
|
||||||
|
|
Loading…
Reference in a new issue