[Scummvm-git-logs] scummvm master -> 50e65da7686396ae09fa84911de9391353a40405
neuromancer
noreply at scummvm.org
Mon Nov 23 14:37:20 UTC 2026
This automated email contains information about 8 new commits which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
f7134cde64 HOLLYWOOD: RUNAWAY: added missing interactions in chapter 6
c62ae7d27a HOLLYWOOD: RUNAWAY: restore riffle item
e0e9a049c2 HOLLYWOOD: RUNAWAY: added restored content in chapter 6
af501ba89f HOLLYWOOD: RUNAWAY: improved navigation in 5080 and 5110 using original data
9dc057937f HOLLYWOOD: RUNAWAY: proper rendering and interactions in 5100
904b61b279 HOLLYWOOD: RUNAWAY: added few missing interactions related with items
18fc3ea918 HOLLYWOOD: RUNAWAY: make sure Brian visibility is correct in 5020
50e65da768 HOLLYWOOD: RUNAWAY: audited and fixed special captions across all scenes
Commit: f7134cde6475c9e46a6919e14a91f6e0f4d32834
https://github.com/scummvm/scummvm/commit/f7134cde6475c9e46a6919e14a91f6e0f4d32834
Author: neuromancer (gustavo.grieco at gmail.com)
Date: 2026-11-23T14:59:49+01:00
Commit Message:
HOLLYWOOD: RUNAWAY: added missing interactions in chapter 6
Changed paths:
engines/hollywood/runaway/inventory.cpp
engines/hollywood/runaway/scene8240.cpp
engines/hollywood/runaway/scene8300.cpp
engines/hollywood/runaway/scene8370.cpp
diff --git a/engines/hollywood/runaway/inventory.cpp b/engines/hollywood/runaway/inventory.cpp
index 17873ab2cb8..36766069c42 100644
--- a/engines/hollywood/runaway/inventory.cpp
+++ b/engines/hollywood/runaway/inventory.cpp
@@ -262,6 +262,9 @@ Common::U32String RunawayInventory::name(byte item) const {
uint RunawayInventory::icon(byte item) const {
if (_chapter == 6) {
+ if (item == 7 && contains(20)) {
+ return 24;
+ }
if (item == 19 && _finale.scalpel == 1) {
return 22;
}
diff --git a/engines/hollywood/runaway/scene8240.cpp b/engines/hollywood/runaway/scene8240.cpp
index ace513e0622..3562dea0dc5 100644
--- a/engines/hollywood/runaway/scene8240.cpp
+++ b/engines/hollywood/runaway/scene8240.cpp
@@ -47,15 +47,12 @@ const RunawayResponse kResponses[] = {
{8240, 309, 7, 3}, // Examine the gardening shed.
{8240, 312, 10, 0}, // The door knob is carved into the column.
{8240, 315, 13, 0}, // Examine the bonsai.
- {8240, 316, 14, 0}, // Leave the bonsai where it belongs.
- {8240, 317, 15, 0} // Refuse to water the plants with an inventory item.
+ {8240, 316, 14, 0} // Leave the bonsai where it belongs.
};
const RunawayItemAction kItemActions[] = {
{8240, 9, 3, 318, false}, // Offer Rutger the Hopi axe-pipe.
- {8240, 10, 3, 319, false}, // Give Rutger the yawaskel seeds.
- {8240, 16, 7, 317, false}, {8240, 16, 8, 317, false},
- {8240, 24, 7, 317, false}, {8240, 24, 8, 317, false}
+ {8240, 10, 3, 319, false} // Give Rutger the yawaskel seeds.
};
const byte kRutgerFrames[] = {
diff --git a/engines/hollywood/runaway/scene8300.cpp b/engines/hollywood/runaway/scene8300.cpp
index c4260874c0b..306fffe1b3a 100644
--- a/engines/hollywood/runaway/scene8300.cpp
+++ b/engines/hollywood/runaway/scene8300.cpp
@@ -59,8 +59,7 @@ const RunawayResponse kResponses[] = {
const RunawayItemAction kItemActions[] = {
{8300, 8, 10, 334, false}, {8300, 12, 10, 334, false},
- {8300, 13, 10, 334, false}, {8300, 21, 10, 334, false},
- {8300, 10, 11, 338, false}
+ {8300, 13, 10, 334, false}, {8300, 21, 10, 334, false}
};
// The three sculpture variants share this sequence, including speech at step 90.
@@ -262,8 +261,6 @@ RunawayRoomScene::ActionResult Scene8300::dispatchCustomSceneAction(uint16 actio
say(_finale.saturnMet ? 80 : 81);
deferAction(400);
break;
- case 338: // The earlier wrench interaction is inactive in this chapter.
- break;
case 400: // Let Saturn finish his current gesture and face Brian.
_waitingForSaturn = true;
deferAction(401);
diff --git a/engines/hollywood/runaway/scene8370.cpp b/engines/hollywood/runaway/scene8370.cpp
index 83d8496d6f5..5e8cf89a0f5 100644
--- a/engines/hollywood/runaway/scene8370.cpp
+++ b/engines/hollywood/runaway/scene8370.cpp
@@ -310,7 +310,9 @@ RunawayRoomScene::ActionResult Scene8370::dispatchCustomSceneAction(uint16 actio
if (!_inventory.finale().heatNeeded) {
say(19, 0);
} else if (_inventory.finale().podsOpened) {
- say(19, _finale.mediumTests >= 3 ? 6 : 5);
+ say(19, 6);
+ } else if (_inventory.finale().scalpel == 1) {
+ say(19, 5);
} else {
say(19, 1);
beginRoomAnimation(416, 7, 38);
Commit: c62ae7d27aa38391af2064ba058600678d1e866e
https://github.com/scummvm/scummvm/commit/c62ae7d27aa38391af2064ba058600678d1e866e
Author: neuromancer (gustavo.grieco at gmail.com)
Date: 2026-11-23T14:59:49+01:00
Commit Message:
HOLLYWOOD: RUNAWAY: restore riffle item
Changed paths:
engines/hollywood/runaway/inventory.cpp
engines/hollywood/runaway/scene8090.cpp
engines/hollywood/runaway/scene8370.cpp
diff --git a/engines/hollywood/runaway/inventory.cpp b/engines/hollywood/runaway/inventory.cpp
index 36766069c42..79cb49c7bfd 100644
--- a/engines/hollywood/runaway/inventory.cpp
+++ b/engines/hollywood/runaway/inventory.cpp
@@ -396,6 +396,9 @@ uint RunawayInventory::cursor(byte item) const {
RunawayInventory::Reply RunawayInventory::examine(byte item, const RunawaySaveState &state) const {
if (_chapter == 6) {
+ if (item == 11) {
+ return Reply::fromStage(637, 14);
+ }
if (item == 19) {
return Reply(310, _finale.scalpel ? _finale.scalpel + 1 : _finale.heatNeeded);
}
diff --git a/engines/hollywood/runaway/scene8090.cpp b/engines/hollywood/runaway/scene8090.cpp
index 485e7a84041..e4a5c625a6e 100644
--- a/engines/hollywood/runaway/scene8090.cpp
+++ b/engines/hollywood/runaway/scene8090.cpp
@@ -115,6 +115,7 @@ void Scene8090::runCustomEntrySequence() {
_arrivalStarted = _now;
break;
case 8093: // Oscar returns armed, ready to confront the gangsters.
+ _inventory.remove(11);
_position = Common::Point(676, 510);
_walkPath.reset(_position);
_facing = 7;
@@ -398,15 +399,18 @@ RunawayRoomScene::ActionResult Scene8090::dispatchCustomSceneAction(uint16 actio
_animatesOscar = false;
setOscarPose(13, 100, 0);
_oscarMouth = 94;
- for (uint i = 12; i <= 19; ++i) {
+ for (uint i = 12; i <= 18; ++i) {
say(20, i, false, i <= 16 && !(i % 2));
}
+ if (!_inventory.contains(11)) {
+ say(20, 19);
+ }
deferAction(423);
break;
- case 423: // Return to Sushi to continue the plan.
+ case 423: // Arm Oscar with the borrowed rifle, or fetch it from Sushi.
_oscarPose = 0;
_oscar.startIdle();
- leaveRoom(8373);
+ leaveRoom(_inventory.contains(11) ? 8093 : 8373);
break;
case 1430: // Oscar shows Brian his rifle.
_animatesOscar = false;
diff --git a/engines/hollywood/runaway/scene8370.cpp b/engines/hollywood/runaway/scene8370.cpp
index 5e8cf89a0f5..f653dea3861 100644
--- a/engines/hollywood/runaway/scene8370.cpp
+++ b/engines/hollywood/runaway/scene8370.cpp
@@ -48,7 +48,6 @@ const RunawayResponse kResponses[] = {
{8370, 307, 5, 0}, // Notice the lit fireplace.
{8370, 311, 9, 0}, // Examine the poker.
{8370, 315, 13, 0}, // Watch Sushi at her computer.
- {8370, 318, 15, 0}, // Leave the rifle until Oscar needs it.
{8370, 319, 16, 0}, // Notice the precarious upper floor.
{8370, 321, 17, 0}, // Read the check-in book.
{8370, 322, 18, 0}, // Leave the book on the desk.
@@ -302,6 +301,17 @@ RunawayRoomScene::ActionResult Scene8370::dispatchCustomSceneAction(uint16 actio
_finale.rifle = 1;
}
break;
+ case 318: // Optionally borrow Sushi's rifle before Oscar needs it.
+ if (_finale.rifle == 2) {
+ break;
+ }
+ if (_restoredContent) {
+ say(15, 1);
+ deferAction(420);
+ } else {
+ say(15, 0);
+ }
+ break;
case 320: // Cross to the stairs and descend to the lobby.
walkTo(Common::Point(702, 340), 3, false, true);
deferAction(415);
@@ -366,6 +376,11 @@ RunawayRoomScene::ActionResult Scene8370::dispatchCustomSceneAction(uint16 actio
_inventory.finale().scalpel = 1;
say(19, 4);
break;
+ case 420: // Remove the rifle from the room and keep it in the inventory.
+ _finale.rifle = 2;
+ _inventory.add(11);
+ say(15, 2);
+ return kBackgroundChanged;
default:
return kUnhandled;
}
Commit: e0e9a049c2ba021ccbe987ce6ad9a8165839158d
https://github.com/scummvm/scummvm/commit/e0e9a049c2ba021ccbe987ce6ad9a8165839158d
Author: neuromancer (gustavo.grieco at gmail.com)
Date: 2026-11-23T14:59:49+01:00
Commit Message:
HOLLYWOOD: RUNAWAY: added restored content in chapter 6
Changed paths:
engines/hollywood/runaway/scene8090.cpp
engines/hollywood/runaway/scene8100.cpp
engines/hollywood/runaway/scene8370.cpp
engines/hollywood/runaway/scene8420.cpp
diff --git a/engines/hollywood/runaway/scene8090.cpp b/engines/hollywood/runaway/scene8090.cpp
index e4a5c625a6e..d391f0ed514 100644
--- a/engines/hollywood/runaway/scene8090.cpp
+++ b/engines/hollywood/runaway/scene8090.cpp
@@ -481,7 +481,7 @@ void Scene8090::enterHouse(bool visitGina) {
if (_finale.mediumTests < 3) {
_houseDestination = 8420;
} else if (!_finale.recordingPlan) {
- _houseDestination = 0;
+ _houseDestination = _restoredContent ? 8420 : 0;
} else if (_finale.recordings == 0 || _finale.recordings == 2) {
_houseDestination = 8422;
} else {
diff --git a/engines/hollywood/runaway/scene8100.cpp b/engines/hollywood/runaway/scene8100.cpp
index 5e3fc6eb747..348f31c4788 100644
--- a/engines/hollywood/runaway/scene8100.cpp
+++ b/engines/hollywood/runaway/scene8100.cpp
@@ -424,7 +424,7 @@ void Scene8100::startPrayers() {
void Scene8100::leaveHouse() {
uint16 destination = 8091;
if (_visitingGina) {
- if (_finale.mediumTests < 3) {
+ if (_finale.mediumTests < 3 || (_restoredContent && !_finale.recordingPlan)) {
destination = 8420;
} else if (_finale.recordingPlan && (_finale.recordings == 0 || _finale.recordings == 2)) {
destination = 8422;
diff --git a/engines/hollywood/runaway/scene8370.cpp b/engines/hollywood/runaway/scene8370.cpp
index f653dea3861..541c7523f26 100644
--- a/engines/hollywood/runaway/scene8370.cpp
+++ b/engines/hollywood/runaway/scene8370.cpp
@@ -289,7 +289,7 @@ RunawayRoomScene::ActionResult Scene8370::dispatchCustomSceneAction(uint16 actio
_audio.playEffect(37);
if (++_finale.bellRings == 5) {
_finale.bellRings = 1;
- say(12, _random.getRandomBit(), false, 1);
+ say(12, _restoredContent ? _random.getRandomNumber(2) : _random.getRandomBit(), false, 1);
}
break;
case 316: // Enter Sushi's work area from the upper walkway.
diff --git a/engines/hollywood/runaway/scene8420.cpp b/engines/hollywood/runaway/scene8420.cpp
index fb826005eb1..49a9351a710 100644
--- a/engines/hollywood/runaway/scene8420.cpp
+++ b/engines/hollywood/runaway/scene8420.cpp
@@ -174,7 +174,11 @@ void Scene8420::exchange(uint16 cue, byte first, byte last) {
void Scene8420::startGinaConversation() {
startConversation(1);
_destination = _finale.mediumDiscussed ? 8091 : 8101;
- _dialogue[0][0] = {1, 0, 3, 14, 15, 1, 0};
+ byte recovery = 15;
+ if (_restoredContent) {
+ recovery = _finale.seanceComplete ? 16 : (_finale.mediumTests ? 15 : 14);
+ }
+ _dialogue[0][0] = {1, 0, 3, 14, recovery, 1, 0};
_dialogue[0][1] = {byte(_finale.mediumDiscussed && _finale.mediumTests < 3), 0, 1, 17, 17, 0, 0};
_dialogue[0][2] = {byte(!_finale.mediumDiscussed && _finale.mediumTests < 3), 1, 1, 18, 18, 0, 0};
_dialogue[0][3] = {byte(_finale.mediumTests >= 3), 2, 1, 21, 21, 0, 0};
@@ -191,6 +195,9 @@ void Scene8420::handleCustomDialogueChoice(byte effect) {
}
void Scene8420::finishCustomConversation() {
+ if (_finale.seanceComplete) {
+ _finale.ginaVisitPending = 1;
+ }
deferAction(430);
}
@@ -206,7 +213,7 @@ void Scene8420::startNightmareMovement(byte first, byte last, uint16 nextAction)
RunawayRoomScene::ActionResult Scene8420::dispatchCustomSceneAction(uint16 action) {
switch (action) {
case 400: // Greet Gina from the bedroom entrance.
- say(40, _finale.ginaVisited ? 11 : 0);
+ say(40, (_finale.ginaVisited || _finale.seanceComplete) ? 11 : 0);
deferAction(401);
break;
case 401: // Let Gina finish moving her injured leg before answering.
@@ -214,7 +221,7 @@ RunawayRoomScene::ActionResult Scene8420::dispatchCustomSceneAction(uint16 actio
deferAction(402);
break;
case 402: // Gina recognizes Brian.
- say(50, _finale.ginaVisited ? 11 : 0, false, 1);
+ say(50, (_finale.ginaVisited || _finale.seanceComplete) ? 11 : 0, false, 1);
deferAction(403);
break;
case 403: // Walk over to the bed.
@@ -222,7 +229,9 @@ RunawayRoomScene::ActionResult Scene8420::dispatchCustomSceneAction(uint16 actio
deferAction(404);
break;
case 404: // Explain the séance plan, or report progress on finding a medium.
- if (!_finale.ginaVisited) {
+ if (_finale.seanceComplete) {
+ _finale.ginaVisited = 1;
+ } else if (!_finale.ginaVisited) {
exchange(40, 1, 8);
say(40, _finale.mediumDiscussed ? 10 : 9);
say(50, 10, false, 1);
Commit: af501ba89fc567628db2044e8d12db27865a0f3a
https://github.com/scummvm/scummvm/commit/af501ba89fc567628db2044e8d12db27865a0f3a
Author: neuromancer (gustavo.grieco at gmail.com)
Date: 2026-11-23T14:59:49+01:00
Commit Message:
HOLLYWOOD: RUNAWAY: improved navigation in 5080 and 5110 using original data
Changed paths:
engines/hollywood/runaway/navigation.cpp
engines/hollywood/runaway/navigation.h
engines/hollywood/runaway/scene.cpp
engines/hollywood/runaway/scene.h
engines/hollywood/runaway/scene5080.cpp
engines/hollywood/runaway/scene5080.h
engines/hollywood/runaway/scene5110.cpp
engines/hollywood/runaway/scene5110.h
diff --git a/engines/hollywood/runaway/navigation.cpp b/engines/hollywood/runaway/navigation.cpp
index c5d23ce48fd..27aa9e60712 100644
--- a/engines/hollywood/runaway/navigation.cpp
+++ b/engines/hollywood/runaway/navigation.cpp
@@ -20,12 +20,22 @@
*/
#include "common/debug.h"
+#include "common/endian.h"
#include "common/util.h"
#include "hollywood/debug.h"
#include "hollywood/runaway/navigation.h"
namespace Hollywood {
+namespace {
+
+const uint kWalkZoneCount = 21;
+const uint kZonePointCount = 20;
+const uint kZoneRouteLength = 19;
+const uint kZonePointBytes = kWalkZoneCount * kWalkZoneCount * kZonePointCount * 4;
+
+} // End of anonymous namespace
+
byte runawayFacingTo(Common::Point position, Common::Point target) {
const int dx = target.x - position.x;
const int dy = target.y - position.y;
@@ -51,10 +61,80 @@ bool RunawayWalkMap::clearPath(Common::Point start, Common::Point end) const {
return true;
}
+byte RunawayWalkMap::nearestZone(Common::Point position) const {
+ if (walkable(position.x, position.y))
+ return _maps[_mask[position.y * _width + position.x]];
+ // A walk can be interrupted in a gap within a zone, and some approach
+ // positions lie just outside the painted floor.
+ int bestDistance = 0x7fffffff;
+ byte zone = 0;
+ for (int y = 0; y < _height; ++y) {
+ for (int x = 0; x < _width; ++x) {
+ const byte candidate = _maps[_mask[y * _width + x]];
+ if (!candidate || candidate >= kWalkZoneCount)
+ continue;
+ const int distance = (x - position.x) * (x - position.x) + (y - position.y) * (y - position.y);
+ if (distance < bestDistance) {
+ bestDistance = distance;
+ zone = candidate;
+ }
+ }
+ }
+ return zone;
+}
+
+bool RunawayWalkMap::findZonePath(Common::Point position, Common::Point target, Common::Array<Common::Point> &path) const {
+ if (_routes->size() != kZonePointBytes + kWalkZoneCount * kWalkZoneCount * kZoneRouteLength)
+ return false;
+ byte zone = nearestZone(position);
+ const byte targetZone = nearestZone(target);
+ if (!zone || zone >= kWalkZoneCount || !targetZone || targetZone >= kWalkZoneCount)
+ return false;
+ const byte *route = _routes->data() + kZonePointBytes + (zone * kWalkZoneCount + targetZone) * kZoneRouteLength;
+ for (uint step = 0; zone != targetZone && step < kZoneRouteLength; ++step) {
+ const byte nextZone = route[step];
+ if (!nextZone || nextZone >= kWalkZoneCount)
+ return false;
+ const byte *points = _routes->data() + (zone * kWalkZoneCount + nextZone) * kZonePointCount * 4;
+ int bestDistance = 0x7fffffff;
+ Common::Point next;
+ for (uint i = 0; i < kZonePointCount; ++i) {
+ const uint x = READ_LE_UINT16(points + i * 4), y = READ_LE_UINT16(points + i * 4 + 2);
+ if (x == 0xffff)
+ break;
+ if (x >= (uint)_width || y >= (uint)_height)
+ return false;
+ const Common::Point point(x, y);
+ int distance = position.sqrDist(point);
+ // The final boundary also accounts for the destination (native 0x4332f0).
+ if (nextZone == targetZone)
+ distance += target.sqrDist(point);
+ if (distance < bestDistance) {
+ bestDistance = distance;
+ next = point;
+ }
+ }
+ if (bestDistance == 0x7fffffff)
+ return false;
+ path.push_back(next);
+ position = next;
+ zone = nextZone;
+ }
+ if (zone != targetZone)
+ return false;
+ path.push_back(target);
+ return true;
+}
+
void RunawayWalkMap::findPath(Common::Point position, Common::Point target, Common::Array<Common::Point> &path) const {
path.clear();
- if (position.x < 0 || position.x >= _width || position.y < 0 || position.y >= _height ||
- _mask.size() != (uint)(_width * _height) || _maps.size() < 256)
+ if (_mask.size() != (uint)(_width * _height) || _maps.size() < 256)
+ return;
+ // Original zone routes can cross intentional gaps in the floor mask.
+ if (_routes && findZonePath(position, target, path))
+ return;
+ path.clear();
+ if (position.x < 0 || position.x >= _width || position.y < 0 || position.y >= _height)
return;
// Search only the connected floor. Using pixel resolution preserves the
// one-pixel-wide approach to the plug, which a coarse navigation grid loses.
diff --git a/engines/hollywood/runaway/navigation.h b/engines/hollywood/runaway/navigation.h
index cd2f4a3cd89..5b0aec6814f 100644
--- a/engines/hollywood/runaway/navigation.h
+++ b/engines/hollywood/runaway/navigation.h
@@ -31,15 +31,19 @@ byte runawayFacingTo(Common::Point position, Common::Point target);
class RunawayWalkMap {
public:
- RunawayWalkMap(int width, int height, const Common::Array<byte> &mask, const Common::Array<byte> &maps) :
- _width(width), _height(height), _mask(mask), _maps(maps) {}
+ RunawayWalkMap(int width, int height, const Common::Array<byte> &mask, const Common::Array<byte> &maps,
+ const Common::Array<byte> *routes = nullptr) :
+ _width(width), _height(height), _mask(mask), _maps(maps), _routes(routes) {}
void findPath(Common::Point start, Common::Point target, Common::Array<Common::Point> &path) const;
private:
bool walkable(int x, int y) const;
bool clearPath(Common::Point start, Common::Point end) const;
+ byte nearestZone(Common::Point position) const;
+ bool findZonePath(Common::Point start, Common::Point target, Common::Array<Common::Point> &path) const;
int _width, _height;
const Common::Array<byte> &_mask, &_maps;
+ const Common::Array<byte> *_routes;
};
class RunawayWalkPath {
diff --git a/engines/hollywood/runaway/scene.cpp b/engines/hollywood/runaway/scene.cpp
index 9a7336fbb19..494084b67b6 100644
--- a/engines/hollywood/runaway/scene.cpp
+++ b/engines/hollywood/runaway/scene.cpp
@@ -400,6 +400,10 @@ void RunawayRoomScene::walkTo(Common::Point target, byte facing, bool scripted,
}
void RunawayRoomScene::findWalkPath(Common::Point target) {
+ if (!_walkRoutes.empty()) {
+ findGameplayWalkPath(target);
+ return;
+ }
_walkPath.findPath(RunawayWalkMap(_background.w, _background.h, _mask, _maps), target);
}
@@ -734,7 +738,8 @@ void RunawayRoomScene::findGameplayWalkPath(Common::Point target) {
}
}
}
- _walkPath.findPath(RunawayWalkMap(_background.w, _background.h, _mask, _originalMaps), target);
+ _walkPath.findPath(RunawayWalkMap(_background.w, _background.h, _mask, _originalMaps,
+ _walkRoutes.empty() ? nullptr : &_walkRoutes), target);
}
void RunawayRoomScene::updateOutdoorMusic(byte cueCount) {
diff --git a/engines/hollywood/runaway/scene.h b/engines/hollywood/runaway/scene.h
index 98f9d7c124e..8ac448f3aae 100644
--- a/engines/hollywood/runaway/scene.h
+++ b/engines/hollywood/runaway/scene.h
@@ -304,6 +304,7 @@ protected:
Common::Array<byte> _actionFrames, _secondaryFrames;
Graphics::ManagedSurface _background, _screen;
Common::Array<byte> _mask, _originalMaps, _maps;
+ Common::Array<byte> _walkRoutes;
Common::Array<Common::Rect> _foreground[5];
RunawayWalkPath _walkPath;
struct SpeechLine {
diff --git a/engines/hollywood/runaway/scene5080.cpp b/engines/hollywood/runaway/scene5080.cpp
index 6476f9857be..c740c95aaec 100644
--- a/engines/hollywood/runaway/scene5080.cpp
+++ b/engines/hollywood/runaway/scene5080.cpp
@@ -88,7 +88,8 @@ const char *Scene5080::actionCaptionVariant(byte id, bool look, byte item) const
bool Scene5080::loadCustomResources() {
Graphics::ManagedSurface scratch(1, 1, _screen.format);
- if (!_archive.readVariableChunk(6, _parallax) || !applyRunawayPatch(_parallax, scratch) ||
+ if (!_archive.readVariableChunk(3, _walkRoutes) ||
+ !_archive.readVariableChunk(6, _parallax) || !applyRunawayPatch(_parallax, scratch) ||
!_archive.readVariableChunk(21, _shedRoof) || !applyRunawayPatch(_shedRoof, scratch) ||
!_ambientAnimations[0].load(_archive, 18, 769) ||
!_ambientAnimations[1].load(_archive, 17, 672) ||
@@ -126,6 +127,14 @@ void Scene5080::applyCustomHotspotState() {
}
}
+bool Scene5080::adjustCustomWalkTargetToFloorMask(Common::Point &target) const {
+ target.x = MIN<int>(target.x, 1133);
+ if (target.x > 683 && target.x < 766 && target.y > 374) {
+ target.x = target.x - 683 <= 766 - target.x ? 683 : 766;
+ }
+ return false;
+}
+
float Scene5080::actorHeight() const {
if (_position.x >= 690) {
return _position.y * 0.913978517f - 166.397842f;
@@ -209,7 +218,7 @@ RunawayRoomScene::ActionResult Scene5080::dispatchCustomSceneAction(uint16 actio
say(17, 0, true);
} else {
say(21);
- walkTo(Common::Point(564, 497), 7, true);
+ walkTo(Common::Point(564, 497), 7);
byte brian[49] = {}, butter[49] = {};
for (uint i = 1; i < 39; ++i) {
brian[i] = i - 1;
@@ -246,7 +255,7 @@ RunawayRoomScene::ActionResult Scene5080::dispatchCustomSceneAction(uint16 actio
}
break;
case 446: // Step back from the ants.
- walkTo(Common::Point(906, 450), 5, true);
+ walkTo(Common::Point(906, 450), 5);
deferDesertAction(456);
break;
case 456: // Watch the ants consume the shed.
diff --git a/engines/hollywood/runaway/scene5080.h b/engines/hollywood/runaway/scene5080.h
index 6b77e138c25..4d76e21a996 100644
--- a/engines/hollywood/runaway/scene5080.h
+++ b/engines/hollywood/runaway/scene5080.h
@@ -36,6 +36,7 @@ private:
bool loadCustomResources() override;
bool applyCustomBackgroundPatches() override;
void applyCustomHotspotState() override;
+ bool adjustCustomWalkTargetToFloorMask(Common::Point &target) const override;
float actorHeight() const override;
ActionResult dispatchCustomSceneAction(uint16 action) override;
void runCustomEntrySequence() override;
diff --git a/engines/hollywood/runaway/scene5110.cpp b/engines/hollywood/runaway/scene5110.cpp
index 50074b9684b..56951b3442e 100644
--- a/engines/hollywood/runaway/scene5110.cpp
+++ b/engines/hollywood/runaway/scene5110.cpp
@@ -79,7 +79,8 @@ Scene5110::Scene5110(RunawayAudio &audio, RunawayInventory &inventory, const Run
bool Scene5110::loadCustomResources() {
Graphics::ManagedSurface scratch(1, 1, _screen.format);
- return _archive.readVariableChunk(14, _gunpowder) && applyRunawayPatch(_gunpowder, scratch) &&
+ return _archive.readVariableChunk(3, _walkRoutes) &&
+ _archive.readVariableChunk(14, _gunpowder) && applyRunawayPatch(_gunpowder, scratch) &&
_curtainAnimation.load(_archive, 4, 50) &&
_shadowAnimation.load(_archive, 5, 50) &&
_bucketAnimation.load(_archive, 8, 1) &&
@@ -99,6 +100,11 @@ void Scene5110::applyCustomHotspotState() {
}
}
+bool Scene5110::adjustCustomWalkTargetToFloorMask(Common::Point &target) const {
+ target.x = CLIP<int>(target.x, 293, 801);
+ return false;
+}
+
float Scene5110::actorHeight() const {
return _position.y * 1.142857194f - 170.571426f;
}
diff --git a/engines/hollywood/runaway/scene5110.h b/engines/hollywood/runaway/scene5110.h
index f79f3a76d1d..d6bb2cb33e3 100644
--- a/engines/hollywood/runaway/scene5110.h
+++ b/engines/hollywood/runaway/scene5110.h
@@ -35,6 +35,7 @@ private:
bool loadCustomResources() override;
bool applyCustomBackgroundPatches() override;
void applyCustomHotspotState() override;
+ bool adjustCustomWalkTargetToFloorMask(Common::Point &target) const override;
float actorHeight() const override;
void setupActorDepth(RunawayActor::RenderParams ¶ms) const override;
ActionResult dispatchCustomSceneAction(uint16 action) override;
Commit: 9dc057937fee4c3a337a2744f74b80aceffb8bf9
https://github.com/scummvm/scummvm/commit/9dc057937fee4c3a337a2744f74b80aceffb8bf9
Author: neuromancer (gustavo.grieco at gmail.com)
Date: 2026-11-23T14:59:50+01:00
Commit Message:
HOLLYWOOD: RUNAWAY: proper rendering and interactions in 5100
Changed paths:
engines/hollywood/runaway/scene5100.cpp
engines/hollywood/runaway/scene5100.h
diff --git a/engines/hollywood/runaway/scene5100.cpp b/engines/hollywood/runaway/scene5100.cpp
index 89fe19905d6..bac16b8db50 100644
--- a/engines/hollywood/runaway/scene5100.cpp
+++ b/engines/hollywood/runaway/scene5100.cpp
@@ -67,7 +67,7 @@ const RunawayHotspot kHotspots[] = {
{253, 418, 4, {321, 322}, {0, 0}, {245, 491}}, // 12: Can.
{0, 0, 1, {323, 324}, {1, 0}, {786, 403}}, // 13: Bucket.
{253, 418, 4, {1, 325}, {0, 0}, {253, 600}}, // 14: Outside.
- {1053, 403, 3, {1, 329}, {0, 1}, {490, 493}}, // 15: Stud.
+ {1053, 403, 3, {329, 329}, {1, 1}, {490, 493}}, // 15: Stud (peek around the corner).
{0, 0, 0, {0, 0}, {0, 0}, {0, 0}}, // 16: Beer Can.
{0, 0, 0, {0, 0}, {0, 0}, {0, 0}}, // 17: Peanut Butter.
{0, 0, 0, {0, 0}, {0, 0}, {0, 0}}, // 18: Foot Rest.
@@ -142,6 +142,33 @@ bool Scene5100::loadCustomResources() {
_lulaAnimation.load(_archive, 16, 79);
}
+bool Scene5100::adjustCustomWalkTargetToFloorMask(Common::Point &target) const {
+ if (_desert.insideBarn) {
+ target = Common::Point(253, 418);
+ return true;
+ }
+ target.x = CLIP<int>(target.x, _desert.guard == 2 ? 141 : 1053, 1471);
+ return false;
+}
+
+byte Scene5100::actorWalkZone() const {
+ // The one-pixel-wide corridors can fall between Brian's rounded positions.
+ for (int distance = 0; distance < _background.h; ++distance) {
+ const int above = _position.y - distance, below = _position.y + distance;
+ if (above >= 0 && above < _background.h) {
+ const byte zone = _originalMaps[_mask[above * _background.w + _position.x]];
+ if (zone)
+ return zone;
+ }
+ if (below >= 0 && below < _background.h) {
+ const byte zone = _originalMaps[_mask[below * _background.w + _position.x]];
+ if (zone)
+ return zone;
+ }
+ }
+ return 0;
+}
+
float Scene5100::actorHeight() const {
return _position.y * 0.668016195f + 87.591095f;
}
@@ -152,7 +179,7 @@ int Scene5100::sceneViewportYOffset() const {
}
void Scene5100::setupActorDepth(RunawayActor::RenderParams ¶ms) const {
- const bool behindHangar = _desert.guard != 2 && (walkZone() == 3 || _position == Common::Point(253, 418));
+ const bool behindHangar = _desert.guard != 2 && actorWalkZone() == 3;
params.depthY[1] = behindHangar ? 599 : 0;
params.depthY[2] = behindHangar ? 599 : 303;
params.depthY[3] = behindHangar ? 599 : 446;
@@ -161,6 +188,8 @@ void Scene5100::setupActorDepth(RunawayActor::RenderParams ¶ms) const {
RunawayRoomScene::ActionResult Scene5100::dispatchCustomSceneAction(uint16 action) {
switch (action) {
+ case 1: // The window and exit have no look response.
+ break;
case 302: // Go to the desert overview.
leaveDesertRoom(5010);
break;
@@ -607,6 +636,7 @@ Common::U32String Scene5100::hotspotName(byte id) const {
bool Scene5100::applyCustomBackgroundPatches() {
const uint mask = _desert.insideBarn ? 23 : _desert.guard == 2 ? 26 : 1;
return loadRunawayMask(_archive, _background.w, _background.h, _mask, _originalMaps, mask) &&
+ _archive.readVariableChunk(mask + 2, _walkRoutes) &&
(_desert.barnDoor != 2 || applyPatch(5)) && (_desert.peanutButter != 2 || applyPatch(6));
}
@@ -650,7 +680,7 @@ void Scene5100::applyCustomHotspotState() {
void Scene5100::walkHangar(Common::Point target, byte facing) {
// Scripted entrances cross the floor that is blocked while the guard watches.
- _walkPath.findPath(RunawayWalkMap(_background.w, _background.h, _mask, _originalMaps), target);
+ _walkPath.findPath(RunawayWalkMap(_background.w, _background.h, _mask, _originalMaps, &_walkRoutes), target);
_arrivalFacing = facing;
_walkElapsed = _lastFootstep = 0;
if (!_walkPath.active()) {
@@ -871,13 +901,13 @@ const RunawayHotspot *Scene5100::hotspot(byte id) const {
}
void Scene5100::drawCustomBackgroundComposite(Graphics::ManagedSurface &viewport) {
- if (!drawingRoomAnimation() && walkZone() != 7) {
+ if (!drawingRoomAnimation() && actorWalkZone() != 7) {
drawRoomComposite(viewport);
}
}
void Scene5100::drawCustomForegroundComposite(Graphics::ManagedSurface &viewport) {
- if (!drawingRoomAnimation() && walkZone() == 7) {
+ if (!drawingRoomAnimation() && actorWalkZone() == 7) {
drawRoomComposite(viewport);
}
if (_desert.guard == 1 && !_hangarIntroduction && _hangarThrowing) {
diff --git a/engines/hollywood/runaway/scene5100.h b/engines/hollywood/runaway/scene5100.h
index 3e434843789..3bba696184b 100644
--- a/engines/hollywood/runaway/scene5100.h
+++ b/engines/hollywood/runaway/scene5100.h
@@ -37,6 +37,8 @@ public:
private:
const char *actionCaptionVariant(byte id, bool look, byte item) const override;
bool loadCustomResources() override;
+ bool adjustCustomWalkTargetToFloorMask(Common::Point &target) const override;
+ byte actorWalkZone() const;
float actorHeight() const override;
int sceneViewportYOffset() const override;
void setupActorDepth(RunawayActor::RenderParams ¶ms) const override;
Commit: 904b61b27976b9ac7f6a45c0b12d48cac2c659f0
https://github.com/scummvm/scummvm/commit/904b61b27976b9ac7f6a45c0b12d48cac2c659f0
Author: neuromancer (gustavo.grieco at gmail.com)
Date: 2026-11-23T14:59:50+01:00
Commit Message:
HOLLYWOOD: RUNAWAY: added few missing interactions related with items
Changed paths:
dists/engine-data/hollywood.dat
engines/hollywood/runaway/desert.cpp
engines/hollywood/runaway/engine.cpp
engines/hollywood/runaway/hospital.cpp
engines/hollywood/runaway/inventory.cpp
engines/hollywood/runaway/inventory.h
engines/hollywood/runaway/museum.cpp
engines/hollywood/runaway/po/en.po
engines/hollywood/runaway/po/es.po
engines/hollywood/runaway/po/fr.po
engines/hollywood/runaway/po/runaway.pot
engines/hollywood/runaway/scene.h
engines/hollywood/runaway/scene5050.cpp
engines/hollywood/runaway/scene5060.cpp
engines/hollywood/runaway/scene5070.cpp
engines/hollywood/runaway/scene5100.cpp
engines/hollywood/runaway/strings.cpp
engines/hollywood/runaway/strings.h
engines/hollywood/runaway/town.cpp
engines/hollywood/runaway/ui.cpp
engines/hollywood/runaway/ui.h
diff --git a/dists/engine-data/hollywood.dat b/dists/engine-data/hollywood.dat
index a263621c783..3e8eab78bfb 100644
Binary files a/dists/engine-data/hollywood.dat and b/dists/engine-data/hollywood.dat differ
diff --git a/engines/hollywood/runaway/desert.cpp b/engines/hollywood/runaway/desert.cpp
index 1ac87066f46..2e3adbed63c 100644
--- a/engines/hollywood/runaway/desert.cpp
+++ b/engines/hollywood/runaway/desert.cpp
@@ -51,6 +51,12 @@ void RunawayRoomScene::visitDesertRoom(byte index, byte lines) {
}
void RunawayRoomScene::updateDesert(uint elapsed) {
+ if (_reviewingDesertPlan) {
+ if (!speaking()) {
+ _reviewingDesertPlan = false;
+ }
+ return;
+ }
if (updateCustomSequence()) {
return;
}
@@ -84,4 +90,19 @@ void RunawayRoomScene::deferDesertAction(uint16 action) {
_actionFrames.clear();
}
+void RunawayRoomScene::reviewDesertPlan(byte variation) {
+ _desert.planKnown = 1;
+ _inventory.add(23);
+ _reviewingDesertPlan = true;
+ say(174, 0, true);
+ if (variation) {
+ say(174, variation, true);
+ }
+ const RunawaySaveState::DesertItems &items = _inventory.desert();
+ if (items.bombReady && items.gunReady && items.helicopterReady) {
+ say(174, 4, true);
+ leaveDesertRoom(5062);
+ }
+}
+
} // End of namespace Hollywood
diff --git a/engines/hollywood/runaway/engine.cpp b/engines/hollywood/runaway/engine.cpp
index f8229771941..386e4e65341 100644
--- a/engines/hollywood/runaway/engine.cpp
+++ b/engines/hollywood/runaway/engine.cpp
@@ -127,6 +127,7 @@ Common::Point RunawayEngine::updateUI(uint32 now) {
if (!presentation) {
const byte hotspot = _scene->hotspotAt(mouse);
_ui->setDialogueChoices(_scene->dialogueChoices());
+ _ui->setInventoryFrame(_scene->inventoryFrame());
_ui->update(now, mouse, hotspot, sceneBusy(), _scene->speaking(),
_scene->inventoryPresentation(), _scene->speechFrame(), _scene->hasVerbControls(),
_scene->actionCursor(hotspot), _scene->preferLook(hotspot));
@@ -505,6 +506,9 @@ Common::Error RunawayEngine::run() {
_scene->captureState(_state);
_scene->sayInventory(_inventory->examine(command.target, _state));
break;
+ case RunawayUI::Command::kUseItem:
+ _scene->sayInventory(_inventory->use(command.target));
+ break;
case RunawayUI::Command::kCombine:
_scene->sayInventory(_inventory->combine(command.item, command.target));
break;
diff --git a/engines/hollywood/runaway/hospital.cpp b/engines/hollywood/runaway/hospital.cpp
index 80ba3c8f891..ee05da97f9f 100644
--- a/engines/hollywood/runaway/hospital.cpp
+++ b/engines/hollywood/runaway/hospital.cpp
@@ -19,6 +19,7 @@
*
*/
+#include "common/util.h"
#include "hollywood/runaway/scene.h"
namespace Hollywood {
@@ -35,6 +36,11 @@ void RunawayRoomScene::resumeHospital() {
}
void RunawayRoomScene::updateHospital(uint elapsed) {
+ if (_roomAction == 54) {
+ updateHospitalAudio();
+ updateHospitalInventory();
+ return;
+ }
advanceCustomGameplayLoop(elapsed);
if (!updateCustomSequence()) {
updateRoomAnimation();
@@ -71,18 +77,90 @@ bool RunawayRoomScene::sayHospitalInventory(const RunawayInventory::Reply &reply
}
// Searching Gina's bag reveals the matches on the first examination.
say(54, 1, true);
- if (_inventory.contains(9) && _inventory.contains(17) && !_inventory.headWig() && !_inventory.contains(10)) {
- _inventory.add(10);
- say(54, 4, true);
- } else if (_inventory.contains(9)) {
- say(54, _random.getRandomBit() ? 3 : 5, true);
- } else {
- _inventory.add(9);
- say(54, 2, true);
- }
+ deferAction(54);
+ _actionStage = 0;
return true;
}
+void RunawayRoomScene::updateHospitalInventory() {
+ if (speaking()) {
+ return;
+ }
+ const uint elapsed = _now - _actionStarted;
+ switch (_actionStage) {
+ case 0:
+ _actionStage = 1;
+ break;
+ case 1: // Lower Brian's head before searching the bag.
+ if (elapsed < 9 * 60) {
+ return;
+ }
+ _audio.playEffect(32);
+ _actionStage = 2;
+ break;
+ case 2:
+ if (_audio.effectPlaying() && elapsed < 1500) {
+ return;
+ }
+ _audio.playEffect(33);
+ _actionStage = 3;
+ break;
+ case 3:
+ if (_audio.effectPlaying() && elapsed < 1500) {
+ return;
+ }
+ if (!_inventory.contains(9)) {
+ _inventory.add(9, false);
+ _actionStep = 2;
+ } else if (_inventory.contains(17) && !_inventory.headWig() && !_inventory.contains(10)) {
+ _inventory.add(10, false);
+ _actionStep = 4;
+ } else {
+ _actionStep = _random.getRandomBit() ? 3 : 5;
+ }
+ if (_actionStep == 2 || _actionStep == 4) {
+ // The item appears directly in the open inventory.
+ _audio.playEffect(1, 255, _audio.effectPlaying() ? 1 : 0);
+ }
+ _audio.playEffect(32, 255, 1);
+ _actionStage = 4;
+ break;
+ case 4:
+ if (_audio.effectPlaying(1) && elapsed < 1500) {
+ return;
+ }
+ _actionStage = 5;
+ break;
+ case 5: // Return to the speaking pose before describing the result.
+ if (elapsed < 11 * 60) {
+ return;
+ }
+ _roomAction = 0;
+ say(54, _actionStep, true);
+ return;
+ }
+ _actionStarted = _now;
+}
+
+byte RunawayRoomScene::inventoryFrame() const {
+ if (!hospitalChapter() || _roomAction != 54) {
+ return 0xff;
+ }
+ const uint frame = (_now - _actionStarted) / 60;
+ switch (_actionStage) {
+ case 1:
+ return 84 + MIN<uint>(8, frame);
+ case 2:
+ case 3:
+ case 4:
+ return 92;
+ case 5:
+ return frame < 10 ? 93 + frame : 0;
+ default:
+ return 0xff;
+ }
+}
+
void RunawayRoomScene::leaveHospitalRoom(uint16 scene, Common::Point position, byte facing) {
_hospitalExit.scene = scene;
_hospitalExit.position = position;
diff --git a/engines/hollywood/runaway/inventory.cpp b/engines/hollywood/runaway/inventory.cpp
index 79cb49c7bfd..a439eef5827 100644
--- a/engines/hollywood/runaway/inventory.cpp
+++ b/engines/hollywood/runaway/inventory.cpp
@@ -158,12 +158,14 @@ uint RunawayInventory::maxItemId() const {
_chapter == 4 ? kTownItemCount : _chapter == 3 ? kItemCount : 19;
}
-bool RunawayInventory::add(byte item) {
+bool RunawayInventory::add(byte item, bool animate) {
if (!item || item > maxItemId() || contains(item)) {
return false;
}
_items.push_back(item);
- _newItem = item;
+ if (animate) {
+ _newItem = item;
+ }
return true;
}
@@ -435,7 +437,7 @@ RunawayInventory::Reply RunawayInventory::examine(byte item, const RunawaySaveSt
case 19: // Rope.
return Reply(192 + item);
case 24: // Empty, water-filled, or fuel-filled bottle.
- return _town.bottleContents ? Reply(215, _town.bottleContents - 1) : Reply(19, 1);
+ return _town.bottleContents ? Reply(215, _town.bottleContents - 1) : Reply(214);
case 25: // The 30 cc measuring tube.
return Reply(216, _town.tube30 == 3 ? 5 : _town.tube30);
case 26: // The 50 cc measuring tube.
@@ -553,6 +555,10 @@ RunawayInventory::Reply RunawayInventory::examine(byte item, const RunawaySaveSt
return Reply(item && item <= kItemCount ? kExamineCues[item] : 1, variation);
}
+RunawayInventory::Reply RunawayInventory::use(byte item) const {
+ return Reply(isPlan(item) ? 193 : 1);
+}
+
RunawayInventory::Reply RunawayInventory::nextReply(const Reply &reply) const {
if (reply.variation < reply.lastVariation) {
return Reply(reply.cue, reply.variation + 1, reply.lastVariation);
diff --git a/engines/hollywood/runaway/inventory.h b/engines/hollywood/runaway/inventory.h
index 6d31ad472ec..f85f680839e 100644
--- a/engines/hollywood/runaway/inventory.h
+++ b/engines/hollywood/runaway/inventory.h
@@ -71,12 +71,13 @@ public:
RunawaySaveState::FinaleItems &finale() { return _finale; }
bool contains(byte item) const;
uint maxItemId() const;
- bool add(byte item);
+ bool add(byte item, bool animate = true);
void remove(byte item);
uint size() const { return _items.size(); }
byte itemAt(uint slot) const { return slot < size() ? _items[slot] : 0; }
byte selected() const { return _selected; }
void select(byte item) { _selected = contains(item) ? item : 0; }
+ bool isPlan(byte item) const { return _chapter == 3 && item == 23; }
byte takeNewItem() { const byte item = _newItem; _newItem = 0; return item; }
Common::U32String name(byte item) const;
Common::U32String combinationCaption(byte item, byte target) const;
@@ -84,6 +85,7 @@ public:
uint icon(byte item) const;
uint cursor(byte item) const;
Reply examine(byte item, const RunawaySaveState &state) const;
+ Reply use(byte item) const;
Reply nextReply(const Reply &reply) const;
Reply combine(byte first, byte second);
byte clothState() const { return _clothState; }
diff --git a/engines/hollywood/runaway/museum.cpp b/engines/hollywood/runaway/museum.cpp
index c2c524e0d43..1cd0e7aa955 100644
--- a/engines/hollywood/runaway/museum.cpp
+++ b/engines/hollywood/runaway/museum.cpp
@@ -95,6 +95,8 @@ bool RunawayRoomScene::sayMuseumInventory(const RunawayInventory::Reply &reply)
}
if (reply.cue == 108) {
_inventory.museum().businessCardExamined = 1;
+ say(108, _museum.phoneUsed != 0, true);
+ return true;
}
if (reply.cue == 115 && reply.variation == 1) {
// Inserting the battery precedes Brian's response.
diff --git a/engines/hollywood/runaway/po/en.po b/engines/hollywood/runaway/po/en.po
index 200fbb15ad8..1a4b72c4b52 100644
--- a/engines/hollywood/runaway/po/en.po
+++ b/engines/hollywood/runaway/po/en.po
@@ -10810,6 +10810,12 @@ msgctxt "interface.putAway"
msgid "PUT AWAY "
msgstr "PUT AWAY "
+#. kPutPlanIntoAction
+#: engines/hollywood/runaway/strings.h
+msgctxt "interface.putPlanIntoAction"
+msgid "PUT PLAN INTO ACTION"
+msgstr "PUT PLAN INTO ACTION"
+
#. kQuit
#: engines/hollywood/runaway/strings.h
msgctxt "interface.quit"
diff --git a/engines/hollywood/runaway/po/es.po b/engines/hollywood/runaway/po/es.po
index 4a5fad1b6f3..7cb8c000ad4 100644
--- a/engines/hollywood/runaway/po/es.po
+++ b/engines/hollywood/runaway/po/es.po
@@ -10810,6 +10810,12 @@ msgctxt "interface.putAway"
msgid "PUT AWAY "
msgstr "DEJAR "
+#. kPutPlanIntoAction
+#: engines/hollywood/runaway/strings.h
+msgctxt "interface.putPlanIntoAction"
+msgid "PUT PLAN INTO ACTION"
+msgstr "PONER EN MARCHA EL PLAN"
+
#. kQuit
#: engines/hollywood/runaway/strings.h
msgctxt "interface.quit"
diff --git a/engines/hollywood/runaway/po/fr.po b/engines/hollywood/runaway/po/fr.po
index 51f01e2aaf5..cdc891b64c8 100644
--- a/engines/hollywood/runaway/po/fr.po
+++ b/engines/hollywood/runaway/po/fr.po
@@ -10810,6 +10810,12 @@ msgctxt "interface.putAway"
msgid "PUT AWAY "
msgstr "DEPOSER "
+#. kPutPlanIntoAction
+#: engines/hollywood/runaway/strings.h
+msgctxt "interface.putPlanIntoAction"
+msgid "PUT PLAN INTO ACTION"
+msgstr "METTRE LE PLAN EN ACTION"
+
#. kQuit
#: engines/hollywood/runaway/strings.h
msgctxt "interface.quit"
diff --git a/engines/hollywood/runaway/po/runaway.pot b/engines/hollywood/runaway/po/runaway.pot
index 4cf96d916df..cf01ad00562 100644
--- a/engines/hollywood/runaway/po/runaway.pot
+++ b/engines/hollywood/runaway/po/runaway.pot
@@ -10810,6 +10810,12 @@ msgctxt "interface.putAway"
msgid "PUT AWAY "
msgstr ""
+#. kPutPlanIntoAction
+#: engines/hollywood/runaway/strings.h
+msgctxt "interface.putPlanIntoAction"
+msgid "PUT PLAN INTO ACTION"
+msgstr ""
+
#. kQuit
#: engines/hollywood/runaway/strings.h
msgctxt "interface.quit"
diff --git a/engines/hollywood/runaway/scene.h b/engines/hollywood/runaway/scene.h
index 8ac448f3aae..2d8d7379fc9 100644
--- a/engines/hollywood/runaway/scene.h
+++ b/engines/hollywood/runaway/scene.h
@@ -75,6 +75,8 @@ public:
virtual void chooseDialogue(uint choice) {}
virtual bool playingVideo() const { return false; }
virtual bool inventoryPresentation() const { return false; }
+ // A scene can override the inventory portrait during an item action.
+ virtual byte inventoryFrame() const { return 0xff; }
virtual void skipVideo() {}
virtual void sayInventory(const RunawayInventory::Reply &reply) = 0;
virtual bool escaped() const { return false; }
@@ -120,7 +122,9 @@ public:
const Common::U32String &committedCaption() const override { return _caption; }
const Common::U32String &subtitle() const override;
byte subtitleColor() const override { return _sequence.active() ? _sequence.subtitleColor() : _speech.subtitleColor(); }
- bool busy() const override { return _sequence.active() || _pendingHotspot != 0 || _transition.scene || _hospitalExit.scene || _arrivalFacing != 0xff || _roomAction || _conversation || speaking(); }
+ bool busy() const override { return _sequence.active() || _pendingHotspot != 0 || _transition.scene || _hospitalExit.scene || _arrivalFacing != 0xff || _roomAction || _conversation || _reviewingDesertPlan || speaking(); }
+ bool inventoryPresentation() const override { return _reviewingDesertPlan; }
+ byte inventoryFrame() const override;
bool speaking() const override { return _sequence.active() ? !_sequence.subtitle().empty() : !_speech.subtitle().empty(); }
byte speechFrame() const override { return _sequence.active() ? _sequence.speechFrame() : _speech.frame(_now); }
bool playingVideo() const override { return _sequence.active(); }
@@ -238,6 +242,7 @@ protected:
void updateHospital(uint elapsed);
void updateHospitalAudio();
bool sayHospitalInventory(const RunawayInventory::Reply &reply);
+ void updateHospitalInventory();
void leaveHospitalRoom(uint16 scene, Common::Point position, byte facing);
bool museumChapter() const { return _game == kRunawayFullGame && _room / 1000 == 4; }
@@ -265,6 +270,7 @@ protected:
void visitDesertRoom(byte index, byte lines);
void leaveDesertRoom(uint16 scene);
void deferDesertAction(uint16 action);
+ void reviewDesertPlan(byte variation);
bool townChapter() const { return _game == kRunawayFullGame && _room / 1000 == 6; }
void resumeTown();
@@ -334,6 +340,7 @@ protected:
RunawaySaveState::Hospital _hospital;
RunawaySaveState::Museum _museum;
RunawaySaveState::Desert _desert;
+ bool _reviewingDesertPlan = false;
RunawaySaveState::Town _town;
RunawaySaveState::Hopi _hopi;
RunawaySaveState::Finale _finale;
diff --git a/engines/hollywood/runaway/scene5050.cpp b/engines/hollywood/runaway/scene5050.cpp
index 585dcdb8e9a..f5233e52011 100644
--- a/engines/hollywood/runaway/scene5050.cpp
+++ b/engines/hollywood/runaway/scene5050.cpp
@@ -174,11 +174,11 @@ RunawayRoomScene::ActionResult Scene5050::dispatchCustomSceneAction(uint16 actio
items.gunReady = 1;
_inventory.remove(14);
say(17, 4);
- if (items.bombReady && items.helicopterReady) {
- say(174, 4, true);
- leaveDesertRoom(5062);
- }
+ deferDesertAction(418);
return kBackgroundChanged;
+ case 418:
+ reviewDesertPlan(2);
+ break;
case 319: // Use unsuitable lubricant with the machine gun.
say(18, _desert.gun != 0);
break;
diff --git a/engines/hollywood/runaway/scene5060.cpp b/engines/hollywood/runaway/scene5060.cpp
index 70537319ccc..fa1fe6a2a4d 100644
--- a/engines/hollywood/runaway/scene5060.cpp
+++ b/engines/hollywood/runaway/scene5060.cpp
@@ -127,6 +127,13 @@ float Scene5060::actorHeight() const {
RunawayRoomScene::ActionResult Scene5060::dispatchCustomSceneAction(uint16 action) {
switch (action) {
+ case 500: // Add the plan after Brian returns from the bus introduction.
+ reviewDesertPlan(0);
+ deferDesertAction(501);
+ break;
+ case 501:
+ say(0, 1);
+ break;
case 480: { // Gather everyone after all three rescue preparations are complete.
static const byte speakers[] = {0, 1, 0, 2, 0, 2, 1, 3};
for (uint i = 0; i < ARRAYSIZE(speakers); ++i) {
@@ -418,7 +425,11 @@ void Scene5060::runCustomEntrySequence() {
beginRoomAnimationRange(400, 6, 26, 9, 25);
return;
}
- visitDesertRoom(3, 2);
+ if (!_desert.visited[3]) {
+ _desert.visited[3] = 1;
+ say(0);
+ deferDesertAction(500);
+ }
}
Common::U32String Scene5060::hotspotName(byte id) const {
diff --git a/engines/hollywood/runaway/scene5070.cpp b/engines/hollywood/runaway/scene5070.cpp
index 08ec5871b72..7a85467cc0b 100644
--- a/engines/hollywood/runaway/scene5070.cpp
+++ b/engines/hollywood/runaway/scene5070.cpp
@@ -121,11 +121,11 @@ RunawayRoomScene::ActionResult Scene5070::dispatchCustomSceneAction(uint16 actio
items.bombReady = 1;
_inventory.remove(5);
say(7, 1);
- if (items.gunReady && items.helicopterReady) {
- say(174, 4, true);
- leaveDesertRoom(5062);
- }
+ deferDesertAction(411);
return kBackgroundChanged;
+ case 411:
+ reviewDesertPlan(1);
+ break;
case 312: // Use the bucket with the oil well.
if (items.bucket != 1) {
say(17, 0, true);
diff --git a/engines/hollywood/runaway/scene5100.cpp b/engines/hollywood/runaway/scene5100.cpp
index bac16b8db50..20b90c23459 100644
--- a/engines/hollywood/runaway/scene5100.cpp
+++ b/engines/hollywood/runaway/scene5100.cpp
@@ -451,10 +451,7 @@ RunawayRoomScene::ActionResult Scene5100::dispatchCustomSceneAction(uint16 actio
_audio.playEffect(49);
_desert.barnDoor = 2;
_inventory.desert().helicopterReady = 1;
- if (_inventory.desert().gunReady && _inventory.desert().bombReady) {
- say(174, 4, true);
- leaveDesertRoom(5062);
- }
+ reviewDesertPlan(3);
return kBackgroundChanged;
case 340: // Abandon the distraction and return to cover outside.
say(13);
diff --git a/engines/hollywood/runaway/strings.cpp b/engines/hollywood/runaway/strings.cpp
index c91634ade63..2d7aa2c4583 100644
--- a/engines/hollywood/runaway/strings.cpp
+++ b/engines/hollywood/runaway/strings.cpp
@@ -62,7 +62,7 @@ const char *const kTextKeys[] = {
"interface.bottleWithGasoline", "interface.filledMeasuringTube", "interface.polishedStone",
"interface.stoneOfLight", "interface.makeshiftMortar", "interface.steamOutletLever",
"interface.pressureWheel", "interface.makeshiftMiningTool", "interface.hotScalpel",
- "interface.openPods"
+ "interface.openPods", "interface.putPlanIntoAction"
};
static_assert(ARRAYSIZE(kTextKeys) == RunawayStrings::kTextCount, "Runaway text keys must match TextId");
diff --git a/engines/hollywood/runaway/strings.h b/engines/hollywood/runaway/strings.h
index 6155b506950..3a1c3cedb43 100644
--- a/engines/hollywood/runaway/strings.h
+++ b/engines/hollywood/runaway/strings.h
@@ -56,7 +56,7 @@ public:
kMakeshiftBullet, kPileOfMakeshiftBullets,
kMendedStrap, kBottleWithWater, kBottleWithGasoline, kFilledMeasuringTube,
kPolishedStone, kStoneOfLight, kMakeshiftMortar, kSteamOutletLever, kPressureWheel,
- kMakeshiftMiningTool, kHotScalpel, kOpenPods, kTextCount
+ kMakeshiftMiningTool, kHotScalpel, kOpenPods, kPutPlanIntoAction, kTextCount
};
explicit RunawayStrings(Common::Language language) : _language(language) {}
Common::Language language() const { return _language; }
diff --git a/engines/hollywood/runaway/town.cpp b/engines/hollywood/runaway/town.cpp
index 8cf8e9ea2f9..42723dc0c67 100644
--- a/engines/hollywood/runaway/town.cpp
+++ b/engines/hollywood/runaway/town.cpp
@@ -27,6 +27,8 @@ namespace Hollywood {
bool RunawayRoomScene::sayTownInventory(const RunawayInventory::Reply &reply) {
switch (reply.cue) {
+ case 200: // Inspect the crucifix.
+ return sayHopiInventory(reply);
case 209: { // Read the mine map from the inventory.
typedef RunawaySequence S;
static const S::Command commands[] = {
diff --git a/engines/hollywood/runaway/ui.cpp b/engines/hollywood/runaway/ui.cpp
index bbc6ef25f28..2b39edba2ea 100644
--- a/engines/hollywood/runaway/ui.cpp
+++ b/engines/hollywood/runaway/ui.cpp
@@ -170,6 +170,7 @@ void RunawayUI::restoreState(const RunawaySaveState &state, uint32 now) {
_blinkUntil = _idleStarted = _pickupStarted = 0;
_pickupItem = _hovered = _buttonFrame = _optionsFrame = _mouth = 0;
_blocked = _speaking = _inventoryPresentation = _returnAfterPickup = _pickupSoundPlayed = false;
+ _inventoryFrame = 0xff;
_inventoryOpen = state.inventoryOpen;
_enteredInventory = false;
_verb = (RunawayVerb)state.verb;
@@ -196,7 +197,7 @@ void RunawayUI::toggleInventory() {
}
bool RunawayUI::cancel() {
- if (busy() || _inventoryPresentation)
+ if (busy() || _inventoryPresentation || _inventoryFrame != 0xff)
return true;
if (_inventory.selected()) {
_inventory.select(0);
@@ -263,7 +264,8 @@ void RunawayUI::update(uint32 now, Common::Point mouse, byte roomHotspot, bool b
_roomHasVerbs = roomHasVerbs;
_preferLook = preferLook;
setVerb(hovered && (_inventoryOpen || _roomHasVerbs) ?
- (_inventoryOpen || (actionCursor && !preferLook) ? kVerbUse : kVerbLook) : kVerbWalk, actionCursor);
+ (_inventoryOpen ? (_inventory.isPlan(hovered) ? kVerbLook : kVerbUse) :
+ (actionCursor && !preferLook ? kVerbUse : kVerbLook)) : kVerbWalk, actionCursor);
}
if (now - _buttonTick >= 20) {
const uint steps = MIN<uint>(6, (now - _buttonTick) / 20);
@@ -285,14 +287,14 @@ void RunawayUI::update(uint32 now, Common::Point mouse, byte roomHotspot, bool b
}
if (_inventoryOpen && now - _portraitTick >= 60) {
_portraitTick = now;
- if (_speaking) {
+ if (_speaking || _inventoryFrame != 0xff) {
_blinkUntil = 0;
_lastInteraction = now;
_idleStarted = 0;
} else if (!busy() && _random.getRandomNumber(49) == 0) {
_blinkUntil = now + 180;
}
- if (!busy() && !_speaking && !_idleStarted && now - _lastInteraction >= 30000)
+ if (!busy() && !_speaking && _inventoryFrame == 0xff && !_idleStarted && now - _lastInteraction >= 30000)
_idleStarted = now;
if (_idleStarted && now - _idleStarted >= _idlePortrait.frameCount() * 60) {
_idleStarted = 0;
@@ -361,6 +363,8 @@ RunawayUI::Command RunawayUI::click(bool right) {
_inventory.select(0);
} else if (_verb == kVerbLook) {
command.type = Command::kExamineItem;
+ } else if (_inventory.isPlan(_hovered)) {
+ command.type = Command::kUseItem;
} else {
_inventory.select(_hovered);
}
@@ -436,6 +440,8 @@ Common::U32String RunawayUI::inventoryCaption() const {
}
if (!_hovered)
return Common::U32String();
+ if (_inventory.isPlan(_hovered) && _verb == kVerbUse)
+ return _strings.text(RunawayStrings::kPutPlanIntoAction);
return _strings.text(_verb == kVerbLook ? RunawayStrings::kLook : RunawayStrings::kTake) + _inventory.name(_hovered);
}
@@ -471,6 +477,8 @@ void RunawayUI::drawInventory(Graphics::ManagedSurface &screen) {
} else {
_portrait.draw(screen, 64 + MIN<uint>(17, (_now - _pickupStarted) / 60), 0, kRunawayViewportTop);
}
+ } else if (_inventoryFrame != 0xff) {
+ _portrait.draw(screen, _inventoryFrame, 0, kRunawayViewportTop);
} else if (_idleStarted) {
_idlePortrait.draw(screen, MIN<uint>(_idlePortrait.frameCount() - 1, (_now - _idleStarted) / 60), 0, kRunawayViewportTop);
} else {
diff --git a/engines/hollywood/runaway/ui.h b/engines/hollywood/runaway/ui.h
index 9ad106f4d5a..c91dc77d341 100644
--- a/engines/hollywood/runaway/ui.h
+++ b/engines/hollywood/runaway/ui.h
@@ -34,7 +34,7 @@ namespace Hollywood {
class RunawayUI {
public:
struct Command {
- enum Type { kNone, kRoom, kExamineItem, kCombine, kSkipSpeech, kOpenMenu, kChooseDialogue };
+ enum Type { kNone, kRoom, kExamineItem, kUseItem, kCombine, kSkipSpeech, kOpenMenu, kChooseDialogue };
Type type = kNone;
RunawayVerb verb = kVerbWalk;
Common::Point mouse;
@@ -59,6 +59,7 @@ public:
void captureState(RunawaySaveState &state) const;
void restoreState(const RunawaySaveState &state, uint32 now);
void setPointerSound(bool enabled) { _pointerSound = enabled; }
+ void setInventoryFrame(byte frame) { _inventoryFrame = frame; }
void drawSubtitle(Graphics::ManagedSurface &screen, const Common::U32String &text, byte color = 11) const;
void draw(Graphics::ManagedSurface &screen, const Common::U32String &roomCaption,
const Common::U32String &committedCaption, const Common::U32String &subtitle, byte subtitleColor, bool showSubtitles);
@@ -91,6 +92,7 @@ private:
byte _cursorType = 0, _previousCursor = 0, _actionCursor = 0;
bool _preferLook = false;
byte _hovered = 0, _buttonFrame = 0, _optionsFrame = 0, _pickupItem = 0;
+ byte _inventoryFrame = 0xff;
bool _inventoryOpen = false, _enteredInventory = false, _returnAfterPickup = false;
bool _inventoryPresentation = false;
bool _roomHasVerbs = true;
Commit: 18fc3ea9187117549fa1c28e874a6a0c217be636
https://github.com/scummvm/scummvm/commit/18fc3ea9187117549fa1c28e874a6a0c217be636
Author: neuromancer (gustavo.grieco at gmail.com)
Date: 2026-11-23T14:59:50+01:00
Commit Message:
HOLLYWOOD: RUNAWAY: make sure Brian visibility is correct in 5020
Changed paths:
dists/engine-data/hollywood.dat
engines/hollywood/runaway/engine.cpp
engines/hollywood/runaway/po/en.po
engines/hollywood/runaway/po/es.po
engines/hollywood/runaway/po/fr.po
engines/hollywood/runaway/scene.cpp
engines/hollywood/runaway/scene.h
engines/hollywood/runaway/scene5020.cpp
engines/hollywood/runaway/scene5020.h
engines/hollywood/runaway/scene_data.h
engines/hollywood/runaway/ui.cpp
engines/hollywood/runaway/ui.h
diff --git a/dists/engine-data/hollywood.dat b/dists/engine-data/hollywood.dat
index 3e8eab78bfb..f2b8f018c1e 100644
Binary files a/dists/engine-data/hollywood.dat and b/dists/engine-data/hollywood.dat differ
diff --git a/engines/hollywood/runaway/engine.cpp b/engines/hollywood/runaway/engine.cpp
index 386e4e65341..076aaaa550e 100644
--- a/engines/hollywood/runaway/engine.cpp
+++ b/engines/hollywood/runaway/engine.cpp
@@ -130,7 +130,7 @@ Common::Point RunawayEngine::updateUI(uint32 now) {
_ui->setInventoryFrame(_scene->inventoryFrame());
_ui->update(now, mouse, hotspot, sceneBusy(), _scene->speaking(),
_scene->inventoryPresentation(), _scene->speechFrame(), _scene->hasVerbControls(),
- _scene->actionCursor(hotspot), _scene->preferLook(hotspot));
+ _scene->actionCursor(hotspot), _scene->preferLook(hotspot), _scene->isWalkHotspot(hotspot));
}
return mouse;
}
diff --git a/engines/hollywood/runaway/po/en.po b/engines/hollywood/runaway/po/en.po
index 1a4b72c4b52..a99eee79107 100644
--- a/engines/hollywood/runaway/po/en.po
+++ b/engines/hollywood/runaway/po/en.po
@@ -1710,11 +1710,11 @@ msgctxt "action.5020.use.1"
msgid "GO TO @"
msgstr "GO TO @"
-#. Scene 5020, use at hotspot 2. @ is the current hotspot name.
+#. Scene 5020, walk towards the cabin (hotspot 2).
#: engines/hollywood/runaway/scene5020.cpp
msgctxt "action.5020.use.2"
-msgid "GET @"
-msgstr "GET @"
+msgid "GO TO"
+msgstr "GO TO"
#. Scene 5020, use at hotspot 3. @ is the current hotspot name.
#: engines/hollywood/runaway/scene5020.cpp
diff --git a/engines/hollywood/runaway/po/es.po b/engines/hollywood/runaway/po/es.po
index 7cb8c000ad4..61b99ffa7f3 100644
--- a/engines/hollywood/runaway/po/es.po
+++ b/engines/hollywood/runaway/po/es.po
@@ -1710,11 +1710,11 @@ msgctxt "action.5020.use.1"
msgid "GO TO @"
msgstr "IR A @"
-#. Scene 5020, use at hotspot 2. @ is the current hotspot name.
+#. Scene 5020, walk towards the cabin (hotspot 2).
#: engines/hollywood/runaway/scene5020.cpp
msgctxt "action.5020.use.2"
-msgid "GET @"
-msgstr "COGER @"
+msgid "GO TO"
+msgstr "IR A"
#. Scene 5020, use at hotspot 3. @ is the current hotspot name.
#: engines/hollywood/runaway/scene5020.cpp
diff --git a/engines/hollywood/runaway/po/fr.po b/engines/hollywood/runaway/po/fr.po
index cdc891b64c8..8bc114c4ae5 100644
--- a/engines/hollywood/runaway/po/fr.po
+++ b/engines/hollywood/runaway/po/fr.po
@@ -1710,11 +1710,11 @@ msgctxt "action.5020.use.1"
msgid "GO TO @"
msgstr "ALLER VERS @"
-#. Scene 5020, use at hotspot 2. @ is the current hotspot name.
+#. Scene 5020, walk towards the cabin (hotspot 2).
#: engines/hollywood/runaway/scene5020.cpp
msgctxt "action.5020.use.2"
-msgid "GET @"
-msgstr "PRENDRE @"
+msgid "GO TO"
+msgstr "ALLER VERS"
#. Scene 5020, use at hotspot 3. @ is the current hotspot name.
#: engines/hollywood/runaway/scene5020.cpp
diff --git a/engines/hollywood/runaway/scene.cpp b/engines/hollywood/runaway/scene.cpp
index 494084b67b6..ab63d886e0d 100644
--- a/engines/hollywood/runaway/scene.cpp
+++ b/engines/hollywood/runaway/scene.cpp
@@ -350,6 +350,11 @@ bool RunawayRoomScene::preferLook(byte id) const {
return target && target->preferLook;
}
+bool RunawayRoomScene::isWalkHotspot(byte id) const {
+ const RunawayHotspot *target = hotspot(id);
+ return target && target->walkOnly;
+}
+
byte RunawayRoomScene::hotspotAt(Common::Point mouse) const {
if (mouse.x < 0 || mouse.x >= kRunawayScreenWidth || mouse.y < kRunawayViewportTop ||
mouse.y >= kRunawayViewportTop + kRunawayViewportHeight)
@@ -371,7 +376,7 @@ Common::U32String RunawayRoomScene::hotspotName(byte id) const {
Common::U32String RunawayRoomScene::actionCaption(byte id, RunawayVerb verb, byte item) const {
const Common::U32String name = hotspotName(id);
if (_game == kRunawayFullGame && id) {
- const bool look = verb == kVerbLook;
+ const bool look = verb == kVerbLook && !isWalkHotspot(id);
const Common::U32String pattern = _strings.sceneActionCaption(_room, id, item, look, actionCaptionVariant(id, look, item));
if (!pattern.empty()) {
return RunawayStrings::formatActionCaption(pattern, _inventory.name(item), name);
@@ -432,7 +437,7 @@ void RunawayRoomScene::click(Common::Point mouse, RunawayVerb verb, byte item) {
const RunawayHotspot *spot = hotspot(id);
_pendingItem = item;
if (spot) {
- const uint index = verb == kVerbLook && !item ? 0 : 1;
+ const uint index = verb == kVerbLook && !item && !spot->walkOnly ? 0 : 1;
_pendingHotspot = id;
_pendingAction = spot->action[index];
int8 approach = spot->approach[index];
diff --git a/engines/hollywood/runaway/scene.h b/engines/hollywood/runaway/scene.h
index 2d8d7379fc9..eb4531e69d0 100644
--- a/engines/hollywood/runaway/scene.h
+++ b/engines/hollywood/runaway/scene.h
@@ -63,6 +63,7 @@ public:
// Cursor tile 3 is talk, 4..7 are exit arrows; zero keeps the usual verbs.
virtual byte actionCursor(byte hotspot) const { return 0; }
virtual bool preferLook(byte hotspot) const { return false; }
+ virtual bool isWalkHotspot(byte hotspot) const { return false; }
virtual Common::U32String actionCaption(byte hotspot, RunawayVerb verb, byte item) const = 0;
virtual const Common::U32String &committedCaption() const = 0;
virtual const Common::U32String &subtitle() const = 0;
@@ -118,6 +119,7 @@ public:
byte hotspotAt(Common::Point mouse) const override;
byte actionCursor(byte id) const override;
bool preferLook(byte id) const override;
+ bool isWalkHotspot(byte id) const override;
Common::U32String actionCaption(byte hotspot, RunawayVerb verb, byte item) const override;
const Common::U32String &committedCaption() const override { return _caption; }
const Common::U32String &subtitle() const override;
diff --git a/engines/hollywood/runaway/scene5020.cpp b/engines/hollywood/runaway/scene5020.cpp
index 083c41a20f2..8c20e351261 100644
--- a/engines/hollywood/runaway/scene5020.cpp
+++ b/engines/hollywood/runaway/scene5020.cpp
@@ -29,7 +29,7 @@ namespace {
const RunawayHotspot kHotspots[] = {
{0, 0, 0, {0, 0}, {0, 0}, {0, 0}},
{1123, 416, 3, {302, 301}, {0, 3}, {1123, 416}, 6}, // 1: Path.
- {456, 405, 7, {0, 1}, {0, 0}, {0, 0}},
+ {456, 405, 7, {0, 303}, {0, 1}, {0, 0}, 0, false, true}, // 2: Walk towards the cabin (native verb 0).
{573, 400, 7, {304, 305}, {0, 0}, {533, 379}}, // 3: Rocking Chair.
{644, 397, 1, {310, 311}, {0, 0}, {677, 372}}, // 4: Tires.
{456, 405, 7, {306, 307}, {0, 0}, {428, 336}}, // 5: Door.
@@ -39,7 +39,7 @@ const RunawayHotspot kHotspots[] = {
const RunawayResponse kResponses[] = {
{5020, 302, 2, 0}, // Look at the path.
- {5020, 303, 1, 0}, // Use an item with the cabin.
+ {5020, 303, 1, 0}, // Refuse to walk in front of the cabin.
{5020, 304, 3, 0}, // Look at the rocking chair.
{5020, 305, 4, 0}, // Use the rocking chair.
{5020, 306, 5, 0}, // Look at the door.
@@ -119,6 +119,11 @@ float Scene5020::actorHeight() const {
return _position.y * -0.140845075f + 264.225342f;
}
+void Scene5020::setupActorDepth(RunawayActor::RenderParams ¶ms) const {
+ // The foreground rock and vegetation always cover Brian (native 0x473a60).
+ params.depthY[1] = 599;
+}
+
RunawayRoomScene::ActionResult Scene5020::dispatchCustomSceneAction(uint16 action) {
switch (action) {
case 301: // Go to the desert overview.
diff --git a/engines/hollywood/runaway/scene5020.h b/engines/hollywood/runaway/scene5020.h
index bee044c793e..20bc8ff0325 100644
--- a/engines/hollywood/runaway/scene5020.h
+++ b/engines/hollywood/runaway/scene5020.h
@@ -36,6 +36,7 @@ private:
bool applyCustomBackgroundPatches() override;
void applyCustomHotspotState() override;
float actorHeight() const override;
+ void setupActorDepth(RunawayActor::RenderParams ¶ms) const override;
ActionResult dispatchCustomSceneAction(uint16 action) override;
void runCustomEntrySequence() override;
void drawCustomBackgroundComposite(Graphics::ManagedSurface &viewport) override;
diff --git a/engines/hollywood/runaway/scene_data.h b/engines/hollywood/runaway/scene_data.h
index cf29d22185d..8a6f3621c3d 100644
--- a/engines/hollywood/runaway/scene_data.h
+++ b/engines/hollywood/runaway/scene_data.h
@@ -40,18 +40,19 @@ enum RunawayRoomId {
};
struct RunawayHotspot {
- constexpr RunawayHotspot() : x(0), y(0), facing(0), action{0, 0}, approach{0, 0}, actionCursor(0), preferLook(false) {}
+ constexpr RunawayHotspot() : x(0), y(0), facing(0), action{0, 0}, approach{0, 0}, actionCursor(0), preferLook(false), walkOnly(false) {}
constexpr RunawayHotspot(int16 xPos, int16 yPos, byte direction, const uint16 (&actions)[2],
- const int8 (&approaches)[2], Common::Point lookAt, byte cursor = 0, bool lookFirst = false) :
+ const int8 (&approaches)[2], Common::Point lookAt, byte cursor = 0, bool lookFirst = false, bool walking = false) :
x(xPos), y(yPos), facing(direction), action{actions[0], actions[1]},
- approach{approaches[0], approaches[1]}, lookPosition(lookAt), actionCursor(cursor), preferLook(lookFirst) {}
+ approach{approaches[0], approaches[1]}, lookPosition(lookAt), actionCursor(cursor), preferLook(lookFirst), walkOnly(walking) {}
int16 x, y;
byte facing;
- uint16 action[2]; // Look, use; IDs from the original room's action table.
+ uint16 action[2]; // Look, use (or walk); IDs from the original room's action table.
int8 approach[2]; // -1: keep facing; 0: face lookPosition; 1: walk and turn; 2/3: walk without turning.
Common::Point lookPosition;
byte actionCursor; // 0: ordinary hotspot; 3: talk; 4..7: northwest, northeast, southeast, southwest.
bool preferLook; // Start with look even when the hotspot has a special action cursor.
+ bool walkOnly; // Use the walk action and cursor, without look/use verb controls.
};
struct RunawayItemAction {
diff --git a/engines/hollywood/runaway/ui.cpp b/engines/hollywood/runaway/ui.cpp
index 2b39edba2ea..95f1d846698 100644
--- a/engines/hollywood/runaway/ui.cpp
+++ b/engines/hollywood/runaway/ui.cpp
@@ -177,6 +177,7 @@ void RunawayUI::restoreState(const RunawaySaveState &state, uint32 now) {
_cursorType = _previousCursor = state.verb;
_actionCursor = 0;
_preferLook = false;
+ _walkHotspot = false;
_cursorKey = -1;
// The options cursor may still be on top of the stack. Rebuild ours
// on the next gameplay update, after the menu has popped its cursor.
@@ -211,7 +212,7 @@ bool RunawayUI::cancel() {
}
void RunawayUI::update(uint32 now, Common::Point mouse, byte roomHotspot, bool blocked, bool speaking,
- bool inventoryPresentation, byte speechFrame, bool roomHasVerbs, byte actionCursor, bool preferLook) {
+ bool inventoryPresentation, byte speechFrame, bool roomHasVerbs, byte actionCursor, bool preferLook, bool walkHotspot) {
_now = now;
_mouse = mouse;
_blocked = blocked;
@@ -255,15 +256,19 @@ void RunawayUI::update(uint32 now, Common::Point mouse, byte roomHotspot, bool b
setInventoryOpen(false);
}
const byte hovered = _inventoryOpen ? itemAt(mouse) : roomHotspot;
+ if (_inventoryOpen || !roomHasVerbs)
+ walkHotspot = false;
if (_inventoryOpen || !roomHasVerbs || (_museum && actionCursor != 3)) {
actionCursor = 0;
preferLook = false;
}
- if (_hovered != hovered || _roomHasVerbs != roomHasVerbs || _actionCursor != actionCursor || _preferLook != preferLook) {
+ if (_hovered != hovered || _roomHasVerbs != roomHasVerbs || _actionCursor != actionCursor ||
+ _preferLook != preferLook || _walkHotspot != walkHotspot) {
_hovered = hovered;
_roomHasVerbs = roomHasVerbs;
_preferLook = preferLook;
- setVerb(hovered && (_inventoryOpen || _roomHasVerbs) ?
+ _walkHotspot = walkHotspot;
+ setVerb(hovered && !walkHotspot && (_inventoryOpen || _roomHasVerbs) ?
(_inventoryOpen ? (_inventory.isPlan(hovered) ? kVerbLook : kVerbUse) :
(actionCursor && !preferLook ? kVerbUse : kVerbLook)) : kVerbWalk, actionCursor);
}
@@ -333,7 +338,7 @@ RunawayUI::Command RunawayUI::click(bool right) {
if (right) {
if (_inventory.selected()) {
_inventory.select(0);
- } else if (_hovered && (_inventoryOpen || _roomHasVerbs)) {
+ } else if (_hovered && !_walkHotspot && (_inventoryOpen || _roomHasVerbs)) {
setVerb(_verb == kVerbLook ? kVerbUse : kVerbLook, _actionCursor);
}
return command;
@@ -387,7 +392,7 @@ void RunawayUI::updateCursor() {
}
uint shade = 0;
if (item) {
- tile = _inventory.cursor(item) + (_hovered != 0);
+ tile = _inventory.cursor(item) + (_hovered != 0 && !_walkHotspot);
} else {
const uint phase = (_now - _verbStarted) / 20;
// Close-ups such as the keypad keep the plain pointer, without verb morphs.
diff --git a/engines/hollywood/runaway/ui.h b/engines/hollywood/runaway/ui.h
index c91dc77d341..c1acd6cfd7f 100644
--- a/engines/hollywood/runaway/ui.h
+++ b/engines/hollywood/runaway/ui.h
@@ -47,7 +47,7 @@ public:
bool loadChapter(byte chapter);
void update(uint32 now, Common::Point mouse, byte roomHotspot, bool blocked, bool speaking,
bool inventoryPresentation = false, byte speechFrame = 0, bool roomHasVerbs = true,
- byte actionCursor = 0, bool preferLook = false);
+ byte actionCursor = 0, bool preferLook = false, bool walkHotspot = false);
void setDialogueChoices(const Common::Array<Common::U32String> &choices);
Command click(bool right);
void toggleInventory();
@@ -91,6 +91,7 @@ private:
RunawayVerb _verb = kVerbWalk;
byte _cursorType = 0, _previousCursor = 0, _actionCursor = 0;
bool _preferLook = false;
+ bool _walkHotspot = false;
byte _hovered = 0, _buttonFrame = 0, _optionsFrame = 0, _pickupItem = 0;
byte _inventoryFrame = 0xff;
bool _inventoryOpen = false, _enteredInventory = false, _returnAfterPickup = false;
Commit: 50e65da7686396ae09fa84911de9391353a40405
https://github.com/scummvm/scummvm/commit/50e65da7686396ae09fa84911de9391353a40405
Author: neuromancer (gustavo.grieco at gmail.com)
Date: 2026-11-23T15:36:59+01:00
Commit Message:
HOLLYWOOD: RUNAWAY: audited and fixed special captions across all scenes
Changed paths:
dists/engine-data/hollywood.dat
engines/hollywood/runaway/po/en.po
engines/hollywood/runaway/po/es.po
engines/hollywood/runaway/po/fr.po
engines/hollywood/runaway/scene.cpp
engines/hollywood/runaway/scene5030.cpp
engines/hollywood/runaway/strings.cpp
engines/hollywood/runaway/strings.h
engines/hollywood/runaway/ui.cpp
diff --git a/dists/engine-data/hollywood.dat b/dists/engine-data/hollywood.dat
index f2b8f018c1e..c44528f0df8 100644
Binary files a/dists/engine-data/hollywood.dat and b/dists/engine-data/hollywood.dat differ
diff --git a/engines/hollywood/runaway/po/en.po b/engines/hollywood/runaway/po/en.po
index a99eee79107..f8de3073c8a 100644
--- a/engines/hollywood/runaway/po/en.po
+++ b/engines/hollywood/runaway/po/en.po
@@ -10570,6 +10570,12 @@ msgctxt "interface.glassWithWater"
msgid "Glass with water"
msgstr "Glass with water"
+#. Walk caption when an inventory item is held over empty ground.
+#: engines/hollywood/runaway/strings.cpp
+msgctxt "interface.goTo"
+msgid "GO TO"
+msgstr "GO TO"
+
#. kGroundCoffeeBowl
#: engines/hollywood/runaway/strings.h
msgctxt "interface.groundCoffeeBowl"
diff --git a/engines/hollywood/runaway/po/es.po b/engines/hollywood/runaway/po/es.po
index 61b99ffa7f3..196cb7b0ccf 100644
--- a/engines/hollywood/runaway/po/es.po
+++ b/engines/hollywood/runaway/po/es.po
@@ -10570,6 +10570,12 @@ msgctxt "interface.glassWithWater"
msgid "Glass with water"
msgstr "VASO CON AGUA"
+#. Walk caption when an inventory item is held over empty ground.
+#: engines/hollywood/runaway/strings.cpp
+msgctxt "interface.goTo"
+msgid "GO TO"
+msgstr "IR A"
+
#. kGroundCoffeeBowl
#: engines/hollywood/runaway/strings.h
msgctxt "interface.groundCoffeeBowl"
diff --git a/engines/hollywood/runaway/po/fr.po b/engines/hollywood/runaway/po/fr.po
index 8bc114c4ae5..de701e74649 100644
--- a/engines/hollywood/runaway/po/fr.po
+++ b/engines/hollywood/runaway/po/fr.po
@@ -10570,6 +10570,12 @@ msgctxt "interface.glassWithWater"
msgid "Glass with water"
msgstr "GOBELET REMPLI D'EAU"
+#. Walk caption when an inventory item is held over empty ground.
+#: engines/hollywood/runaway/strings.cpp
+msgctxt "interface.goTo"
+msgid "GO TO"
+msgstr "ALLER VERS"
+
#. kGroundCoffeeBowl
#: engines/hollywood/runaway/strings.h
msgctxt "interface.groundCoffeeBowl"
diff --git a/engines/hollywood/runaway/scene.cpp b/engines/hollywood/runaway/scene.cpp
index ab63d886e0d..72232a0d656 100644
--- a/engines/hollywood/runaway/scene.cpp
+++ b/engines/hollywood/runaway/scene.cpp
@@ -375,7 +375,7 @@ Common::U32String RunawayRoomScene::hotspotName(byte id) const {
Common::U32String RunawayRoomScene::actionCaption(byte id, RunawayVerb verb, byte item) const {
const Common::U32String name = hotspotName(id);
- if (_game == kRunawayFullGame && id) {
+ if (_game == kRunawayFullGame) {
const bool look = verb == kVerbLook && !isWalkHotspot(id);
const Common::U32String pattern = _strings.sceneActionCaption(_room, id, item, look, actionCaptionVariant(id, look, item));
if (!pattern.empty()) {
diff --git a/engines/hollywood/runaway/scene5030.cpp b/engines/hollywood/runaway/scene5030.cpp
index e465f20e130..281a3cdf18f 100644
--- a/engines/hollywood/runaway/scene5030.cpp
+++ b/engines/hollywood/runaway/scene5030.cpp
@@ -353,7 +353,7 @@ Common::U32String Scene5030::hotspotName(byte id) const {
Common::U32String Scene5030::actionCaption(byte id, RunawayVerb verb, byte item) const {
const Common::U32String name = hotspotName(id);
- if (_game == kRunawayFullGame && id) {
+ if (_game == kRunawayFullGame) {
const char *variant = nullptr;
if (item == 2 && id == 6 && _hatchState >= kUnlocked) {
variant = "unlocked";
diff --git a/engines/hollywood/runaway/strings.cpp b/engines/hollywood/runaway/strings.cpp
index 2d7aa2c4583..caa9dd7428c 100644
--- a/engines/hollywood/runaway/strings.cpp
+++ b/engines/hollywood/runaway/strings.cpp
@@ -62,7 +62,7 @@ const char *const kTextKeys[] = {
"interface.bottleWithGasoline", "interface.filledMeasuringTube", "interface.polishedStone",
"interface.stoneOfLight", "interface.makeshiftMortar", "interface.steamOutletLever",
"interface.pressureWheel", "interface.makeshiftMiningTool", "interface.hotScalpel",
- "interface.openPods", "interface.putPlanIntoAction"
+ "interface.openPods", "interface.putPlanIntoAction", "interface.goTo"
};
static_assert(ARRAYSIZE(kTextKeys) == RunawayStrings::kTextCount, "Runaway text keys must match TextId");
@@ -155,6 +155,10 @@ Common::U32String RunawayStrings::sceneActionCaption(uint16 scene, byte hotspot,
Common::U32String caption = lookup(key);
if (caption.empty() && item) {
caption = lookup(Common::String::format("action.%u.item.0.%u", scene, hotspot));
+ if (caption.empty() && !hotspot) {
+ // Native 0x415230 uses the room's walk caption when there is no target.
+ caption = text(kGoTo);
+ }
}
return caption;
}
diff --git a/engines/hollywood/runaway/strings.h b/engines/hollywood/runaway/strings.h
index 3a1c3cedb43..1c56db0d8d2 100644
--- a/engines/hollywood/runaway/strings.h
+++ b/engines/hollywood/runaway/strings.h
@@ -56,7 +56,7 @@ public:
kMakeshiftBullet, kPileOfMakeshiftBullets,
kMendedStrap, kBottleWithWater, kBottleWithGasoline, kFilledMeasuringTube,
kPolishedStone, kStoneOfLight, kMakeshiftMortar, kSteamOutletLever, kPressureWheel,
- kMakeshiftMiningTool, kHotScalpel, kOpenPods, kPutPlanIntoAction, kTextCount
+ kMakeshiftMiningTool, kHotScalpel, kOpenPods, kPutPlanIntoAction, kGoTo, kTextCount
};
explicit RunawayStrings(Common::Language language) : _language(language) {}
Common::Language language() const { return _language; }
diff --git a/engines/hollywood/runaway/ui.cpp b/engines/hollywood/runaway/ui.cpp
index 95f1d846698..e5a89c10c68 100644
--- a/engines/hollywood/runaway/ui.cpp
+++ b/engines/hollywood/runaway/ui.cpp
@@ -430,6 +430,8 @@ void RunawayUI::updateCursor() {
}
Common::U32String RunawayUI::inventoryCaption() const {
+ if (!_hovered)
+ return Common::U32String();
const byte selected = _inventory.selected();
if (selected) {
if (_hovered == selected)
@@ -438,13 +440,9 @@ Common::U32String RunawayUI::inventoryCaption() const {
if (!combination.empty()) {
return combination;
}
- Common::U32String caption = _strings.text(RunawayStrings::kUse) + _inventory.name(selected);
- if (_hovered)
- caption += _strings.text(RunawayStrings::kWith) + _inventory.name(_hovered);
- return caption;
+ return _strings.text(RunawayStrings::kUse) + _inventory.name(selected) +
+ _strings.text(RunawayStrings::kWith) + _inventory.name(_hovered);
}
- if (!_hovered)
- return Common::U32String();
if (_inventory.isPlan(_hovered) && _verb == kVerbUse)
return _strings.text(RunawayStrings::kPutPlanIntoAction);
return _strings.text(_verb == kVerbLook ? RunawayStrings::kLook : RunawayStrings::kTake) + _inventory.name(_hovered);
More information about the Scummvm-git-logs
mailing list