Skip to content

Graphics and gameplay implementation

These notes compare the port’s settings with the PS2 and PC releases. The player guide lists controls and defaults.

PC physics

The PC version simulates ragdolls, thrown and falling objects and cloth more finely than the PS2 (docs/development/pc-differences/engine-core.md). With pc_physics=1 the port does the same. It is enabled with the PC version and disabled with the PS2 version. The frame-rate fixes do not depend on it: ragdolls, rigid bodies and cloth move in real time at any frame rate either way (Frame rate).

What PS2 PC physics Function (port file)
Ragdoll sub-steps per simulation step 2 4, 3 while the body is dragged (PC 0x56f120: 4 - (bDragged != 0)) ConstrainedParticleSystem::MoveRagdoll (port/engine/fysix/_sdl/ragdolloverridesdl.cpp)
Rigid-body relaxation passes (ProjectConstraints2, CheckCollision4a, ProjectConstraints2) per step 3 4 (PC 0x575250) CRigidBody::Move (port/engine/fysix/_sdl/rigidbodyoverridesdl.cpp)
A rigid body's collision vertices the 8 corners of each bounding box in it, at most 80 its real mesh vertices, at most 500 (PC 0x5740b0, 0x5728a0); the bounding boxes when it rides an elevator, when its group holds an actor (PC 0x574f00), or when the mesh has more. The PC data's weapons are bone strips, which the PS2's GetStripsFromPrim cannot read, and have thousands of vertices (7,321 for M01's Custom_AssaultRifle), so the port takes their mesh's extreme points in 124 directions (35 to 50 vertices); on its bounding box a rifle dropped muzzle down stayed standing CRigidBody::Setup2, GetVertices, AddVertex, AddVertices (same file)
Cloth step 1/40 s, the accumulator capped at 0.125 s 1/50 s, capped at 0.1 s; ApplyGravity and ApplyWind get 0.02 (PC 0x580930) ZCloth::DrawIt (port/engine/fysix/_sdl/clothoverridesdl.cpp)
Cloth obstacles radius 30 for 47 and 35 for other moving objects; with wind, handled in every constraint iteration radius 30 for both, handled once per step after the iterations, as the PC the same

Details:

  • Ragdoll gravity. With 2 sub-steps the PS2's gravity per sub-step is dt² × 2 / 4; the game source writes it as dt² × n / n², which for other counts would change the gravity per second. The port uses the PC's form, (dt² + dt²) / n / n, which is the same number for 2 sub-steps and keeps the gravity per second for 3 and 4. The damping (powf) and the velocity factors already divide by the count, so only the number of collision and constraint passes changes.
  • Real mesh vertices. The PS2 never reads a body's mesh: Setup2 always asks GetVertices for the bounding boxes. Its mesh path, AddVertices, reads the strips through ZCollisionPS2::GetStripsFromPrim, which unpacks each sub-prim into a stack buffer of 512 vertices and does not check for a missing prim. In A Vintage Year (M01) a body's larger mesh overran that buffer and crashed the port while the level loaded, and a chandelier shard (ZShatter) with no prim crashed it in Flatline. The port's AddVertices first checks that the prim exists and that each sub-prim fits; a mesh that does not counts as one over the limit, and the body keeps its bounding boxes, as the PC does above 500 vertices. With PC physics enabled, Setup2 sets the coin flag from the geom name. Coins ignore water and use collision strip mask 2. Ragdoll activation also resolves initial collisions and clears velocity when starting outside an animation.
  • Cost, measured with OPENBLOOD_TRACE_FRAMERATE=1 on the PS2 disc (the Frame rate runs): one ragdoll took 1.0 ms of processor time a second at 30 fps and 1.7 ms with PC physics; at 144 fps (40 simulation steps a second, from the frame guard) 1.3 and 2.3 ms. A cloth took 0.43 ms a second at 40 steps and 0.5 to 0.9 ms at 50. In Flatline (M04) the scene's 13 rigid bodies have 519 collision vertices with PC physics against 388 (the chandelier heads 41 vertices each against 8); a rigid-body step took 0.0137 ms against 0.0127. Rigid bodies step once a frame, so their cost grows with the frame rate either way: the falling chandelier and its neighbours took 4.4 ms a second at 144 fps (2.4 at 30), 11 ms in the busiest second with PC physics. None of this is noticeable against a 6.9 ms frame at 144.

PC version fixes

The Steam PC version is built from a later state of IOI's code than the PS2 disc, and a few of its differences correct mistakes in the PS2 game. With PC VERSION FIXES on (pc_fixes=1, the PC version; Version), the port makes the PC version's change in each of them. The game functions are replaced in port/ with copies of the game's text whose changes test Settings().bPcFixes (overrides); with the setting off they behave exactly as the PS2 code. PC Differences: Classification lists every difference the PC comparison found and why only these count as bug fixes.

Fix PS2 behaviour PC version (address) Evidence in the port
Horizontal look inversion is kept ZDefaultOptions::SetOption (0x224b58) calls SetInvertHorizontal(iPlayerNum, iPlayerNum) (defaultoptions.cpp line 111): the value is ignored, so loading a profile's options switches player 0's InvertHorizontal off again. The PS2 menu has no such option, but CConfiguration reads InvertHorizontalPlayer0 from the game's options at start (cconfiguration.cpp), and both mouse turns (ZHitman3ControlMouse::UpdateTurn, ZHitman3ControlMouseStrafe::UpdateTurn) read the flag. passes iValue != 0 (0x569d40) OPENBLOOD_PCFIXES_TEST=logic: with the option on, a profile's SaveOptions/LoadOptions round trip leaves it 0 with the setting off and 1 with it on.
No sniper case unpacking in water ZHitman3::CanUnpackSniper (0x32904c) lets 47 kneel and assemble the W2000 where he stands in shallow water. refuses while m_bIsInWater is set (0x5ee730, cmp [edi+0xb8c] after the elevator and stairs tests) OPENBLOOD_PCFIXES_TEST=water with 47 walking into water: once UpdateObjectVisibleFlags sets m_bIsInWater by itself, CanUnpackSniper returns 0 with the setting on and 1 without. Checked from the disc in M05's indoor pool (OPENBLOOD_PCFIXES_WATER_AT=850,0,2000) and from the PC installation in the same pool and in M09's bayou (-600,20,-5500). The flag is set only over a water patch the game draws. On the disc, M09's three water patches are flagged never to be drawn, so the bayou never sets it, on the PS2 too, and the fix changes nothing there; see Water in play.
Sniper case pickup range from its mesh ZHitman3::IsItemActionInRange (0x316900) measures from the item's GetCen. for eHM3ContainerSuitcaseSniper01 (0xc3) measures from ZHM3ItemTool::GetCenSize, the centre of the visible mesh's bounding box (0x5f3ae0) The logic test puts a closed case down next to 47: both points are the same on the disc's and the PC installation's data (0.0 units apart), so the difference must come from a state of the case not tested here (open, or carried). Adopted as the PC version has it.
The VHS tape stays in the inventory ZHitman3::CanPullOutFromInventory (0x31e900) lists 42 mission items (keys, cards, papers, the necklace) that cannot be taken out into the hand; M02's tape (eHM3ItemVHSCassette, Item_GovSonSoVideo_01) is not among them, and dropping it undoes objective 3 (ZHM3LevelControlM02::HitmanDropItem). adds eHM3ItemVHSCassette (0x5ebd50) In M02 the logic test's CanPullOutFromInventory for the scene's tape returns 1 with the setting off and 0 with it on.
M05's garage door is labelled in the player's language ZHM3LevelControlM05::Init2, OpenGarage and CloseGarage (0x3f0750, 0x3f1770, 0x3f1860) name the action "OpenGaragedoor", "OpenGarageDoor" and "CloseGarageDoor": English in every language, and the action menu shows them upper-cased without spaces (OPENGARAGEDOOR). the localised AllLevels/Actions/OpenDoor and CloseDoor texts (0x6be730, 0x6bda20, 0x6bdb20) OPENBLOOD_PCFIXES_TEST=garage puts 47 at the garage door: OPENGARAGEDOOR without the setting, OPEN DOOR with it (captures in the classification).
Accented capitals in the briefings zstring::to_upper (0x10ae08) upper-cases byte by byte with an ASCII table. The text is UTF-8, so ZHM3InfoList::Setup, ZHM3BriefingDetail::Setup and AppendDetail show "GRößE" and "HåR". ZHM3TrainingInfo::Invalidate (0x3d1758) uses ZGameData::ZStringToUpper (0x14ace0) for its header but without setlocale(0, "danish"), so toupper leaves the accented letters there too. setlocale(LC_ALL, "danish") and ZGameData::ZStringToUpper in all four (0x685370, 0x686c30, 0x686a40, 0x685e10), as the PS2's own action menus already do The logic test: to_upper and ZStringToUpper turn "Größe: 1,85 m" into "GRößE: 1,85 M" without the setting and "GRÖßE: 1,85 M" with it, and "Hår: gråt" into "HÅR: GRÅT". The port upper-cases the Latin-1 letters U+00E0 to U+00FE in both functions, whatever the C library's locale (port/engine/zstdlib/_sdl/zstringoverridesdl.cpp).
A sound object's room query uses a rotation ZSoundObject::GetCurrentRoom (0x1952b4) copies nine floats from the three-float m_vOrientation into the query box's rotation, so six of them are the following members (a pointer, refs and keys; other bits again in the 64-bit port). createmat(mRot, &m_vOrientation, 0) (0x4f9410) The logic test asks every sound object for its room both ways: all 86 in M05, 68 in M09 and 57 in M02 find the same room, so the fix changes nothing that was measured.

The PC version's fixes to physics (ragdolls pushed out of the collision when they start, coins that ignore water hits) belong to the frame-rate and physics work and are not part of this setting.

PC version tuning

Besides its fixes, the PC version changes a few tuning values and design choices of the PS2 game. With PC VERSION TUNING on (pc_tuning=1, the PC version; Version), the port makes them. As with the fixes, each game function is replaced in port/ with a copy of the game's text whose change tests Settings().bPcTuning (overrides), so with the setting off the PS2 code runs. The PS2 behaviour is what its designers chose, so none of these is on by default. OPENBLOOD_PCTUNING_TEST (port/engine/debug/_sdl/pctuningtestsdl.cpp) runs the scenarios that produced the evidence below; each logs pctuning test: lines and captures with OPENBLOOD_CAPTURE_DIR.

Change PS2 behaviour PC version (address) Evidence in the port
First-person stance ZHitman3::LocalStateIK (0x3203f4) moves the pelvis and the leg floats of the animation state by g_1PPelvis, -23, in the first-person camera. The upper body, the arms and the camera stay where the pelvis placement puts them, so only the legs move. -18 (data 0x8009b8, LocalStateIK 0x5ebf60) OPENBLOOD_PCTUNING_TEST=firstperson with an input script that looks down (M01): with the setting 47's shoes reach about 25 pixels further up into a 960 x 720 view, and the rest of the picture is the same. The camera height (156.3 above 47) and the pelvis placement do not change; setting g_1PPelvis to -150 takes the legs out of the view altogether.
Window climb start points ZHM3HitmanMovementGuide::InitializeClimbWindowGuide (0x2da76c) starts the two sides of a window at its lower corners, moved 30 inwards and 20 outwards. CalcWindowMatPos and CalcLargeWindowProperties align 47 to them. the middle of the top edge, (0, size y, ±size z) from the centre (0x5bffe0) The port takes the PC's middle and depth but keeps the PS2's height, (0, −size y, ±size z). OPENBLOOD_PCTUNING_TEST=window lists the 40 window guides of the 13 missions both ways; M01's ObstacleGuide_Window_100cm_01 starts at (6160, 500, -1880) and (6260, 500, -1920) without the setting and at (6180, 600, -1900) and (6240, 600, -1900) with the PC's points. Played through (OPENBLOOD_PCTUNING_TEST=climb OPENBLOOD_PCTUNING_CLIMB_GUIDE=2, M04's ObstacleGuide_Window_100cm_01 at (−550, 50, −7600), 47 put on the floor in front of it and the stick pushed forward): with the PC's points 47 climbed 100 units (2 × size y) above the opening, through the wall over it, from the disc and from the PC installation alike, and dropped to the floor at the end; with the PS2's height and the PC's middle he climbs through the opening, centred in it where the PS2 puts him 20 to one side, and stands on the floor behind the window (z −7695; −7682 with the PS2's points). The guide box is the wall below the sill (its top, m_vGuideOrigo, is the sill), and the PS2 animation starts from the floor; what makes the PC's top-edge points work on the PC was not found (its CalcWindowMatPos, 0x629540, and the interpolation at 0x623560 use the points as the PS2's do).
The hand that holds still in a window climb ZHM3MovementClimbThroughWindow::GotControl (0x35aa4c) leaves ZHitman3::m_DontAnimateAttachers alone. That byte is a mask of the hand attacher bones that are not animated: ZOldDraw (zolddrawps2.cpp, the port's ZOldDrawSDL::FinishBones) gives the bones in the mask the pose ZLNKWHANDS::m_AttachBones kept from the last frame they were animated, so what that hand holds keeps its pose. Bit 0 is eLHandAttacher, bit 1 eRHandAttacher; OnClimbGuideEnter sets 1 for dual weapons on both builds. 2 for a mirrored climb (m_bPlayAnimMirrored), 1 for the others, 0 while 47 carries a suitcase in his left hand; TerminateControl clears it (0x6231c0, 0x623360) In the M04 climb above m_DontAnimateAttachers is 1 for the whole climb with the setting and 0 without, and 0 again once 47 lands. 47 had nothing in his hands, so the captures do not differ in the hands; what the mask holds still is only visible on an item carried in that hand.
Binocular view ZHM3Camera::ActivateCurrentCameraMode (0x305618) only disables the inventory. also ZGui::Disable(0), and DeactivateCurrentCameraMode ZGui::Enable() (0x5dfb00, 0x5df320) OPENBLOOD_PCTUNING_TEST=binoculars (M01): with the setting the GUI is disabled in the binocular view, the action, pickup and drop prompts ([G], [SPACE], [E]) are gone, and Start no longer opens the in-game menu (menus closed 1 against 0 without it); the compass and the health display stay. Leaving the view enables the GUI again. The comparison's "hides the whole OSD" is too strong: ZOSD::Disable hides only those three prompt displays.
Picture-in-picture for remote bombs ZHM3CameraEventCameraClass::PushEvent (0x310fd0) opens the event camera when a remote bomb is triggered. not for a bomb (ZHM3ItemBomb) whose room is the root room (g_pEngineData->m_pRoot, outside every room); it shows the exclamation mark instead (0x5ea630) OPENBLOOD_PCTUNING_TEST=pip pushes a bomb trigger for every bomb of the scene: in M11 PushEvent returns 0 with the setting for 47's own Equip_Bomb_01 and the two Item_WW_roofbombs, which lie in the root room, and an event id for Item_WW_ovaloffice_bomb, which lies in a room; without the setting all four get an id.
No exclamation mark in the training ZOSD::PIPTriedToStartUp (0x3a5d34) shows the exclamation mark whenever the picture-in-picture camera could not open. not in level 0, M00 (0x660740) The pip scenario: in M00 the mark's target visibility is 1.0 without the setting and 0.0 with it; in M01 1.0 both ways.
The training's compass splash ZHM3LevelControlM00::CaseFirstBriefing (0x3e57f4) queues seven splashes at the first briefing. an eighth, 59_Splash_05, for the compass, between Headlines and Equipment (0x6b5750) The disc has the text too (M00/Tutorials/59_Splash_05, "Compass / The compass is displayed in the upper right corner."), and the compass is the PS2 HUD's own, so no PC data is needed. Paging through the first briefing in M00 shows Action Menu, Player Status, Equipment, Compass, Headlines, Exclamation Mark and Controls with the setting, and the same without Compass without it; the PC installation's data (PC-data mode) gives the same eight pages.
Laser sight dot ZLaserAim::DrawBufferViewUpdate (0x391a80) sizes the dot in screen pixels, 4.5 - 3.2 × fPercent with fPercent = depth / 2000 up to 1, through ZCameraSpace::Proj3D. a camera-space square of 3 + 12 × fPercent units (0x651b10) OPENBLOOD_PCTUNING_TEST=laser (M01, 960 x 720): at depth 461 the dot's half size is 4.5 x 3.9 camera units without the setting and 2.9 with it, at depth 679 6.0 x 5.2 against 3.5. From those numbers, on screen the PC dot is smaller than the PS2's up to a depth of about 1800 units, a little larger between about 1800 and 2200, and smaller again beyond, where the PS2's stays 1.3 pixels and the PC's keeps its 15 units. Close-up captures: the near dot is about 6 pixels across with the setting and 8 without.
Map sounds CIngameMap::UpdateMapPosition (0x3aac40) plays OSDSND_Inventory_Scroll and a looped OSDSND_Binocular_ZoomIn when panning starts, OSDSND_Map_Zoom and a looped OSDSND_Binocular_ZoomOut when zooming starts, and OSDSND_Scroll when either stops. only OSDSND_Map_Zoom, on every call that changes the scale (0x664c40) OPENBLOOD_PCTUNING_TEST=map (M01) moves the open map: without the setting the pan and zoom flags are set and the moving sound starts; with it both stay clear and no moving sound exists. With the pad the PC's zoom changes the scale every frame it is held, so OSDSND_Map_Zoom starts again each frame, as on the PC with a pad.
Map pad pan CIngameMap::FrameUpdate pans and zooms by scale / 30 per 1/60 s (the frame-rate work keeps that speed at any frame rate; Frame rate). scale / 60, half as fast (0x6677a0) The constant only; not measured.
Newspaper zoom ZStatisticsTest::ControlMoveSmooth (0x3a15e4) zooms by powf(zoom, DeltaFrameTime × 2). × 8, four times as fast per second (0x65e080) The constant only; not measured.

With pc_tuning=1 all 13 missions ran 2000 frames and exited 0, from the disc and from the PC installation alone (PC-data mode), on 25 November 2026.

PC tuning also defaults AutoAim to off when the configuration has no explicit value.

Differences outside this setting:

  • The debug free camera (KeyControlGeom 0x227460, ZBaseCamera::Init 0x228118). The PC's free camera rolls (an up vector turned by MoveX × Mode1 × 0.01 before createmat), flips the sign of the pitch and roll inputs, and ignores the right stick's TurnCamera and TiltCamera, because its bindings are the keyboard's (Mode1 is Shift, MoveX the arrow keys). The PS2 build binds Mode1=0 and the right stick, so with the disc's bindings the PC code would only take the right-stick look away. The PC also moves ToggleFreeCam (K) from DebugAlways to DebugKeys and adds ToggleGates (Y) and ToggleAlignment (V); the port has no switch for the debug keys, so that would only remove K. Neither fits the debug tooling better.
  • The fibre wire's auto-crouch and the picture-in-picture camera from an options byte (ZHitman3::Initialize, ZHM3CameraEventCameraClass::ZHM3CameraEventCameraClass 0x30fdfc): the PC reads the two options from its options bytes 0x7f40aa and 0x7f40a9 instead of the configuration; the PS2 menu has both options too, so the value is the player's either way.
  • A pushed actor's collision strips (ZHM3ActorActionPushed::IsCollidingWithBackground 0x37de9c, LoadSave 0x37e15c): the PC gathers them once and writes them into saved games, so adopting it would change the save format; it is a performance change with no visible effect.
  • The loading-bar phases (ZEngineDataBase::SetAllocSequencePercent 0x146648 and the Get*Data functions): they follow the PC's load order, which the port does not have.
  • Building a menu does not write slider values back (ZGUISlider::SetValue 0x21a58c): the PS2 writes back the value it has just read, which changes nothing.
  • The empty-profile-name test in a virtual (ZEnterProfileName::Click 0x3d336c): a refactor with the same behaviour.
  • Layout, text, mouse and rendering changes belong to other settings: the HUD and menu layout, slider texts ("%i"), mouse menus, PC text and the PC renderer's differences (PC Differences: Every real difference).

PC character models

The PC version gives every character one more level of detail than the PS2: a finer mesh (17 to 46% more triangles; 2,663 against 2,275 for 47) for the closest distances, with the PS2 mesh as its second level. With PC CHARACTER MODELS on (pc_models=1; a disc run with a PC installation, which the launcher's PlayStation 2 version no longer makes: set it by hand or in a test, Version), a disc scene's prims get the PC's finer meshes when the scene loads: 118 of the 147 characters the PC gives one, from 1 to 11 a scene. They keep the PS2 textures, lighting and animation; the PC's extra shading layers (the shell over the eyes, glasses lenses) are left out. A character whose PC model does not fit the PS2's (other bones, other variants, another second level, or a finer level the PS2 already has) keeps the PS2 model, as does every character when the PC scene cannot be read. docs/development/port/pc-assets.md and docs/internals/formats/prm.md ("PC character levels of detail") have the details and measurements.

  • Where it shows. 47 always draws his finest level (the PS2's own rule, ZHitman3::WantViewPrimHide), so he has the finer model at every distance, in third person and in mirrors; in first person only his arms are drawn, which are the same on both. Other characters draw it within about 3 m of the camera (the game's level 0, about the distance / 100 below 3 at the default field of view), and the PS2 model from there out. Character model detail follows the draw distance setting, capped at 4.
  • Cost. The merge takes 57 to 102 ms when a mission scene loads and adds 0.7 to 1.7 MB to its prims (M00 6.4 to 7.5 MB and 893 more handles, M01 7.5 to 9.2 MB).
  • In PC-data mode (Playing from a PC installation) the setting does nothing: the PC models, with their own textures, are used already.

PC text

The PC release's scene text (.LOC) has the disc's keys and a few corrected strings. With PC TEXT (pc_text=1; a disc run with a PC installation, set by hand or in a test, Version), each scene's table is the disc's with the PC text of six keys: the newspaper's murder article template (its was/were logic, with the PC's tighter headline), Flatline's short target name in the article ("Mr. Lombardo" where the disc repeats "Lorenzo Lombardo"), its unused article form, "are at the moment questioning", the Controls tutorial's spacing and one subtitle of the M13 ending. The PC's rewordings ("Fierce Offender", "INTEREST POINT"), its PC and online strings are not taken, and voice lines keep the disc's sound ids. PC assets: PC text lists all fourteen differing keys, why each is or is not taken, and captures of the newspaper with the disc's fonts.

With a PC installation set, every disc run also gets the PC's names for the mouse buttons and its extra key names (AllLevels/Interface/Mouse, AllLevels/Interface/KeyConfiguration); no game screen reads them, they are there for the port's mouse and key features. A run from the PC installation alone uses the PC text as it is.

PC animations

The PC version's scene animations are the PS2's stored more finely, plus eight the disc leaves out. With PC ANIMATIONS on (pc_animations=1; a disc run with a PC installation, set by hand or in a test, Version), each scene's animation file is merged with the PC scene's as the scene loads:

  • Finer poses. Every animation's body state (the pelvis, spine and limb joints, the feet) comes from the PC's 14-bit channels instead of the disc's 6 to 11 bits. The difference is small: at most 0.22° on a joint rotation, 0.27° on a joint angle and 0.07 units on a foot position.
  • The air rifle. In The Murder of Crows (M06), Death on the Mississippi (M08), A House of Cards (M10), A Dance with the Devil (M11) and Amendment XXV (M12) the disc lacks the air rifle's reload or its first-person hold, which the game asks for by name. (The rifle lies in A New Life; 47 can take it from the hideout into these later missions.) Without them the rifle reloads instantly with no animation, and in first person 47's arms stay down and the rifle is not in view. With the setting 47 breaks the rifle open to load a dart and raises it to his shoulder in first person, as on the PC.

Everything the game refers to by number stays the disc's: animation and template numbers (save games, scripts), the frame events and the sounds the animations start. The two air-rifle animations are added after the disc's. A save made while 47 reloads the air rifle with the setting on should be loaded with it on. From the PC installation alone the scenes are the PC's own and already have all of this. The merge takes about 40 ms when a scene loads; docs/development/port/pc-assets.md (Animations) and docs/internals/formats/anm.md have the details and measurements, and OPENBLOOD_PCANIM_TEST=airrifle shows the air rifle's animations in a scripted run.

PC HUD and menu layout

The PC version places a few HUD and menu elements differently from the PS2 (PC Differences: GUI and Input). PC HUD AND MENU LAYOUT (pc_layout, the PC version; Version) chooses between the two: 0 the PS2's, 1 the PC's, and auto (the default) the PC's while the PC installation's data is played and the PS2's with the disc. The game functions are replaced in port/ with copies of the game's text whose changes test the setting (port/hitman3/gui/_sdl/hudlayoutoverridesdl.cpp, menulayoutoverridesdl.cpp, port/engine/zwindows/xmlinterface/elements/_sdl/slideroverridesdl.cpp); with the PS2 layout they are the PS2 code.

Element PS2 PC (address) In the port
Health and disguise bars x 51 and 75, 6 wide x 61 and 86, 8 wide (ZOSD::InitElementPositions 0x660c00, DrawDisguiseBar 0x661070, SetHitpoints 0x661860, the first DrawBufferViewUpdate 0x661bb0) taken
Weapon display 124 + 48 from the right edge; item frame at x - 36, ammo count at x + 75, bullet text at x + 122 164 + 48; frame x - 16, count x + 108, bullet text x + 162; the symbol stays where it is (InitElementPositions, ZWeaponDisplay::Draw 0x66deb0) taken
Container menu entries at the menu's x, focus bar at y - 2 entries and focus bar 20 to the right, focus bar at y - 1 (ZContainerMenu::Draw 0x66af60, UpdateAllEntryPos 0x66b0a0) taken
Briefing objectives (ZHM3Objectives::Setup) rows 16 apart, "Completed" column at + 205 rows 18 apart, 8 to the right, column at + 220 (0x684b40) taken
Pre-mission objectives (ZHM3ObjectivesBrief::Setup) from y - 37, rows 16 apart from y - 35, rows 18 apart (0x685040) taken
Info list (ZHM3InfoList::Setup) x + 0, rows 16 apart, lines 330 wide; the short list from y - 45 x + 70 (the short list + 10), rows 18 apart, lines 260 wide; the short list from y - 46 (0x685370) taken
Inventory description 360 wide 300 wide (ZHM3InventoryMenu::UpdateItemInfo 0x6815f0) taken
Slider value text "%%%i" "%i", or "%.1f" of the value times FloatMultiplier with DisplayAsFloat (ZGUISlider::SetValue 0x5614f0, readParams 0x561660) taken; the same text on screen, as the PS2's % only marks the text as literal; only the PC-only gamma slider uses DisplayAsFloat
Briefing target details (ZHM3BriefingDetail::Setup) details column at + 218, 9 text lines beside a picture column at + 258, 10 lines, the text 2 to the left (0x686c30) not taken: made for the PC's own briefing windows (below)
Training hints (ZHM3TrainingInfo::Invalidate) text 480 wide 540 wide (0x685e10) not taken: made for the PC's 640-wide training window (below)
Subtitles (InitElementPositions) at (48, H - 91), W - 48 wide at (48, H - 100), W - 144 wide not taken: the PC's width leaves 144 of an 800 or wider window; of the port's 512 it would leave 28 % unused
Pause map legend (CIngameMap::SetCurrentMap 0x6673e0) Legend_PS2_Xbox, "{MapLegend}Legend" Legend_PC, "Legend" not taken: the PC drops the button because its legend is clicked; the port's text names the pad button or the bound key

Why automatic. The PC numbers belong to the PC's pictures and fonts. Captures in A Vintage Year (M01) with OPENBLOOD_PCLAYOUT_TEST=hud, each with the setting off and on:

  • With the PC installation's data, the PS2 numbers leave the health and disguise bars at the left of their slots in the PC's health frame, three quarters as wide as the slots, and the PC's item frame, which is wider than the disc's, reaches 19 pixels (of 512) into the right margin. With the PC numbers both fit. The PC's fonts are wider than the disc's: with the PS2 numbers the first objective ("KILL DON FERNANDO DELGADO") runs into its NOT COMPLETED banner and the info list's lines touch; with the PC numbers neither happens (the banners end 21 pixels past the panel's right edge instead).
  • With the disc, the PC numbers put the bars between the slots of the disc's health frame, the ammo count past the right end of the disc's narrower item frame and the banners past the panel's edge, while the PS2 numbers fit the disc's pictures and fonts.
  • In widescreen with the HUD at the screen edges (hud_to_edges=1, a 1280 x 720 window), the bars and the weapon display move out to the edges with either layout, as each group shifts as a whole.
  • Both layouts fit the pre-mission objectives, the inventory description and the sliders with either data.

Compass, objective and key caps. The PC version also differs where the PS2 code thinks of the television and the pad:

  • ZOSD::InitElementPositions on the PS2 sets m_bIsM00AndConsole in the training level (M00), which hides the compass there and moves the objective text 38 to the right and 16 up. The PC never sets it (PC +0x35: the constructor at 0x65f6c0 clears it and nothing writes it), so its training shows the compass at the top right and the objective in its usual place, centred under the top edge. With the PC layout the port does not set it either.
  • The PC's console border (m_fConsoleBorderSafe, PC +0x24) is 0 where the PS2's constructor makes it 15, so the objective text sits at y 25 and the compass at y 35.5 from the top instead of 40 and 50.5.
  • The action, pickup and drop prompts show their key on a key cap, as the PC does (ZActionMenuBase::Draw 0x66a850, ZDropDisplay::Draw 0x668d30, the name set by 0x66d9e0): the menu's own button picture, which in the PC scenes is a blank 18 x 18 cap, or for a name of two or more letters the wide cap (BigButtonSymbol, 33 x 18), with the name written on it in capitals (ButtonSymbolChar at the cap's x + 4, y + 14, its black shadow one further right and down; the PC gives them alignment 1, top right). The name is the key's, cut to three letters; the pick-up key reads the PC's text AllLevels/Interface/KeyConfiguration/PickupSPC, "SPC", when it is Space. The menus' entries and the drop display's bar and name move 20 to the right of the cap (m_fAddActionMenuOffsetFromSymbol, set to 20 by the PC's ConvertInputRefs 0x668ad0 and 0x668e80). The PS2 class keeps the three references (m_rBigButtonSymbol_PcOnly, m_rButtonSymbolChar_PcOnly and its outline) without reading them; the port reads them in ConvertInputRefs (port/hitman3/gui/_sdl/ingamemenusoverridesdl.cpp). The caps show while the keyboard is in use and the scene has the cap text, which the PC installation's scenes have; otherwise the port's [G] labels or the pad's glyphs show as before.
  • With the PC's HUD size as well (PC HUD size) the subtitles take the PC's place and width, (48, H − 100) and W − 144 wide, which the PC chose for windows 800 pixels and wider.

What is left out. The PC's briefing windows are its own: briefing.xml has <Platform PC> blocks for nearly every window, laid out in a 640 x 480 template (the PS2's is 512 x 448), with the details panel at x 450 instead of 368 and the training window 640 wide instead of 460. The port reads the PS2 blocks with both data sets. In them the PC's target details column runs past the DETAILS panel and off the screen, and its 10 lines run over the bottom of the text panel, so ZHM3BriefingDetail::Setup is not replaced. The PS2's training window is 460 wide, and the PC's 540-wide hint text runs past its right edge (captured in the tutorial, M00, with a three-line hint: by 23 pixels of 512 with the disc's font and 18 with the PC's), so ZHM3TrainingInfo::Invalidate is not replaced either. Taking the PC's briefing windows as well would need their graphics, which the disc does not have, and belongs with the PC's mouse-driven menus.

Captures of each element with the setting off and on, from the disc and from the PC installation, are made with OPENBLOOD_PCLAYOUT_TEST=hud (port/engine/debug/_sdl/pclayouttestsdl.cpp): it adds four info entries (one is a header and text for the training window), gives 47 a gun and draws it, sets health and the disguise bar, opens the container menu of a sniper case for 200 frames (the menu lists only what 47 carries that the container holds, ZContainerMenu::CreatePlaceEntries, so the test gives him the custom W2000 the case takes; without it the menu had no entries and drew nothing), and opens the windows OPENBLOOD_PCLAYOUT_WINDOW lists (BriefingStandalone, TrainingBriefing, SoundMenu); an input script opens the briefing (Select), its objectives and info list, and the inventory (Square held).

All 13 missions ran 2000 frames with pc_layout=1 from the disc and from the PC installation (25 November 2026), each exiting normally, with the HUD in its place in the captures.

The container menu, captured in M01 with the test (W2000 SNIPER and CANCEL at the menu's (200, 75)): with pc_layout=1 both entries and the focus bar start 38 pixels of the 960-wide capture to the right of where they are with pc_layout=0, which is 20 pixels of the game's 512, from the disc and from the PC installation alike. The one-pixel move of the focus bar (y − 1 against y − 2) is not visible at that size.

PC HUD size

The PC version draws its HUD (ZOSD and what it draws: the health frame and bars, the weapon display, the compass, the objective and hint text, the action, pickup and drop prompts, the container menu, the crosshair and the subtitles) in pixels of its window. ZOSD::InitElementPositions (PC 0x660c00) places each element from the window's width and height (DAT_0081f820 +0x84 and +0x88, the client size), and ZWINOBJ::CalcPosScale (PC 0x54f7d0) and the OSD's own sprites size a picture or a font from the draw buffer's size, which is the window's, so one texture pixel is one window pixel. At 1024 x 768 the health frame starts at (48, 667), H − 101; in a larger window it stays that size and keeps its distance from the edges. The PS2 does the same in its 512 x 448 picture, which the port scales to the window, so at 1024 x 768 the port's HUD was twice as wide and 1.7 times as tall as the PC's.

PC HUD SIZE (pc_hud_size, the PC version; Version) lays the HUD out the PC's way (port/hitman3/gui/_sdl/pchudsdl.cpp):

  • ZOSD::InitElementPositions, ActionGetItem and EnableOSDElement place the elements in a screen as many units wide and high as the HUD area has window pixels (PortPcHudResolution; port/hitman3/gui/_sdl/hudlayoutoverridesdl.cpp), and ZOSD::DrawBufferViewUpdate places them again when that size changes (a resized window).
  • The HUD camera's projection (OsdCamera, ZCameraViewEntrySDL::UpdateMatrices in port/engine/drawing/old/_sdl/zoldviewsdl.cpp) is scaled about the HUD area's top left so that one of its units is one window pixel, and moved half a pixel right and down: the game places its pictures half a pixel up and left, which lines texels up with pixels on the PC's Direct3D 9, where pixel centres are whole numbers, and blurs them by half a pixel here, where they are halves.
  • What reaches the OSD in the game's 512 x 448, the crosshair's centre (from the main camera's viewport, ZOSD::UpdateCrosshair) and the security camera's overlay (SetSecOverlay), is turned into the HUD's units where it is drawn.
  • The HUD area is the 4:3 picture, or the whole widescreen picture with HUD at the screen edges (hud_to_edges), where the elements then sit at the window's edges as on the PC, without the sideways shift the setting otherwise uses.

The 2D menu windows (the pause menu, options, dialogs) are drawn a menu unit to a window pixel, centred in the picture (PortPcMenuCameraScale); windows with 3D weapon views (inventory, weapon selection and upgrades) keep the game's 512 x 448 layout scaled to the window.

High-density displays (fixed 2 and 3 December 2026). A window pixel here is one at the display's scale (GpuHudArea, SDL_GetWindowDisplayScale): the window's pixels divided by its pixel density (a Retina display) times the desktop's content scale (Windows display scaling). Counted in the window's own pixels, a 2560 x 1440 window on a display of twice the density (1,280 x 720 points) drew the HUD, the menus and the credits at half the size they have on a standard display, which made the pause menu hard to read. Windows reports display scaling only as the content scale and leaves the pixel density at 1, so measuring by the density alone left a fullscreen 3840 x 2160 window at 150 % with the PC's size at 3840 x 2160, a quarter of the area it has at 1920 x 1080. Large screens (3 December 2026): the scale is also at least the picture's height over 1,080, so in a picture taller than 1080p the HUD, menus and credits are as large as the PC's at 1920 x 1080, which is how the PC game, run at a lower resolution that the display scales up, looks on a 4K screen. A fullscreen 3840 x 2160 window draws them at twice the PC's pixel size (captured in M01, the pause menu and the main menu: the health frame 202 above the bottom edge against the PC's 101), a 2560 x 1440 window at 1.33 times, and at 1080p and below they keep the PC's size. UI scale (display.ui_scale, UI scale) replaces this automatic scale with a percentage of the PC's pixel size, 50 to 400. The scale is held so that the picture is at least 480 of these pixels high, the PC's smallest resolution (a phone's display scale would otherwise leave the HUD under 400 high), and is never below 1. The PC's blurs, sized in window pixels (fPcBlurScale, PC rendering), follow the same measure.

The credits are the exception: they scroll over M13's funeral, the M13 ending and the front end's Credits, where the PC's small text is part of the look. The PC lays out every menu in window pixels: a template's width and height are pixels, the window is centred, and a font texel is a window pixel. Each credits window's <Platform PC> block has a 1024 x 768 template and the credits element at (512, 155); the PS2 block, which the port reads, has 512 x 448 and (256, 65). So at 1024 x 768 the PC's credit lines are 20 pixels apart (the 17-pixel font and the window's line space of 3), and the port's were 34, with letters 1.7 to 2 times the PC's. With the setting, ZTextCredits::Update (PS2 0x3c4a9c, PC 0x67cd70, the same code; the port's copy is port/hitman3/gui/_sdl/textcreditsoverridesdl.cpp) scales each credit line's text and shadow so that a font texel is a window pixel, and places the lines in window pixels from (512, 155) of a 1024 x 768 window centred in the 4:3 picture, as the PC does; ZTextCredits::ReleaseResources hands the text groups back at the game's size. The credits window is a menu, so once the menus' camera drew a menu unit as a window pixel, the lines were scaled twice and came out at that scale squared (in a 720-point-high window, lines 6 pixels apart in a 1,440-pixel picture where the PC's 20-point lines take 40): the lines now take the menu camera's scale and its centre into account (fixed 2 December 2026). Measured over M13's start at 1024 x 768 against the real PC (pc-m13-b.png): 13 lines from y 156 to 391 against the PC's 160 to 395 (the scroll position differs), the letters the PC's height and width. The end credits' Continue button and the front end's Back keep the PS2 layout.

Measured at M00's start against the real PC game at 1024 x 768 (build/pc-real/pc-m00-play4.png, see PC data: Compared with the real PC game), from the PC installation, in pixels:

Element PC Port before Port with PC HUD size and layout
Health frame top line from (48, 668) top line from (95, 596), twice as long top line from (48, 668), as long as the PC's
Health bar x 62 to 69, from y 672 x 123 to 138, from y 603 x 62 to 69, from y 672
Key caps G, SPC, E at (48, 21), (75, 47), (48, 74); 18 x 18, 33 x 18, 18 x 18 [G], [SPACE], [E] at x 97 to 255, y 38 to 150 the same places and sizes; the letters within half a pixel
Objective text x 401 to 588, y 25 to 40 x 365 to 740, y 40 to 70 x 401 to 585, y 25 to 40
Compass letters E S W N x 867, 900, 931, 965; y 19 to 30 not shown x 866, 900, 931, 964; y 19 to 30

The objective text is 3 pixels narrower; the rest is where the PC puts it. The caps look darker in the port because they are drawn at alpha 140 over a picture whose colour grade differs (a separate difference). Captured as well at 1280 x 960 and at 1280 x 720 widescreen with and without the HUD at the screen edges: each element keeps its pixel size, the health frame stays 101 above the bottom and 48 from the left (of the 960-wide centre without the edges setting), the compass 130 from the right and the objective centred. The PC game itself was run only at 1024 x 768; that it keeps the same pixel sizes in other windows follows from its code (the positions from the client size and the sizes from the draw buffer's), not from a capture.

From the disc, with the PS2 version, nothing changes: the HUD regions of M00's start are the same to the pixel as before the change. With pc_hud_size=1 the disc's HUD has the PC's size too, with its own pictures and fonts.

All 13 missions ran 2000 frames (25 November 2026) from the PC installation with the PC version, and from the disc with pc_hud_size=1 and pc_layout=1 over the PS2 version, each exiting normally.

PC lighting

A character is lit by its room's environment light, and the scene's static shadow data says where that light is blocked. Each frame ComputeStaticShadowMultiplier (PS2 0x13fb64, PC 0x473310) samples that data at the character's root and scales the environment light by the result. The PC version does two things the PS2 does not. PC LIGHTING (pc_lighting, the PC version; Version) makes the port do the same (port/engine/drawing/_sdl/staticshadowoverridesdl.cpp, which replaces the function; overrides).

What PS2 PC version Port with PC lighting
A character walks into a shadow the light drops at once the multiplier moves 0.15 of the way to its new value each call (PC 0x4733d9); the first call for a draw entry stores it outright 0.15 of the way per 1/30 s (PS2FrameLerp), so it takes as long at any frame rate: about 85 % of the change in 12 PS2 frames (0.4 s)
The PC data's projected shadow blocks (block flags 0x19 and 0x1d) read as no shadow (flag 8 gives no darkening); the disc has none of them a projected shadow texture on the character, up to four at a time, each fading in and out at 2 a second (PC 0x472b10, 0x473030, 0x472a10); the character is drawn again with each one into the shadow buffer (PC 0x4b4110, the TextureProjection technique) and the picture is multiplied by one minus the buffer the same: the character's meshes, and the weapons and props attached to him, are drawn again with each projection into the character shadows' mask (port/engine/drawing/old/_sdl/staticprojectionsdl.cpp, port/shaders/staticprojection.hlsl), so the tree's dapples, the wheel's spokes or a lamp post's shadow cross him as he walks through them; the additive kind (M11, M12's windows) brightens him instead
A character's drop shadow (Character shadows) a grey shadow of fixed strength the light record's static shadow colour is the light left in the shadow (g_vDropShadowColor, PC 0x4b5672; ShadowDrop in Standard20.fx), written into the shadow buffer the scenery's static shadows share, with the blend MAX; in M00, M01, M04 and M05 the character shadow environment takes its room environment's colour (ZENVIRONMENT::ClassInit, PC 0x4e4bf0) the same colour and the same MAX over the PC data's static shadows: a drop shadow inside a darker static shadow adds nothing (M04's start, where the PS2 rules drew 47's shadow across the shaded drive)

Playing from a PC installation, the setting also draws the scenery's static shadows the PC's way: the PC data's shadow meshes (the dappled plant shadows over M01's courtyard, M05's tree and hedge shadows across the street and lawns, the light of M12's windows on the floor) darken the picture by the PC's colour through a shadow buffer, or add their light, as StaticShadow.fx, StaticShadowTextureShadow.fx and StaticShadowTextureAdditive.fx do (zoldviewshadowssdl.cpp; pc-data.md: Scenery shadows). Off, or from the disc, they are drawn the PS2's way, which the port currently draws without their visible faces, so none show. The setting also gives the character shadows the PC's colour and their place in the PC's shadow buffer (the table above; pc-data.md: Character drop shadows). Attached weapons and props take their owner's lights already, and their owner's projections (PC Differences: Platform and Audio). With the disc only the easing applies, because the disc has no projected blocks, so the setting is off there by default (auto). As on the PC, a character keeps the projections he has met (up to four) and is no longer dimmed by the ordinary static shadows once he holds one; pc-data.md: Static shadows on characters has the record, the PC's passes, its quirks and the measurements. Measured in M00 from the PC installation (OPENBLOOD_SCENEFX_WALK, which moves 47 a step each frame and captures him): walking north into the tree shadow behind the palace, the shadow fades in over half a second as he enters its block, and where the dapples are densest his head is 0.68 as bright as without the setting; the dapples move over his head, shoulders and the case he carries. In M12's main hall a window's light makes his head 1.75 times as bright. All 13 missions ran 2000 frames from the PC installation with the setting on and off and from the disc with it on (25 November 2026), each exiting normally; with it on, the projection pass drew in M01, M04, M05, M09, M10 and M11. Without the setting, and from the disc, the picture is the same pixel for pixel as before.

Playing from a PC installation, the setting also lights the scenery and the characters by a sunlit room's environment light the PC's way: the PC adds the sun's whole colour on top of the room's ambient colour where the PS2 blends from one to the other, so surfaces facing the sun are brighter (M01's courtyard and M05's street by about a fifth, as in the PC game) and characters standing in the sun a little brighter; shade does not change (pc-data.md: Directional environments). A room lit by a hemisphere environment light (M04's forest, M00, M02, M09 and the indoor scenes) is lit as the PC lights it too: the PC weights that light by how far a surface faces it, so ground under a high sun is somewhat darker than the PS2 lights it (M04's path and lawn by about a sixth, as in the PC game; pc-data.md: Hemisphere environments).

Two more PC-version looks need no setting, because they apply only when playing from a PC installation, where the PC is the reference (Playing from a PC installation): the water's reflection covers the whole view, so the ripples near a pool's edge show reflected walls instead of the floor beside the pool, and scatter fields (grass, undergrowth, M08's forest on the hills behind the river) are no longer faded out with distance, as the PC never fades them, and their billboards are cut out by the PC's alpha test, so the trees hide what lies behind them (M08's riverbank fire glows between the trunks instead of through the leaves).

Mouse turn

The port's mouse play follows the PC version, which is the reference for it. Both feed the mouse's relative counts into the TurnHor and TurnVer actions as they come: the PC's ZMouseWintel::Update (0x450010) reads DIMOUSESTATE once a frame and stores lX and lY with a relative sample (PC 0x4492b0: m_anamotion[axis] = delta; m_analog[axis] += delta, a function the PS2 build lacks), and the port's ZMouseDeviceSDL::SampleFrame and Move do the same with SDL's relative motion times mouse_sensitivity. SDL's relative mode reads raw input on Windows, so at sensitivity 1 a count is a count on both. Both then scale by CConfiguration::m_fMouseSpeed, which the options' turn-speed slider sets to its value over 5 (1 at the middle setting).

  • Third person (ZHitman3ControlMouse::UpdateTurn, PC 0x62c540): 0.05 on both versions, and ZHM3CameraConsole::UpdateInput (PC 0x5e4040) turns the camera by 0.08 radians per unit. One count is 0.229°. Measured in the port with OPENBLOOD_PCFIXES_TEST=mouse and an input script moving the mouse 10 counts a frame: 22.92° every 10 frames.
  • First person (scope, binoculars, first-person camera; ZHitman3ControlMouseStrafe::UpdateTurn, PC 0x62c2a0): the PC scales the horizontal counts by 0.18 (0x794fa4) where the PS2 code has MOUSE_TURN_SCALE, 0.05; the vertical scale is 0.05 on both. The port now uses 0.18 (port/hitman3/characters/_sdl/mouseturnoverridesdl.cpp, always, since this function only runs with the mouse). Through the W2000's scope the measured turn went from 0.015° to 0.054° a count, 3.6 times as fast, as on the PC.
  • Strafing: the mouse's walk and strafe flags (ZHitman3ControlMouse::SetHitmanMovementStatusStrafe) are dead-zone tests on the move keys on both versions. The stick-angle sectors of ±35°, ±55°, ±125° and ±145° that the comparison listed for the mouse belong to the pad version, ZHitman3ControlConsole::SetHitmanMovementStatusStrafe (PC 0x62d4d0), which the PS2 has too: the comparison had paired the two the wrong way round.

PC mouse controls

The Steam PC version handles the mouse in more of its menus than the PS2 code the port runs, and its keyboard configuration takes a key away from the action that had it. With PC MOUSE CONTROLS on (pc_mouse=1, the PC version; Version) the port does the same. It is on by default: each part acts only while the keyboard and mouse are in use (the game's m_bUseGameController is clear: no pad, or the keyboard or mouse was used last), as the PC version tests the same flag, so pad play is the PS2's. The map and the weapon screens also need Mouse in menus (menu_mouse), which frees the cursor. The game functions are replaced in port/hitman3/gui/_sdl/ingamemapoverridesdl.cpp and pcmouseoverridesdl.cpp (overrides); GUI and Input has the PC code each one follows.

Where With the mouse (PC version, address) The port
Pause map Over the map the pointer becomes the map's pan cursor (a crosshair with four arrows); over the frame around it (the buttons) it stays the pointer. Dragging with the left button pans the map, a left click zooms in on the point clicked and a right click zooms out; after a zoom the pointer goes back to the centre, where the point clicked now is, and the zoom box shrinks or grows from the pointer. The pointer starts in the centre when the map opens. The wheel moves between the floors (MapPrev=tap(ms,wheelup), MapNext=tap(ms,wheeldown)). CIngameMap::FrameUpdate (PC 0x6677a0), UpdateMapPosition (PC 0x664c40), OnWindowOpen (PC 0x667c60). All of it. The click zoom is the PS2 build's own OnKeyDown/OnKeyUp (it zooms on ZW_LBUTTON and ZW_RBUTTON, which the PS2 never sends); the menu mouse now sends them while the map is open, instead of Select and Back. The pan cursor (CrosshairCursor_Pan) is in the PS2 scenes as well as the PC's, so it needs no PC installation.
Weapon details Holding the left button and moving turns the weapon, holding the middle button pans it, the wheel zooms (WEAPONDETAILS_1: WeaponDetailsRotate=hold(ms,left), WeaponDetailsPan=hold(ms,middle), the axes rel(ms,x) and rel(ms,y)). ZWeaponDetails::Update (PC 0x689f30). All of it, from the free cursor's motion in window points (a count on the PC). The pad's sticks and buttons keep working.
Weapon selector An eye button beside each weapon opens its details. ZWeaponSelector::SetupGraphics (PC 0x683470). The eye goes between the weapon names and the selected-weapons panel (247 to the right of the row; the PC's 290 belongs to its wider layout). Its graphic (ButtonGraphicUpgrade, DetailsEyeFocus and DetailsEyeNormal) is defined only in the PC block of premiss.xml, which the port takes for it; the pictures are in the PS2 scenes. With the pad the eyes are hidden and Right leaves the list as on the PS2.
Upgrade selector Clicking an arrow moves through the upgrades, the wheel too, and the arrows link back to the upgrade button. ZUpgradeSelector::Setup, Click (PC 0x67f760, 0x67fad0). The clicks and the links. The arrows stay at the PS2's x 44 and 476 (the PC's 27 and 519 belong to its layout of the window), and Back and the details key still work (the PC branch drops them because its window has buttons for both). The wheel: the menu mouse sends a notch as Up or Down for the other menus' lists, and ZUpgradeSelector::Click takes Up or Down that came from the wheel (MenuMouseWheel) as the PC's ZW_MWHEELUP (the previous upgrade) or ZW_MWHEELDOWN (the next).
Briefing The big panels (Objectives, Replay mission briefing) take the mouse anywhere on them, not only on their titles: MouseColiOnHiddenObjects (PC ZNavigator::readParams 0x55f5f0, ZWINGROUP::GetMouseColi 0x54ec90). The PC's briefing.xml sets it on these buttons in its PC blocks; the port adds it to the same buttons (ButtonGraphic="BriefingMega…") of the PS2 blocks it reads, and the menu mouse's hit test honours it.
Keyboard configuration Binding a key that another action of the same set (ingame or menu) uses takes it from that action. ZNewButton::Update (PC 0x68a840). The same, by device and control rather than by key name (the menu rows are pad buttons whose names, such as down, are also key names). Only that key is taken; the action keeps its pad button and other keys, and the profile remembers it. Rows the PC merges into one (Holster and the inventory, the pickup and action menus with their fast taps, Accept and Enter with Select) never take keys from each other.

Not adopted: the PC version's pad-only change in the map (MapSelect also closes the map list), its software pointer (MouseCam, a camera that draws the PC scenes' Mouse geom; the port shows the system cursor in every menu), and its in-game menu rule for Esc (the game closes the in-game menu on IngameMenu only when that is not bound to Esc, because the PC's Back is Esc too; in the port Back is the pad's Triangle, reached by G, so the rule would leave Esc doing nothing). PC Differences: Every real difference lists each with its reason.

Verification (input scripts with the mouse lines of Launcher: Test hooks and OPENBLOOD_TRACE_PCMOUSE=1, on the PS2 disc and from the PC installation):

  • Map, M01: a drag of 12 cursor pixels moves the map 15 units of the 640 by 480 mouse space and the map position 357 units at scale 10,000 (15 × 10,000 / 420), the way the cursor went; a left click zooms from 10,000 to 5,000 around the point clicked and a right click back; the pan cursor follows the pointer over the map and disappears over the frame. The same from the PC installation.
  • Weapon details, M01's premission (OPENBLOOD_DEBUG_SCENE_TEST=M01/M01_Premission): a click on the first eye opens the Silverballer's details; with the left button held the turn grows by the cursor's motion, with the middle one the weapon moves 0.2 a point, and five wheel notches bring it from 28.5 to 18.5 (2 a notch). With pc_mouse=0 the eyes are absent and the click does nothing; with the pad they are hidden.
  • Briefing: the cursor inside the Replay mission briefing panel, away from its title, focuses it with the setting and not without.
  • Keyboard configuration (OPENBLOOD_MENU_TEST_WINDOW=ButtonConfiguration): binding Reload Weapon to E takes E from Use Action, ActionMenuFast and ActionMenuOpen; the list then shows Reload Weapon e and Use Action blank. The press-new-button dialog shows PRESS NEW BUTTON in its middle, on the disc and from the PC installation.
  • Upgrade selector, M01's premission (OPENBLOOD_DEBUG_SCENE_TEST=M01/M01_Premission, Start, Square, Cross on the Silverballer): two notches down and one up move the selection from upgrade 1 to 3 and back to 2 (pc mouse: upgrade selector: wheel down, focus 0); the same from the PC installation; with pc_mouse=0 it stays on 1.
  • In-game menu: Esc opens and closes it; in its Options window Esc does nothing and G goes back (the reason the PC's Esc rule is not adopted).
  • All 13 missions for 2,000 frames with pc_mouse=1, on the disc and from the PC installation, with a script that opens the map in keyboard play and clicks, right-clicks and turns the wheel in it: every run exits 0, and the map logged its zooms in 12 of the 13 (mission 12 logged none). (That script's drag came after the button was let go, so the sweep exercised the clicks and floors; the drag was checked in the M01 runs above.)
  • Again after round 3's changes (the line-object pool, the key column, the upgrade wheel and the PC-data vertex alpha), 25 November 2026, the same script and pc_mouse=1: all 13 missions from the disc exit 0, and every disc scene logs menu: 96 menu line objects, 20 added; from the PC installation 12 exit 0 and M06 aborted once at its first frame in a script call (Zlist__Getref: REF does not fit a script's 32-bit REF (0xffffffe0ffffffe0), in M06_M06_Socializingtourist). Three more runs of M06 from the PC installation, the same script, exit 0; the abort is intermittent, comes before any menu or map is open, and was not traced further.

Three fixes to the port's keyboard configuration window (PC menu entries) came with this work and apply with the setting off too: the press-new-button dialog no longer takes the key that opened it (the port's devices report a key that is still held; the PC's DirectInput devices report presses) and asks the keyboard and the mouse before the pad, so Return is Return and not the pad's emulated Cross; the list names the keys of 47's actions, which it showed blank (the port merges their pad and keyboard bindings under an "or" node whose own device is unset); and the dialog has its frame (the PC template ButtonDialog). Round 3 added two more. The dialog's PRESS NEW BUTTON text was missing when the dialog opened over the in-game list: every menu text takes a line object from the scene's LineObjs pool (ZResourceManager::GetLineObj), the disc's in-game scenes have 96 and the PC's 116, and the list's 13 rows of two shadowed texts left none (opened on its own over the game menu, the dialog drew its text, with 44 left). ZResourceManager::SetupResourceGroups (port/engine/zwindows/xmlinterface/system/_sdl/resourcemanageroverridesdl.cpp) tops the pool up to 116 with copies of its first line object; the log says menu: 96 menu line objects, 20 added as the PC scenes have, and the same windows leave 12 of the PC installation's 116 free. The front end's scenes already had enough. And the key column: the PC block puts it at x 350 of its 600-wide window, where a mouse button's name ("Mouse wheel up") ran past the frame of the PS2's 400-wide in-game window; the port ends the column at that window's right edge (x 385, right-aligned), as the front end's PC block does with its own RightPosX (pcmenublockssdl.cpp). The list still has no header in game: the PC block's ButtonCfgHeader template would push the 13 rows of 22 pixels below the 300-high PS2 window's legend.

PC menu entries

The PS2 disc's menu XML still contains the PC version's blocks (<Platform PC="True">); the PS2 reader skips them. The port takes four of them (port/engine/zwindows/xmlinterface/readers/_sdl/pcmenublockssdl.cpp):

  • Options → Controls → Keyboard configuration: the PC version's list of 32 actions with the key bound to each, a "press new button" dialog and Default (ZButtonConfigurationList, ZNewButton and ZDefaultButton are in the PS2 build). The profile keeps each changed binding (aButtonConfigInfo), and ZLevelLinking::ReassignButtons, empty on the PS2, applies them again when a profile loads or a new Hitman starts. Default clears them. The PC template the window's legend uses is taken from the PC template block on its own; the rest of that block would replace the PS2 window layouts.
  • Exit game on the profile screen (the PC block), and on the main menu after Exit profile, where the PC main menu has it. It sets m_bQuit (ZQuitGame::Click), which ends the port.

The texts (EXIT GAME, KEYBOARD CONFIGURATION, PRESS NEW BUTTON) are in the PS2 disc's locale.

From the PC installation, the front end keeps the PS2 windows but takes three things from the PC (3 December 2026, compared with the real PC game in a 1920 x 1080 window):

  • Background pictures. The PC's HitmanBackground and HitmanBackgroundFaded (47 in front of the Las Vegas sign) are 1024 x 768, made for the PC's 1024 x 768 windows, where the whole picture shows centred on the screen. A window places its picture at its top left at the picture's size, so in the PS2's 512 x 448 windows the profile screens showed only the picture's top left quarter, 47's head. IWindowInterface::OpenWindow (port/engine/zwindows/xmlinterface/windows/_sdl/windowinterfaceoverridesdl.cpp) scales a one-object picture taller than its window to the window's height and centres it; the disc's pictures fit their windows and are unchanged.
  • Create Profile's buttons (EnterProfileNameMenu, pcmenublockssdl.cpp): Back and Create Profile sit in the frame's bottom bar, as the PC block puts them 8 in from the frame's left and 10 in from its right, 7 above its bottom; they were 20 below the frame.
  • Difficulty select's spacing: the list starts 75 below the header with 11 between rows, the PC block's numbers (BrowserY 226 against the header's 151, and its Window template's LineSpace), where the PS2's are 30 and 3. The PC fonts are as many units high as the PC's pixels, so the numbers carry over.

Movies

Escape skips a movie as on the PC (Video.DropVideo); Enter already does, as Cross. InputVideoSkipKey, checked beside the PS2 DropVideo action in ZVideoPlayer::FrameUpdate.

Character shadows

The PS2 version casts character shadows: ZOldDrawBase::HandleShadows picks up to eight caster and light pairs each frame (characters near enough to the camera, ranked by the light's strength at them), and ZOldDrawPS2::DrawShadow renders each caster from its light into a 256 x 256 silhouette that it projects onto the receivers. The port had never drawn them (ZOldDrawSDL did not override DrawShadow).

The port draws them as follows (port/engine/drawing/old/_sdl/shadowmapsdl.cpp, port/shaders/shadowmap.hlsl):

  1. The view sorts the PS2 version's shadow break after the opaque geometry, and HandleShadows chooses the pairs there (ShadowMapDraw keeps them).
  2. The character meshes the main view draws are recorded (ShadowMapRecordMesh), so a caster is drawn again from its light without skinning it twice; weapons and other attached geoms count as their owner's.
  3. At the view's post-filter point each caster goes into a 512 x 512 tile of a 16-bit float atlas, keeping per texel its nearest and farthest depth along the light (MIN and MAX blending). The light frustum is fitted to the caster's bounds; an environment light is treated as directional.
  4. A screen pass per caster rebuilds each pixel's root position from the depth buffer and projects it into the light. A pixel behind the whole caster is in its drop shadow; with self-shadowing, a pixel behind the caster's own front surface is in a lighter self shadow. Surfaces facing away from the light get none (the PC version's clamp(8 N.L)), a point light's range fades its shadows, and shadows fade out between 700 and 1000 units from the camera, as HandleShadows ranks them.
  5. The passes keep the largest value per pixel in a mask, and one pass multiplies the picture by it, as the PS2 merges its shadows through destination alpha.

The casters of a flush share one render pass on the atlas and their shadows one on the mask; the blends make the order irrelevant, so the picture is the same as with a pass pair per caster. Each shadow's pass covers only the pixels it can shade (ShadowScreenRect): its light's frustum through the caster's tile, from the caster's nearest vertex along the light to the end of the shadow (the PS2's shadow length past the farthest vertex, the light's range, or without end for the PC's drop shadows), clipped in front of the camera and projected. The scissor follows that projection in up to eight rows, and the multiply pass covers the union. In M06's lobby this leaves 14 to 22% of the picture for the lamps' and most characters' shadows (a shadow running towards the camera keeps more), and the frame's GPU passes went from 27 to about 18.

Receivers are found from the depth buffer instead of being drawn again, so transparent geometry receives no shadow. Picture-in-picture views get none.

With PC lighting (the PC version) a shadow is as dark as the PC draws it: its light's static shadow colour is the light left in it, at full strength, where the PS2's shadows are a grey half; and over the PC data's static shadows it adds only what the PC's shared shadow buffer (blend MAX) adds, so a character standing in a static shadow at least as dark as his own casts none (pc-data.md: Character drop shadows). Playing from a PC installation, the lights the PC data marks as casting no drop shadow (light control 0x4, such as the fill light over M02's bridge) cast none, whatever the setting.

Where the passes run

The view's post-filter sort entry runs after the 3D scene and before the 2D HUD. ZOldViewSDL::DrawPostFilter (port/engine/drawing/old/_sdl/zoldviewsdl.cpp) draws its passes in this order:

  1. Blob shadows, then character shadows (with the PC's projected static shadows on characters, PC lighting, in the same mask), then Instinct's highlights.
  2. Ambient occlusion.
  3. The game's post filter (bloom, depth blur, colour curves, noise).
  4. FXAA.

The brightness pass runs once, over the whole finished frame, before it is presented.

Each pass is clipped to its view's viewport, so picture-in-picture views get their own. The enhancement shaders are in port/shaders/enhance.hlsl. port/shaders/shaders.json lists them, and the generated shaderssdl_generated.cpp holds them like the other shaders.

Fast loads lets ZLoaderSequence finish once the mission is ready. The Gameplay setting starts enabled.