From 79465ffc4279fbc6d138b6cbc87563374729a014 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Sun, 29 May 2022 10:34:33 +1000 Subject: [PATCH] - Duke: Add CON support for Duke Nukem 3D 1.1 Shareware. Based on EDuke32's parsing of the same commands. --- source/games/duke/src/condef.h | 3 +++ source/games/duke/src/gamedef.cpp | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/source/games/duke/src/condef.h b/source/games/duke/src/condef.h index a20985bcaa5..685fbe82e11 100644 --- a/source/games/duke/src/condef.h +++ b/source/games/duke/src/condef.h @@ -241,6 +241,9 @@ cmd(gmaxammo) // 191 cmd(smaxammo) // 192 cmd(mapvoxel) // 193 cmd(startlevel) // 194 +cmd(shadeto) // 195 +cmd(ifplayersl) // 196 +cmd(endoflevel) // 197 // RR Deer Huntin'. These are merely here for reference because the game is not supported. // cmd(iffindnewspot) diff --git a/source/games/duke/src/gamedef.cpp b/source/games/duke/src/gamedef.cpp index 332da843f27..7646e535d23 100644 --- a/source/games/duke/src/gamedef.cpp +++ b/source/games/duke/src/gamedef.cpp @@ -1308,6 +1308,7 @@ int ConCompiler::parsecommand() case concmd_spawn: case concmd_count: case concmd_endofgame: + case concmd_endoflevel: case concmd_spritepal: case concmd_cactor: case concmd_quote: @@ -1585,6 +1586,7 @@ int ConCompiler::parsecommand() case concmd_ifactorhealthl: case concmd_ifsoundid: case concmd_ifsounddist: + case concmd_ifplayersl: transnum(tw == concmd_ifai? LABEL_AI : tw == concmd_ifaction? LABEL_ACTION : tw == concmd_ifmove? LABEL_MOVE : LABEL_DEFINE); [[fallthrough]]; case concmd_ifonwater: @@ -3067,6 +3069,11 @@ int ConCompiler::parsecommand() return 0; + case concmd_shadeto: + popscriptvalue(); + transnum(LABEL_DEFINE); + popscriptvalue(); + break; } return 0; }