BLADERUNNER: Fix pathfinding in PS05

This commit is contained in:
antoniou79 2022-03-16 14:19:54 +02:00
parent 77ebeaea6f
commit bf12a1ecdf
2 changed files with 10 additions and 4 deletions

View File

@ -33,7 +33,7 @@ void SceneScriptPS05::InitializeScene() {
Setup_Scene_Information(630.72f, 0.38f, -469.26f, 400);
#else
// exiting from PS15
Setup_Scene_Information(553.24f, 0.37f, -422.97f, 400);
Setup_Scene_Information(560.24f, 0.37f, -422.97f, 400);
#endif // BLADERUNNER_ORIGINAL_BUGS
}
Scene_Exit_Add_2D_Exit(0, 218, 98, 280, 246, 3);
@ -148,6 +148,12 @@ bool SceneScriptPS05::ClickedOnExit(int exitId) {
bool SceneScriptPS05::ClickedOn2DRegion(int region) {
if (region == 0 && !Loop_Actor_Walk_To_XYZ(kActorMcCoy, 694.78f, 0.37f, -321.05f, 0, true, false, false)) {
Actor_Face_Heading(kActorMcCoy, 130, false);
#if !BLADERUNNER_ORIGINAL_BUGS
// Add small delay so that McCoy can turn to the score board
// Otherwise Score board loads immediately
// and McCoy turns towards it after we exit the board UI
Delay(50);
#endif
View_Score_Board();
}
return false;

View File

@ -487,11 +487,11 @@ void Set::overrideSceneObjectInfo(int objectId) const {
case kScenePS05:
if (objectId == 8 && _objects[objectId].name == "WIRE BASKET") {
// waste basket click box
_objects[objectId].bbox.setXYZ(706.32f, 0.0f, -350.80f, 724.90f, 15.15f, -330.09f);
_objects[objectId].bbox.setXYZ(707.30f, 0.14f, -350.80f, 724.90f, 15.15f, -330.09f);
} else if (objectId == 0 && _objects[objectId].name == "FIRE EXTINGISHER") {
// fire extinguisher is click-able (original game) but does nothing
// still it's best to fix its clickbox and remove clickable or restore functionality from
// the scene script
// still it's best to fix its clickbox and remove clickable
// or restore functionality from the scene script
_objects[objectId].bbox.setXYZ(695.63f, 42.65f, -628.10f, 706.71f, 69.22f, -614.47f);
}
break;