gzdoom/wadsrc/static/lockdefs.txt
Randy Heit fb50df2c63 About a week's worth of changes here. As a heads-up, I wouldn't be
surprised if this doesn't build in Linux right now. The CMakeLists.txt
were checked with MinGW and NMake, but how they fair under Linux is an
unknown to me at this time.

- Converted most sprintf (and all wsprintf) calls to either mysnprintf or
  FStrings, depending on the situation.
- Changed the strings in the wbstartstruct to be FStrings.
- Changed myvsnprintf() to output nothing if count is greater than INT_MAX.
  This is so that I can use a series of mysnprintf() calls and advance the
  pointer for each one. Once the pointer goes beyond the end of the buffer,
  the count will go negative, but since it's an unsigned type it will be
  seen as excessively huge instead. This should not be a problem, as there's
  no reason for ZDoom to be using text buffers larger than 2 GB anywhere.
- Ripped out the disabled bit from FGameConfigFile::MigrateOldConfig().
- Changed CalcMapName() to return an FString instead of a pointer to a static
  buffer.
- Changed startmap in d_main.cpp into an FString.
- Changed CheckWarpTransMap() to take an FString& as the first argument.
- Changed d_mapname in g_level.cpp into an FString.
- Changed DoSubstitution() in ct_chat.cpp to place the substitutions in an
  FString.
- Fixed: The MAPINFO parser wrote into the string buffer to construct a map
  name when given a Hexen map number. This was fine with the old scanner
  code, but only a happy coincidence prevents it from crashing with the new
  code
- Added the 'B' conversion specifier to StringFormat::VWorker() for printing
  binary numbers.
- Added CMake support for building with MinGW, MSYS, and NMake. Linux support
  is probably broken until I get around to booting into Linux again. Niceties
  provided over the existing Makefiles they're replacing:
  * All command-line builds can use the same build system, rather than having
    a separate one for MinGW and another for Linux.
  * Microsoft's NMake tool is supported as a target.
  * Progress meters.
  * Parallel makes work from a fresh checkout without needing to be primed
    first with a single-threaded make.
  * Porting to other architectures should be simplified, whenever that day
    comes.
- Replaced the makewad tool with zipdir. This handles the dependency tracking
  itself instead of generating an external makefile to do it, since I couldn't
  figure out how to generate a makefile with an external tool and include it
  with a CMake-generated makefile. Where makewad used a master list of files
  to generate the package file, zipdir just zips the entire contents of one or
  more directories.
- Added the gdtoa package from netlib's fp library so that ZDoom's printf-style
  formatting can be entirely independant of the CRT.

SVN r1082 (trunk)
2008-07-23 04:57:26 +00:00

560 lines
6.6 KiB
Text

//
// Doom Locks - they include Heretic's keys because somebody mentioned that he already used them
//
ClearLocks
Lock 1 Doom
{
RedCard
Message "$PD_REDC"
RemoteMessage "$PD_REDCO"
Mapcolor 255 0 0
}
Lock 2 Doom
{
BlueCard
Message "$PD_BLUEC"
RemoteMessage "$PD_BLUECO"
Mapcolor 0 0 255
}
Lock 3 Doom
{
YellowCard
Message "$PD_YELLOWC"
RemoteMessage "$PD_YELLOWCO"
Mapcolor 255 255 0
}
Lock 4 Doom
{
RedSkull
Message "$PD_REDS"
RemoteMessage "$PD_REDSO"
Mapcolor 255 0 0
}
Lock 5 Doom
{
BlueSkull
Message "$PD_BLUES"
RemoteMessage "$PD_BLUESO"
Mapcolor 0 0 255
}
Lock 6 Doom
{
YellowSkull
Message "$PD_YELLOWS"
RemoteMessage "$PD_YELLOWSO"
Mapcolor 255 255 0
}
Lock 129 Doom
{
Any { RedCard RedSkull KeyGreen }
Message "$PD_REDK"
RemoteMessage "$PD_REDO"
Mapcolor 255 0 0
}
Lock 130 Doom
{
Any { BlueCard BlueSkull KeyBlue }
Message "$PD_BLUEK"
RemoteMessage "$PD_BLUEO"
Mapcolor 0 0 255
}
Lock 131 Doom
{
Any { YellowCard YellowSkull KeyYellow }
Message "$PD_YELLOWK"
RemoteMessage "$PD_YELLOWO"
Mapcolor 255 255 0
}
Lock 132 Doom
{
Any { RedCard RedSkull }
Message "$PD_REDK"
RemoteMessage "$PD_REDO"
Mapcolor 255 0 0
}
Lock 133 Doom
{
Any { BlueCard BlueSkull }
Message "$PD_BLUEK"
RemoteMessage "$PD_BLUEO"
Mapcolor 0 0 255
}
Lock 134 Doom
{
Any { YellowCard YellowSkull }
Message "$PD_YELLOWK"
RemoteMessage "$PD_YELLOWO"
Mapcolor 255 255 0
}
Lock 100
{
Message "$PD_ANY"
RemoteMessage "$PD_ANYOBJ"
Mapcolor 128 128 255
}
Lock 228
{
Message "$PD_ANY"
RemoteMessage "$PD_ANYOBJ"
Mapcolor 128 128 255
}
Lock 229 Doom
{
Any { BlueCard BlueSkull KeyBlue}
Any { YellowCard YellowSkull KeyYellow}
Any { RedCard RedSkull KeyGreen}
Message "$PD_ALL3"
RemoteMessage "$PD_ALL3O"
}
Lock 101 Doom
{
BlueCard
BlueSkull
YellowCard
YellowSkull
RedCard
RedSkull
Message "$PD_ALL6"
RemoteMessage "$PD_ALL6O"
}
//
// Heretic KeyDefs
//
Lock 1 Heretic
{
KeyGreen
Message "$TXT_NEEDGREENKEY"
Mapcolor 0 255 0
}
Lock 2 Heretic
{
KeyBlue
Message "$TXT_NEEDBLUEKEY"
Mapcolor 0 0 255
}
Lock 3 Heretic
{
KeyYellow
Message "$TXT_NEEDYELLOWKEY"
Mapcolor 255 255 0
}
Lock 129 Heretic
{
KeyGreen
Message "$TXT_NEEDGREENKEY"
Mapcolor 0 255 0
}
Lock 130 Heretic
{
KeyBlue
Message "$TXT_NEEDBLUEKEY"
Mapcolor 0 0 255
}
Lock 131 Heretic
{
KeyYellow
Message "$TXT_NEEDYELLOWKEY"
Mapcolor 255 255 0
}
Lock 229 Heretic
{
KeyGreen
KeyYellow
KeyBlue
Message "$PD_ALL3"
RemoteMessage "$PD_ALL3O"
}
Lock 101 Heretic
{
KeyGreen
KeyYellow
KeyBlue
Message "$PD_ALL3"
RemoteMessage "$PD_ALL3O"
}
//
// Hexen KeyDefs
//
Lock 1 Hexen
{
KeySteel
Message "$TXT_NEED_KEY_STEEL"
Mapcolor 150 150 150
}
Lock 2 Hexen
{
KeyCave
Message "$TXT_NEED_KEY_CAVE"
Mapcolor 255 218 0
}
Lock 3 Hexen
{
KeyAxe
Message "$TXT_NEED_KEY_AXE"
Mapcolor 64 64 255
}
Lock 4 Hexen
{
KeyFire
Message "$TXT_NEED_KEY_FIRE"
Mapcolor 255 128 0
}
Lock 5 Hexen
{
KeyEmerald
Message "$TXT_NEED_KEY_EMERALD"
Mapcolor 0 255 0
}
Lock 6 Hexen
{
KeyDungeon
Message "$TXT_NEED_KEY_DUNGEON"
Mapcolor 47 151 255
}
Lock 7 Hexen
{
KeySilver
Message "$TXT_NEED_KEY_SILVER"
Mapcolor 154 152 188
}
Lock 8 Hexen
{
KeyRusted
Message "$TXT_NEED_KEY_RUSTED"
Mapcolor 156 76 0
}
Lock 9 Hexen
{
KeyHorn
Message "$TXT_NEED_KEY_HORN"
Mapcolor 255 218 0
}
Lock 10 Hexen
{
KeySwamp
Message "$TXT_NEED_KEY_SWAMP"
Mapcolor 64 255 64
}
Lock 11 Hexen
{
KeyCastle
Message "$TXT_NEED_KEY_CASTLE"
Mapcolor 255 64 64
}
Lock 101 Hexen
{
KeySteel
KeyCave
KeyAxe
KeyFire
KeyEmerald
KeyDungeon
KeySilver
KeyRusted
KeyHorn
KeySwamp
KeyCastle
Message "$PD_ALLKEYS"
}
Lock 229 Hexen
{
KeySteel
KeyCave
KeyAxe
KeyFire
KeyEmerald
KeyDungeon
KeySilver
KeyRusted
KeyHorn
KeySwamp
KeyCastle
Message "$PD_ALLKEYS"
}
// Strife KeyDefs
Lock 1 Strife
{
BaseKey
Message "You don't have the key"
Mapcolor 150 150 150
}
Lock 2 Strife
{
GovsKey
Message "$TXT_NEEDKEY"
Mapcolor 150 150 150
}
Lock 3 Strife
{
Passcard
RemoteMessage "$TXT_NEED_PASSCARD"
Message "$TXT_NEED_PASSCARD_DOOR"
Mapcolor 128 266 150
}
Lock 4 Strife
{
IDBadge
Message "$TXT_NEED_IDCARD"
Mapcolor 255 128 0
}
Lock 5 Strife
{
PrisonKey
Message "$TXT_NEED_PRISONKEY"
Mapcolor 0 255 0
}
Lock 6 Strife
{
SeveredHand
Message "$TXT_NEED_HANDPRINT"
Mapcolor 255 151 100
}
Lock 7 Strife
{
Power1Key
Message "$TXT_NEEDKEY"
Mapcolor 150 150 150
}
Lock 8 Strife
{
Power2Key
Message "$TXT_NEEDKEY"
Mapcolor 150 150 150
}
Lock 9 Strife
{
Power3Key
Message "$TXT_NEEDKEY"
Mapcolor 150 150 150
}
Lock 10 Strife
{
GoldKey
Message "$TXT_NEED_GOLDKEY"
Mapcolor 255 200 0
}
Lock 11 Strife
{
IDCard
RemoteMessage "$TXT_NEED_IDBADGE"
Message "$TXT_NEED_IDBADGE_DOOR"
Mapcolor 200 0 0
}
Lock 12 Strife
{
SilverKey
Message "$TXT_NEED_SILVERKEY"
Mapcolor 150 150 150
}
Lock 13 Strife
{
OracleKey
Message "$TXT_NEEDKEY"
Mapcolor 150 150 150
}
Lock 14 Strife
{
MilitaryID
Message "$TXT_NEEDKEY"
Mapcolor 150 150 150
}
Lock 15 Strife
{
OrderKey
Message "$TXT_NEEDKEY"
Mapcolor 150 150 150
}
Lock 16 Strife
{
WarehouseKey
Message "$TXT_NEEDKEY"
Mapcolor 150 150 150
}
Lock 17 Strife
{
BrassKey
Message "$TXT_NEED_BRASSKEY"
Mapcolor 150 75 0
}
Lock 18 Strife
{
RedCrystalKey
Message "$TXT_NEED_REDCRYSTAL"
Mapcolor 150 150 150
}
Lock 19 Strife
{
BlueCrystalKey
Message "$TXT_NEED_BLUECRYSTAL"
Mapcolor 150 150 150
}
Lock 20 Strife
{
ChapelKey
Message "$TXT_NEEDKEY"
Mapcolor 150 150 150
}
Lock 21 Strife
{
CatacombKey
Message "$TXT_NEEDKEY"
Mapcolor 150 150 150
}
Lock 22 Strife
{
SecurityKey
Message "$TXT_NEEDKEY"
Mapcolor 150 150 150
}
Lock 23 Strife
{
CoreKey
Message "$TXT_NEEDKEY"
Mapcolor 150 150 150
}
Lock 24 Strife
{
MaulerKey
Message "$TXT_NEEDKEY"
Mapcolor 150 150 150
}
Lock 25 Strife
{
FactoryKey
Message "$TXT_NEEDKEY"
Mapcolor 150 150 150
}
Lock 26 Strife
{
MineKey
Message "$TXT_NEEDKEY"
Mapcolor 150 150 150
}
Lock 27 Strife
{
NewKey5
Message "$TXT_NEEDKEY"
Mapcolor 150 150 150
}
Lock 50 Strife
{
PrisonPass
Message "$TXT_NEEDKEY"
Mapcolor 150 150 150
}
Lock 51 Strife
{
OraclePass
Message "$TXT_NEEDKEY"
Mapcolor 150 150 150
}