fuaZandroX modding reference

MAPINFO

Availability

ZandroX only among Zandronum versions, except where a row says it is Zandronum's. Most keywords come from UZDoom under UZDoom's names, so a UZDoom MAPINFO or ZMAPINFO that uses them loads as written.

Works in netgames. Every machine reads the same lumps. What changes gameplay is decided by the server; what changes the picture or the sound is applied by each machine.

Usage

This page lists what ForkUnderA adds to MAPINFO and ZMAPINFO on top of Zandronum. Everything Zandronum already reads works as before. UMAPINFO is on its own page, Boom and MBF mapsets.

The two formats

A lump is in the new format when its first block uses braces (map MAP01 "Title" { ... }), and a ZMAPINFO always is. In the new format a value follows = and values are separated by commas: hazardcolor = "ff 40 00". In the old format there are no braces, no = and no commas: hazardcolor "ff 40 00".

Keywords marked new in the tables below work only in the new format. Using one in an old-format lump stops the game from loading. The others work in both.

Errors

  • A syntax error, an unknown top-level block, or a new-only keyword in an old-format lump stops the game from loading.
  • An unknown keyword inside a map or defaultmap block is printed in the console and skipped. In the old format its value is then read as the next keyword, which prints a second message.
  • A UZDoom keyword this engine cannot honour is accepted and skipped, and the console says so once. Those keywords are listed in Accepted and ignored, so a UZDoom mod that uses them still loads.
  • An unknown key in a cluster or skill block is a warning. An unknown gameinfo key is skipped silently.

Intermissions and text screens

In a map or defaultmap block unless the row says otherwise. Text screens between levels are shown in single player only.

KeywordValueWhat it does
author= "Name"Shown under the level name on the "Finished" screen, in the small font.
label= "E1"The prefix shown before the level name on the automap. "*" shows none. Without it, the player's am_showmaplabel decides.
mapintermusic= "MAP05", "music"The intermission music when this level leads to the named map. May be given once per map. It beats intermusic.
exittext (new)= key, "text" [, "line" ...], = key, lookup, "NAME"A text screen shown on leaving this level. key is "normal", "secret" or the name of the map the exit leads to. It beats the cluster's text.
textflat (new)= key, "FLAT"The flat tiled behind that text.
textpic (new)= key, "PIC"A full-screen picture behind that text.
textmusic (new)= key, "music"The music while that text shows.
noclustertextflagNo cluster text when leaving this level.
needclustertextflagCluster text even when the next level is in the same cluster.
allowintermissionflag, in a clusterShows the stats screen between levels of a hub.
Subtitle (new)= "text" or "$LOOKUP", in an intermission actionA caption at the bottom of that picture or text screen.
winnerpic, loserpic, winnermusic, losermusic= "name"Zandronum's: the team-game intermission's picture and music for the winners and the losers.

Level flow, scripts and precaching

KeywordValueWhat it does
cvar_redirect= "cvar", "MAP"When the cvar's whole-number value is not 0 and the map exists, entering this level goes to that map instead. Any cvar works, a mod's own CVARINFO ones included. It is checked after redirect.
loadacs= "LIB" [, "LIB" ...]ACS libraries loaded for this level only, after those the LOADACS lump names. A missing one is printed in the console.
PrecacheClasses= "Class" [, ...]Every sprite of these classes is loaded with the level, so their first appearance does not stutter. Unknown classes are skipped.
PrecacheTextures= "TEX" [, ...]The same for textures, such as those a script switches to later.
gamemode (new)= "cooperative"Zandronum's: the game mode this map is played in. An unknown mode stops the game from loading.
noskirmishflagZandronum's: the map is left out of the skirmish menu.

Gameplay and environment

KeywordValueWhat it does
avoidmeleeflagEvery monster on the level backs away from melee range, as MBF21's +AVOIDMELEE does.
e1m8special, e2m8special, e3m8special, e4m6special, e4m8specialflagThe level's boss-death action fires when the monsters with the matching E1M8BOSS… flag die.
nogravityflagThe level starts with no gravity. Changing sv_gravity during the level sets it again.
propermonsterfallingdamageflagMonsters take the falling damage a player would instead of dying outright. Needs falling damage turned on.
passoverflagThings can pass over and under each other on this level, whatever the server's setting.
nopassoverflagThings are infinitely tall on this level.
hazardcolor= "rr gg bb" or a colour nameThe colour Strife's hazard sectors tint the screen with as they hurt.
hazardflashas hazardcolorThe colour of the flash when they hurt.
lightningsound= "sound"The thunder on a lightning level, world/thunder by default.
attenuatelightsflagGLDEFS lights that do not say attenuate fade with the angle they hit a surface at.
brightfog= 1 or = 0Fog does not darken bright sprites and the weapon, or does. Unset, the player's r_brightfog decides. A map takes defaultmap's value.
pixelratio (new)= 1.2How tall a pixel is drawn, 1.2 by default.
fua_monsterstairs, fua_nomonsterstairs (new)flagZandroX only. Monsters climb and descend stairs narrower than themselves on this level, or do not. Without either, GAMEINFO's fua_monsterstairs decides, then the server's sv_fua_monsterstairs.

Compatibility flags

In a map or defaultmap block: compat_x turns the flag on, compat_x = 0 (old format compat_x 0) turns it off. A flag a level sets overrides the server's compatibility settings for that level.

KeywordWhat it does
compat_multiexitAn exit can be used more than once.
compat_checkswitchrangeSwitches are used without checking that the player can reach them.
compat_avoidhazardsMonsters avoid damaging floors, as in MBF.
compat_stayonliftMonsters stay on a lift they are riding, as in MBF.
compat_reservedlineflagA Doom-format map's line flag bit 11 keeps only the original flags, as Boom maps expect.
compat_emulatemikoportalsA thing that falls below the lowest height vanilla Doom could hold lands at its sector's ceiling, as the "Miko portal" trick in some vanilla maps expects.
compat_vileghostsUZDoom's name for compat_corpsegibs: Arch-viles raise crushed corpses as ghosts.
compat_noacsargcheckAn ACS call with too few arguments is not reported.
compat_scriptwaitACS's ScriptWait on a numbered script that is not running goes on at once, instead of waiting for that script to start and finish.
compat_explode1Explosions push things only sideways, never up.
compat_nosoulceilbounceA charging lost soul that hits the ceiling stops rising instead of bouncing down.
compat_hitscanswitchesShootable switches answer bullets alone; no projectile activates them.
compat_monsterprojlinesIn Doom, a monster's projectile crossing a door, lift or teleport line triggers it, as Doom II's did; projectiles no longer use player teleports.
compat_infinitemeleeMelee attacks reach any height.
compat_boomuseblockingA use stops at any line with a special unless the line has Boom's PassUse flag.
compat_boomscrollstrictScrolling floors carry things by Boom's rule.
compat_nocountlostLost souls do not count towards the level's kills.
compat_soundcutoffA thing's sound stops when the thing is removed, instead of playing on where it was. A level's flag works here; in UZDoom only the console setting does.

compat_explode2, compat_teleport, compat_railing, compat_pointonline, compat_voodoozombies, compat_novdolllockmsg and compat_nombf21 are accepted and do nothing: this engine already behaves the way each would ask for.

Skills

In a skill Name { ... } block.

KeywordValueWhat it does
HealthFactor= 0.5Scales the health a player gets from pickups, never below 1. Monster health is MonsterHealth's.
KickbackFactor= 2.0Scales how far damage pushes things.
NoInfighting, TotalInfightingflagMonsters never fight each other, or fight on any hit. A monster's own +NOINFIGHTING or +FORCEINFIGHTING still wins.
InstantReactionflagMonsters attack without their first reaction delay.
NoMenuflagThe skill is not offered in the New Game menu.
SpawnMultiflagA single-player game also spawns the things meant for cooperative play.
SpawnMultiCoopOnly (new)flagA single-player game spawns the cooperative things and leaves out those meant only for single player.

GAMEINFO

In the gameinfo block, which needs the new format.

KeyValueWhat it does
hidepartimes= trueThe intermission shows no par times.
dontcrunchcorpses= trueA crusher leaves corpses whole instead of turning them into gibs.
cheatkey, easykey= "lump"The automap's key markers, shown with the map cheat and on the easiest skills.
normforwardmove, normsidemove= 25, 50The walk and run speeds forward and sideways, Doom's 25, 50 and 24, 40 by default. turbo scales them, and a server allows the faster speeds without taking them for a turbo cheat.
correctprintbold= trueACS PrintBold uses the bold message colour.
fua_monsterstairs= trueZandroX only. The game's default for fua_monsterstairs.

Top-level blocks

These need the new format.

BlockWhat it does
DamageType Name { factor = 0.5 replacefactor noarmor }A damage type's settings for every actor: its factor, whether that factor replaces an actor's own, and whether armour absorbs it. factor = 0 implies replacefactor. Any other key stops the game from loading.
DoomEdNums { 31000 = MyImp }Editor numbers for map things. A DECORATE editor number for the same number wins. dumpmapthings lists them all. After the class an entry can take up to five arguments, or a special by name and its arguments, which replace the map thing's (31001 = MyImp, Door_Open, 7, 16). + after an argument keeps the map thing's later arguments, as the stock AmbientSound, 1, + entries do. noskillflags first spawns the thing on every skill (31002 = MyImp, noskillflags).
SpawnNums { 250 = MyImp }Spawn numbers, as Thing_Spawn takes them.
ConversationIDs { 900 = MyNpc }Strife conversation numbers.

A class these blocks name that does not exist stops the game from loading.

Accepted and ignored

UZDoom keywords this engine reads past, so a mod using them still loads. Each prints one line in the console.

  • Map: intro, outro, enteranim, exitanim, resetitems, eventhandlers, edata, fs_nocheckposition, lightadditivesurfaces, lightblendmode, forceworldpanning, forcefakecontrast, nolightfade, noambientocclusion, enableshadowmap, disableshadowmap, enableskyboxao, disableskyboxao, useskymist, skymist, skymistyscale, thickfogdistance, thickfogmultiplier, nofogofwar, colormap.
  • Cluster: intro, outro, gameover.
  • GAMEINFO: usepausestring, menuslidercolor, menusliderbackcolor, statscreen_authorfont, statscreen_contentfont, bloodsplatdecaldistance, bluramount, forcenogfxsubstitution, forcetextinmenus, nomergepickupmsg, fullscreenautoaspect, BasicArmorClass, and the ZScript keys statusbarclass, althudclass, MessageBoxClass, HelpMenuClass, MenuDelegateClass, defaultconversationmenuclass, eventhandlers, addeventhandlers, statscreen_single, statscreen_coop and statscreen_dm.

Examples

// MAPINFO
map MAP07 "Dead Simple"
{
	next = "MAP08"
	author = "Jane Doe"
	label = "MAP07"
	avoidmelee
	PrecacheClasses = "Fatso", "Arachnotron"
	exittext = "normal", "The walls fall away.", "Something waits below."
	textpic = "normal", "INTERPIC"
	cvar_redirect = "fuadocs_hard", "MAP08"
	compat_stayonlift
}

skill fuadocs_brutal
{
	Name = "Brutal"
	DamageFactor = 2.0
	HealthFactor = 0.5
	KickbackFactor = 1.5
	TotalInfighting
	InstantReaction
	NoMenu
	SpawnMulti
}

DoomEdNums
{
	31000 = DoomImp, noskillflags
	31001 = DoomImp, Thing_ChangeTID, 0, 5
	31002 = AmbientSound, 2, +
}

DamageType FuaDocsFrost
{
	factor = 0.5
	noarmor
}

Implementation notes

Each keyword's notes are in a features/mapinfo-<keyword> folder of features/, such as features/mapinfo-cvar-redirect.