.data hqProbeDrive db "build\underworld\hq-drive.bmp",0 hqProbeLobby db "build\underworld\hq-lobby.bmp",0 hqProbeService db "build\underworld\hq-service.bmp",0 hqProbeAssault db "build\underworld\hq-assault.bmp",0 hqProbeSafe db "build\underworld\hq-safe.bmp",0 hqProbeVault db "build\underworld\hq-vault.bmp",0 hqProbeHome db "build\underworld\hq-home.bmp",0 hqProbeClub db "build\underworld\club.bmp",0 hqProbeSemyon db "build\underworld\club-semyon.bmp",0 hqProbeBank dd 0 .code HQProbeHideGuards PROC uses esi ecx mov esi,OFFSET hqEnemies mov ecx,HQ_GUARDS @@: mov [esi].HFEnemy.hp,0 mov [esi].HFEnemy.pose,0 add esi,SIZEOF HFEnemy loop @B ret HQProbeHideGuards ENDP RunHQProbe PROC uses ebx esi edi mov arrivalConfirmed3D,0 mov hqActive,0 mov heistComplete,0 mov hqApproach,0 mov bankroll,20000 mov hallLevel3D,1 mov worldMap3D,OFFSET bunkerMap3D mov floorTexture3D,94 mov viewEye3D,FP_1 mov viewCeiling3D,FP_1*5/2 mov viewHorizon3D,HALF_H mov outdoorRender3D,0 mov playerX,FP_1*92/10 mov playerY,FP_1*244/10 mov playerAngle,0 mov engineMode,MODE_HEIST call BeginHQMission3D cmp hqActive,1 jne hq_probe_fail21 mov hqRideTime,3000 call RenderHQMission3D invoke UwSnapshot,OFFSET hqProbeDrive mov deltaTime3D,3000 call HandleHQMission3D cmp heistPhase,7 jne hq_probe_fail21 cmp worldMap3D,OFFSET hfMap jne hq_probe_fail21 call RenderHQMission3D invoke UwSnapshot,OFFSET hqProbeLobby mov playerX,FP_1*75/10 mov playerY,FP_1*145/10 mov playerAngle,0 call RenderHQMission3D invoke UwSnapshot,OFFSET hqProbeService ; Weapon hits cannot pass through the solid reception desk. call HQProbeHideGuards mov playerX,FP_1*165/10 mov playerY,FP_1*205/10 mov playerAngle,384 mov hqEnemies.x,FP_1*165/10 mov hqEnemies.y,FP_1*185/10 mov hqEnemies.hp,60 mov hqCooldown,0 call UpdateCamera3D call HQFire3D cmp hqEnemies.hp,60 jne hq_probe_fail22 ; Silenced close shot neutralizes the guard without a global alarm. mov playerAngle,0 mov hqEnemies.x,FP_1*185/10 mov hqEnemies.y,FP_1*205/10 mov hqCooldown,0 call UpdateCamera3D call HQFire3D cmp hqEnemies.hp,0 jne hq_probe_fail22 cmp hqAlarm,0 jne hq_probe_fail22 mov hqEnemies.hp,60 mov hqCooldown,0 mov hqWeapon,1 call HQFire3D cmp hqEnemies.hp,25 jne hq_probe_fail22 cmp hqAlarm,1 jne hq_probe_fail22 call RenderHQMission3D invoke UwSnapshot,OFFSET hqProbeAssault ; Gradual detection, then real guard damage; no alarm through walls. call HQProbeHideGuards mov hqAlarm,0 mov hqSuspicion,0 mov hqCameras,0 mov hqTeamFollow,0 mov hqEnemies.x,16*FP_1 mov hqEnemies.y,12*FP_1 mov hqEnemies.kind,128 mov hqEnemies.hp,60 mov hqEnemies.cooldown,0 mov playerX,16*FP_1 mov playerY,15*FP_1 mov keys3D[11h],0 mov ebx,20 @@: call HQTick3D dec ebx jnz @B cmp hqAlarm,1 jne hq_probe_fail23 call HQTick3D cmp hqHealth,100 jae hq_probe_fail23 call HQProbeHideGuards mov hqAlarm,0 mov hqTeamFollow,0 mov playerX,FP_1*85/10 mov playerY,14*FP_1 call HQUse3D cmp hqAction,1 jne hq_probe_fail24 mov deltaTime3D,250 mov ebx,6 @@: call HQSimulate3D dec ebx jnz @B cmp hqAccess,1 jne hq_probe_fail24 cmp hqCameras,0 jne hq_probe_fail24 cmp hfMap[8*32+19],0 jne hq_probe_fail24 ; Optional owners' files reveal the combination. mov playerX,8*FP_1 mov playerY,FP_1*75/10 call HQUse3D cmp hqIntel,1 jne hq_probe_fail24 mov playerX,FP_1*235/10 mov playerY,8*FP_1 mov playerAngle,384 call HQUse3D cmp heistPhase,2 jne hq_probe_fail25 call RenderHQMission3D invoke UwSnapshot,OFFSET hqProbeSafe mov deltaTime3D,16 mov heistDialPos,24 mov pressedKeys3D[20h],1 call HandleHeist3D mov heistDialPos,71 mov pressedKeys3D[20h],1 call HandleHeist3D mov heistDialPos,45 mov pressedKeys3D[20h],1 call HandleHeist3D cmp hqLoot,1 jne hq_probe_fail25 cmp bankroll,20000 jne hq_probe_fail25 cmp heistComplete,0 jne hq_probe_fail25 call RenderHQMission3D invoke UwSnapshot,OFFSET hqProbeVault mov playerX,FP_1*165/10 mov playerY,FP_1*275/10 call HQUse3D cmp heistPhase,8 jne hq_probe_fail26 mov hqRideTime,3000 call RenderHQMission3D invoke UwSnapshot,OFFSET hqProbeHome mov deltaTime3D,3000 call HandleHQMission3D cmp bankroll,1020000 jne hq_probe_fail26 cmp hqActive,0 jne hq_probe_fail26 cmp engineMode,MODE_WALK jne hq_probe_fail26 cmp worldMap3D,OFFSET bunkerMap3D jne hq_probe_fail26 cmp playerX,FP_1*92/10 jne hq_probe_fail26 cmp playerY,FP_1*244/10 jne hq_probe_fail26 call HQFinishTrip3D cmp bankroll,1020000 jne hq_probe_fail26 ; Abort never pays, including when a bag had already been picked up. mov heistComplete,0 mov hqApproach,1 call BeginHQMission3D call HQDeploy3D cmp hqAlarm,1 jne hq_probe_fail27 mov hqLoot,1 call HQLeave3D cmp bankroll,1020000 jne hq_probe_fail27 cmp hqActive,0 jne hq_probe_fail27 ; Death also restores the exact base location and never pays out. call BeginHQMission3D call HQDeploy3D call HQProbeHideGuards mov hqEnemies.x,16*FP_1 mov hqEnemies.y,24*FP_1 mov hqEnemies.hp,60 mov hqEnemies.cooldown,0 mov playerX,16*FP_1 mov playerY,26*FP_1 mov hqHealth,6 call HQTick3D cmp heistPhase,9 jne hq_probe_fail27 mov pressedKeys3D[0Dh],1 call HandleHQMission3D cmp hqActive,0 jne hq_probe_fail27 cmp bankroll,1020000 jne hq_probe_fail27 ; Capture the physically separate club, not the merchant workshop. mov playerX,FP_1*105/10 mov playerY,23*FP_1 mov playerAngle,330 call UpdateCamera3D call RenderCeilingAndFloor call RenderWalls call PrepareCityDepth3D call RenderHall3D invoke UwSnapshot,OFFSET hqProbeClub mov playerX,FP_1*88/10 mov playerY,FP_1*238/10 mov playerAngle,256 call UpdateCamera3D call RenderCeilingAndFloor call RenderWalls call PrepareCityDepth3D call RenderHall3D invoke UwSnapshot,OFFSET hqProbeSemyon xor eax,eax ret hq_probe_fail21: mov eax,21 ret hq_probe_fail22: mov eax,22 ret hq_probe_fail23: mov eax,23 ret hq_probe_fail24: mov eax,24 ret hq_probe_fail25: mov eax,25 ret hq_probe_fail26: mov eax,26 ret hq_probe_fail27: mov eax,27 ret RunHQProbe ENDP