Reprisal Differences: HUD¶
This page records how Reprisal's in-game HUD differs from the PC HUD (src/hitman3/gui, with
the PC changes in PC Differences: GUI, Camera and Input),
and how each new or changed piece works. The HUD is still the PC's ZOSD and CIngameMap
classes; Feral rewrote ZOSD::DrawBufferViewUpdate, enlarged the sprite table, made the in-game
map draw a second time as a minimap, and positioned the new elements from an XML layout file in
the APK (assets/VirtualUI/osd.xml). Instinct highlights and gaze prompts are on
Instinct, Highlights and Gaze, the option screens on
Menus and Front End and the on-screen buttons on
Touch Controls.
Offsets such as ZOSD+0x3f0 are byte offsets in Reprisal's 64-bit objects; they do not match the
32-bit offsets in src/. Where a member corresponds to a named src/ member the name is given.
Summary¶
| Feature | PC | Reprisal |
|---|---|---|
| Health and suspicion | Two vertical bars in a frame, bottom left (ZOSD::SetHitpoints, DrawDisguiseBar) |
Two arcs round a minimap, or a redrawn horizontal "original bars" panel; both filled through an alpha-masked sprite |
| Map while playing | None (map screen only) | Rotating minimap in a corner: the in-game map's own scene, rendered by a top-down camera that follows 47 and turns with the camera; option MINIMAP (UseFeralMinimap, on) |
| Compass | Top right, always | Only when the minimap is off (the minimap turns instead); placed by osd.xml CompassGroup |
| Status alerts | None | GUARDS ALERTED / GUARDS SUSPICIOUS / TRESPASSING / CAUGHT ON CAMERA text for 5 s, a coloured ring on the minimap, a 2.65 s screen-edge flash, trespass and camera icons; option ALERTS (AllowAlerts, on) |
| Ammunition | Count only | NO AMMO / LOW AMMO / RELOAD / RELOADING tag under the screen centre, flashing for empty magazines; ShowAmmoWarnings (on) |
| Layout | Pixel positions computed in ZOSD::InitElementPositions, in PC window pixels |
osd.xml layout in px, % and dp, one version each for touch, keyboard and mouse, and gamepad, with notch insets |
| UI size | One texture pixel per window pixel | All 2D GUI scaled about the screen centre by W / TargetUIWidth (1366 phone, 1920 tablet); DisableUIScaling (off) |
| Fonts | Header, Menu, Text (+ 4k) |
New fonts (UseNewFont, on); the old ones as <name>_old; _ja and _ru variants per language |
| Map icons | PS2/PC icon textures | New icon art from scene groups FeralMapIconGroup and FeralLegendIconGroup, dead-body icons, scale MapIconScale 11 on the map and MinimapIconScale 18 on the minimap |
| Subtitles | Text with an offset outline, bottom of the screen | Scaled by SubtitlesScale (0.9), on a FeralOSDSubtitleBackground box; video subtitles in a custom view (UseCustomViewForSubtitles, on) |
| OSD tutorial blinking | Element blinks every 0.2 s | Every 0.4 s, and the matching on-screen button is highlighted too |
| Requiem (M13) | Health bar only | Also a heart-rate read-out with RequiemHeart / RequiemPulse pictures |
| Picture-in-picture | Right third or bottom third | On phones the left third, with the game view narrowed beside it; elsewhere a small window at the top left |
The Feral 2D layer: UI scaling and the layout file¶
UI scale¶
PC. The PC's GUI is laid out in pixels of its window and drawn one texture pixel per window pixel (see PC Differences: OSD and HUD).
Reprisal. Every 2D GUI position is passed through a global UI scale S (0x32992b4),
applied about the screen centre. The scale is computed by 0x11b3900 (called on start-up and on
resize from 0x1364898 and 0x14f1ed0):
- Read the device class from
FeralUIModeOverride/ the device (0x11b3608):phone= 1,tablet= 2,switch= 3,original= 0, otherwise 4 (asked of the platform,0x22450c0). - Target width
T=TabletTargetUIWidth(registered 1920) for a tablet, elsePhoneTargetUIWidth(registered 1366); the store is asked with the phone key as the fallback. A value of 0 or less gives 1366 (0x556). - For a screen
W x H: ifW / H <= 16/9(1.7777778),S = W / T; otherwiseS = H / (int)(T / 1.7777778), in single precision, where1920 / 1.7777778is exactly 1080 (in double precision it would be 1079). So the GUI is designed for aT x T/1.778virtual screen that is fitted inside the real one. UIScale()(0x11a0d00, 46 callers) returnsS, or 1.0 whenDisableUIScalingis on (registered off).
The conversions, used by every HUD element:
| Function | Does |
|---|---|
0x11b3fac |
virtual to screen: p = C + (p - C) * S for each axis, C = screen centre |
0x11b3e50 |
screen to virtual: p = C + (p - C) / S (the HUD calls this on pixel positions before drawing) |
0x11b3ce0 |
virtual screen width or height: W / S, H / S |
0x11b3a34, 0x11b3b34 |
the virtual coordinate of the right (bottom) screen edge, W (S + 1) / (2 S) |
0x11b4108, 0x11b4184 |
the same two conversions for one axis only (x = 0, y = 1) |
Nothing is done when DisableUIScaling is on. specifications.xml sets 1366 and 1920 for every
device ("Lower produces larger UI").
- Port: the Reprisal HUD style (
port/builtin_mods/hud_style/scripts/reprisal.lua, with its rules inreprisal_rules.lua) computesSthis way, in single precision, with the tablet width, 1920, on every screen, and sizes its elements in pixels of a 1080-line 16:9 screen timesS.DisableUIScalingis a constant (off). Only the HUD style's own elements are scaled; the game's menus and the PC's HUD keep the port's own HUD size.
How the HUD is drawn¶
Reprisal adds no separate 2D renderer for the HUD. Its new elements go through the two paths the
PC's ZOSD already uses, both inside ZOSD::DrawBufferViewUpdate, so they are part of the game
frame and sit under anything drawn later:
- OSD sprites.
ZDrawBuffer::DrawSpriteArray(draw-buffer slot0x30) with a sprite id from the table below, a sprite element (scale, colours, UVs), a position and a priority (7–15; higher is drawn on top). As on the PC,DrawBufferViewUpdateprojects a point 10 units in front of the OSD camera to get the size of one screen pixel (m_fPixelSizeX = 10 / (W * pers),m_fPixelSizeY = 2 |y| / H) and turns pixel positions into camera-space positions withCalcPos. Reprisal recomputes this whenever the draw buffer's size changes (ZOSD+0xd0c,+0xd10against the window), not only on the first frame, and then re-runs the layout (0x17697d8,0x176bb14). The layout gives screen pixels, so sprites are not scaled again. - Window objects. Text objects, pictures and frames from scene groups (
FontsGroup,FeralMapIconGroup,FeralPickupSilhouettes,StatusHighlightFrame, the warning backgrounds, the compass letters) are drawn with their own draw call (window slot0x400, or0x3f8with a priority) at a position the HUD first converts from screen pixels to UI units with0x11b3e50. The window system then maps UI units back to the screen about the centre (inferred from the conversion pair; the window renderer itself was not traced).
The minimap's map is a third case: the in-game map scene's own cameras render it (see below).
The Virtual Control Pad (Feral's touch buttons, see Touch Controls) and
Feral3D's overlays are drawn after the game frame by their own pipelines
(CFeralVirtualControlD3D9QuadPipeline, …TextureQuadPipeline, …FontPipeline), on top of the
HUD.
The osd.xml layout¶
PC. ZOSD::InitElementPositions hard-codes every position.
Reprisal. ZOSD's load (0x1767c7c) reads the layout VirtualUI/osd.xml (0x11baf64 with
the name osd, the loader 0x11babd0 builds VirtualUI/<name>.xml) into ZOSD+0x198. The
HUD then asks it for an element's rectangle by name (0x11ba9c4, 0x11ba5f0), choosing the
<Element> whose version matches the current input type (InputManager+0x14, 0x1508e38):
| Input type | Value | Layout version |
|---|---|---|
| Keyboard and mouse | 0 or 1 | version="1" |
| Gamepad | 2 | version="2" |
| Touch | 3 | the element without version (0) |
The input type names come from 0x1508e88 (KeyboardAndMouse, Gamepad, Touch).
Each length in the file is a sum of three parts (0x11b9df0), evaluated against the parent's size:
S is the UI scale above and dpi the screen density (0x11a0b98); so px are UI pixels, dp
are Android density-independent pixels (1/160 inch). min_* and max_* clamp the result;
horizontal_aspect="a" makes the width a times the height and vertical_aspect the height
from the width. alignment places the element against the point given by anchor (TL, TC, TR,
ML … BR). height-phone replaces height on a phone (0x11bbe58, suffixes -phone and
-tablet). With notch_adjust="true" an element anchored to a left column is pushed right to at
least the display cut-out inset, and one anchored to a right column is pulled left to at most
W - width - inset (0x11a0c34 gives the inset in UI units: the platform's inset times the
density, divided by S).
The file's elements (all positions in the order x, y):
| Element | Touch (version 0) | Keyboard and mouse, gamepad (1, 2) |
|---|---|---|
MinimapGroup |
(-40px, 40px) from the top right; height 200dp, clamped to 23–33% of the screen height; square | (40px, -40px) from the bottom left; same size |
health_icon, health_bar |
20 x 20 px at the group's bottom left, the bar 20 px above the icon | same |
minimap |
100% of the group | same |
alert_icon, alert_bar |
20 x 20 px at the group's bottom right | same |
CompassGroup |
(0, 2%) from the top right, 20% wide, 80 px high; compass 80 px high, compass_text 30 px down, 60 px high |
same (one version only) |
OriginalBarsGroup |
(0, 2%) top right, 20% x 20% (30% high on a phone); original_bars 90 px down, 36% high, aspect 3.973 |
(10px, -2%) bottom left; original_bars at the bottom, 36% high |
trespass_icon, camera_icon |
17% wide, square, at x 0 and 22%, 90 px below MinimapIconsAndButtonsGroup (40% down) |
17% wide at x 5% and 30% of the group's bottom |
minimap_button |
a zero-size anchor for the Virtual Control Pad's minimap button | — |
The comment in the file reads "Target 200dp (about 1.25 inch) but clamp to between 23% and 33% of screen size". On a touch screen the minimap and bars sit top right (the left thumb's stick and the right thumb's buttons take the bottom corners); with a keyboard or a pad they move to the bottom left, where the PC's health frame was.
- Port: the HUD style places the minimap, compass, original bars and the trespass and camera icons
from these elements (the touch version with the touch controls, else version 1), the tablet
sizes (no
-phoneheights). A dp is the display's scale (SDL's window display scale), the desktop's stand-in for Android'sdpi / 160, so on most monitors 200dp is under 23% and the minimap takes the 23% minimum. The PC has no display cut-out, sonotch_adjustdoes nothing. The left-handed touch layout, a port option, moves the minimap to the top left. The minimap picture's place inside its element (the arcs reaching 0.919 of the half side, the disc 0.043 of it above the element's centre) was measured from Reprisal's screenshots, which these rules reproduce at both 16:9 and 4:3.
The four-times assets¶
The HUD asks the system interface whether to use its high-resolution assets (virtual slot 0x198
of g_pSysInterface, inferred to be "4k UI"). With it, the bar sizes, menu offsets and pixel
constants of DrawBufferViewUpdate and InitElementPositions double (bar width 20 against 10,
height 76 against 38, crosshair 64 against 32), the 4k sprites of the table below are used, and
the health frame is HealthFrame_04.
The OSD sprite table¶
PC. g_asSpriteIdName (src/hitman3/hitman3/spriteidname.cpp) has 17 sprites.
Reprisal. The table at 0x32c8920 has 47 (0x2f) entries of 32 bytes (id, texture name,
draw mode, sprite type); 0x1768874 loads them into ZOSD+0x4c0 (12 bytes each: object,
width, height). The PC's ids 0–16 keep their meaning, with the 360 and 4k weapon textures; the
new ids:
| Id | Texture (tex:UserInterface/...) |
Use |
|---|---|---|
| 15 | Bitmaps/OSD/Pointers_01_OSD_H3_4k#Ingame Pointers |
crosshair, 4k |
| 16 | OSD/ui_compass_4k#CompassScale_PS2 |
compass strip, 4k (the 360 one is id 8) |
| 17–23 | OSD/UI_all_weapons_4k#... |
weapon, close-combat and item icons, 4k |
| 24, 25 | Xbox Live icons | unused |
| 26 | feral/minimap_assets#minimap_mask |
minimap mask |
| 27 | feral/minimap_assets#minimap_frame |
minimap frame |
| 28 | feral/minimap_assets#minimap_background |
minimap background |
| 29 | feral/minimap_assets#Ellipse 1 |
the alert ring round the minimap |
| 30 | feral/minimap_assets#alert_bar (masked by id 43 alert_mask) |
suspicion arc |
| 31 | feral/minimap_assets#health_bar (masked by id 44 health_mask) |
health arc |
| 32 | OSD/ui_health_stealth_bars#health_bar (draw mode with bit 1) |
— |
| 33 | feral/minimap_assets#health_bar (draw mode with bit 1) |
last-stand health arc |
| 34, 41 | feral/minimap_icon_camera#Camera, feral/minimap_icon_no_camera#Camera Grey |
camera icon, on and off |
| 35, 36 | feral/minimap_icon_trespassing#Transpassing icon, feral/minimap_icon_not_trespassing#Transpassing icon Greyed Out |
trespass icon, on and off |
| 37 | feral/new_original_health_bar#Ellipse 1 copy 4 (masked by id 46 health_bar_alpha) |
original-bars health |
| 38 | feral/new_original_tension_bar#Ellipse 1 copy 4 (masked by id 45 tension_bar_alpha) |
original-bars suspicion |
| 39 | feral/new_original_health_and_tension_frame#Option 1 copy 3 |
original-bars frame |
| 40 | feral/new_original_health_and_tension_background#Option 1 copy 3 |
original-bars background |
| 42 | feral/pointer_camera_new#Ingame Pointers |
the new crosshair |
Sprites 30, 31, 37 and 38 have a new sprite type (8, against the PC's 5 and 6); the loader passes
each one's mask texture with it. The draw call returns the sprite element, and the HUD writes a
fill level (0–256) to element +0x78 and a direction byte to +0x7c before it is rendered. The
level is used as an alpha-test reference against the mask's alpha, so only the part of the arc
whose mask value passes is drawn (IDXRS_ALPHAREF in the renderer; the shader side was not
traced, so the exact comparison is inferred). The byte at +0x7c is 0 for the minimap arcs and
1 for the original bars.
Other new OSD resources loaded by 0x1767c7c: HealthBarIcon_4k and AlertBarIcon_4k
(20 x 20), IllegalItemIcon_4k and DetectedDuringFriskIcon_4k (40 x 40), RequiemHeart and
InvincibilityIcon (60 x 60), RequiemPulse (50 x 50), the full-screen StatusHighlightFrame
and the subtitle box FeralOSDSubtitleBackground.
The minimap¶
PC. No minimap. The in-game map (CIngameMap, src/hitman3/gui/ingamemap.cpp) is a
full-screen window: the level's map group, a separate scene laid out with X and Z on the ground
and Y up, filmed by m_rMapCamera, m_rIconCamera and m_rReferenceCamera from
(fx, 8 * scale, fy) looking straight down (CIngameMap::UpdateMapPosition, matrix
{0,-1,0, 0,0,1, 1,0,0}), with icons drawn by CMapIconDraw.
Reprisal. The same map window is kept open in a "minimap" state while playing (flag
CIngameMap+0x688) and drawn into the minimap element of osd.xml. The option is MINIMAP
(InGame.Minimap), stored in the profile as UseFeralMinimap and copied to
ZHitman3+0x1159 (read by 0x16a769c; ZHM3Options slot 0x13 in 0x1764850).
Per-frame update¶
CIngameMap::FrameUpdate (vtable slot 31, 0x16fe52c; Ghidra did not decompile it, read from
the disassembly):
0x16ff1e4: animate the map's own open/close fade (+0x60ctowards+0x610at 6 per second) and, in the full map only, place its title and arrows.- If the minimap option is on and the map is in the minimap state:
- Floor selection (only while
+0x689is set): find the map group that contains 47 (0x1702320, the PC'sFindMapGroupwith Feral's special case for M03's three floors,M03_Staircase_Left_101/Right_101); if it differs from the current map (+0x630), switch to it (SetCurrentMap,0x16fcbb8) and re-centre.
- Floor selection (only while
- Camera (
0x16ffa1c, below). - Tap on the minimap. Read the touch position (input device 3, two axis reads). If it
lies within
0.5 * (0.153 * W / S)of the centre of the minimap rectangle (+0x660…+0x66c), set two request bytes (+0x50,+0x59) on the object atg_pHM3GameData+0x14a0. Inferred: on a touch screen, tapping the minimap opens the full map. - Icons:
0x16ffe10with the icon scaleMinimapIconScale(18). - Otherwise the full-map logic runs (Feral's pinch zoom and touch panning, not covered here).
The minimap camera¶
0x16ffa1c runs every frame in the minimap state:
scale = 10000 / MinimapScale // MinimapScale cached once; specifications.xml: 4.0
fov = 2 * atan((W / H) * 0.5625 * 1.4281479) // degrees; 1.4281479 = tan 55°, 0.5625 = 9/16
set on the map camera (+0x250) and the icon camera (+0x260)
p = 47's position (x, y, z)
yaw = the game camera's heading: a = -m[2][1] of the camera matrix, angle = atan2(a, ±sqrt(1 - a²)),
the sign taken from m[0][2]
R = rotate({0,-1,0, 0,0,1, 1,0,0}, (0, yaw, 0)) // the PC's top-down matrix, turned by yaw
off = rotate((W / H) * 586.69 * tan(fov/2), 0, 0) by (0, yaw, 0)
camera position = (p.x + off.x, off.y + 8 * scale, p.z + off.z)
set with R on the map camera, the icon camera and (if present, +0x408) the reference camera
player marker (+0x248): keeps its position, z set to -200; rotation (0, 0, -yaw)
map position (+0x4f4, +0x4f8) = (p.x, p.z)
So the minimap is the in-game map viewed from a height of 8 * 10000 / MinimapScale (20000 with
the shipped 4.0), centred near 47, rotated so that the direction the camera faces is up, with a
fixed 47 marker that turns against the map. The camera offset off keeps 47 at the same place in
the rendered view whatever the aspect ratio (the purpose is inferred). MinimapScale has no
registered default; the getter (0x11a6290) reads it only from the store, and the shipped
specifications.xml gives 4.0.
The map content is not clipped by a scissor: the minimap sprites are drawn over it in priority order (below), and the mask (id 26) hides the map outside the disc.
Icons on the minimap and the map¶
PC. CMapIconDraw draws each SIconInstance with the texture of its CMapObject::EIconType
from AllLevels/Map/Icons/*.
Reprisal. 0x16f8c00 (from CMapIconDraw's set-up, 0x16f9f74) builds a table of 30 icons
(0x309a850, indexed by EIconType), taking each name's last part (after / or .) and
looking up FeralMapIcon_<name> in the scene group FeralMapIconGroup, and the legend's
version in FeralLegendIconGroup; a missing one uses FeralMapIcon_Placeholder. Icons are
60 x 60. The names:
| Type | Name | Type | Name |
|---|---|---|---|
| 1 | Ladder | 16 | EnemyDead (InGame.EnemyDead, "ENEMY (DEAD)") |
| 2 | InterestPoint | 17 | NeutralDead ("CIVILIAN (DEAD)") |
| 3 | PowerSwitch | 18 | TargetDead ("TARGET (DEAD)") |
| 4 | Elevator | 20 | Police |
| 5 | Vehicle | 21 | PoliceDead ("POLICE (DEAD)") |
| 8 | ExitPoint | 23 | VIP |
| 10 | Hitman | 24 | VIPDead ("VIP (DEAD)") |
| 11 | Enemy | 25 | Staircase |
| 12 | Neutral | 26 | ICA |
| 13 | Target | 27 | GuardQuarters |
| 28 | OptionalTarget | 29 | OptionalTargetDead ("OPTIONAL TARGET (DEAD)") |
Types 0 (SewerHole), 6, 7 (stairs down/up), 9 (Pickup), 14, 15 (Animal), 19 and 22 (Helicopter)
have an empty name in the table, so they take FeralMapIcon_Placeholder (whose picture is in the
encrypted data). The dead-body names are localisation keys added by Feral (InGame.*Dead), so
bodies get their own legend entries.
Each frame 0x16ffe10 rebuilds the draw list: every icon of m_rtIcons that is visible on the
current map (0x17045b0, the PC's IsIconVisible) is added with its position (cached per
object, else read from the object), and every map text of m_rtTexts gets a text object (a
leading % means a literal string, otherwise a localisation key). The icon size is written to
CMapIconDraw+0x6558:
- Minimap:
MinimapIconScale(registered 18;specifications.xml18.0). - Full map:
MapIconScale(registered 11)* tan(0.4 * fov), so icons keep their screen size as the map zooms. The full-map zoom (0x17009f0) eases towards its target at8 * dtper frame, clamps it to[+0x520, +0x52c], and averages the last positions and zooms (a short history, for touch smoothing) before settingfov = 2 * atan(1 / ((1 / (2 * zoom)) * 4 * camera+0x68)).
People (guards, civilians, police, VIPs, targets) and bodies appear on the minimap because they
are the map's ordinary CMapObject icons; Reprisal does not filter them for the minimap. Whether
the level scripts show more icons than the PC's (for example all guards) could not be determined
from the code (it is in the encrypted scene data).
Drawing the minimap frame, arcs and status¶
When the minimap is on, ZOSD::DrawBufferViewUpdate (slot 56, 0x176ac28) calls 0x176c858,
which draws at the centre of the minimap element (ZOSD+0x394), in this order (draw priority
in brackets; higher is on top):
minimap_background(9).minimap_mask(10), with draw-mode byte+0x81set to0x7f.- Suspicion arc
alert_bar(12): fill =min(256, (1 - floor(suspicion) / 100) * 256), where suspicion isZOSD+0x3f0(the PC'sm_fCurrentDisguiseValue, 0–100). Direction 0. - Health arc
health_bar(12): fill =(1 - health) * 256, healthZOSD+0x2a4(the PC'sm_fCurrentHitpointsFactor, 0–1). Direction 0. - During Last Stand only (
ZHitman3+0x20a4, see Gameplay Rules): the second health arc, id 33 (13), fill(1 - health) * 255, direction 1. minimap_frame(14).- The status icons and alerts (below).
The arcs carry their own colours in their textures; the code does not tint them by value. The
health_bar and alert_bar elements of osd.xml give their size and place
(ZOSD::InitElementPositions' replacement, 0x17697d8: health at +0x7ac, scale +0x794;
suspicion at +0x84c, scale +0x834), with a fallback, before the layout is read, of
x = W - 0.153 W / S - 0.042 W / S - 15, y = 0.042 W / S + 0.153 W / S - 20.
When the minimap is drawn. Inside DrawBufferViewUpdate, after the menus and info displays:
if not (GUI flags (ZHM3Gui+0xec) bit 1): // set while a full-screen menu or map is up
in_hideout = scene name contains "hideout" and not DrawMinimapInHideout
if not in_hideout:
if UseFeralMinimap: draw minimap (0x176c858, last-stand flag)
else: draw original bars and compass (0x176cab8)
DrawMinimapInHideout has no registered default (off). So in the hideout neither the minimap nor
the bars are drawn.
- Port: the Reprisal HUD style draws its own minimap (
port/builtin_mods/hud_style/scripts/reprisal.lua) rather than filming the map scene. Rendering the map scene during play would mean keepingCIngameMap's cameras active beside the main camera, and Reprisal's way of confining them to the disc (the mask sprite against a map camera whose field of view is set for the whole screen) was not traced, so it could not be reproduced with confidence. The radar follows the rules that can be followed: it is placed and sized byosd.xml(above), turns so that the camera's heading is up, is drawn only while the GUI shows no full-screen menu or map, and not in the hideout (DrawMinimapInHideouta constant, off), with the minimap or else the bars and compass. It shows the map's own icons (CMapObjectpeople, bodies, targets, places and navigation symbols, vehicles included and the agency's places, type 26, with their ICA diamond; pickups, type 9, take the same diamond and sewers and stairs up or down their own symbols where Reprisal shows its placeholder; helicopters are left out) and the map's room names, only those on the map (floor) 47 is on, asIsIconVisiblepicks them (the map group that holds 47, else the one he was last in; names and icons other than a pinned target run on out to the rim and are cut by the disc and its notch, as Reprisal's mask cuts them, through one-pixel rows of rectangular clips), over the level's walkable areas from the pathfinding data instead of the map's pictures. Its range, 2000 units from 47 to the disc's edge, was measured from Reprisal's screenshots: the camera height8 * 10000 / MinimapScalecannot be turned into a scale without knowing the camera's viewport. 47 is drawn as a ring with a pointer the way he faces, 0.131 of the disc below its centre; the camera's sideways offset is not reproduced. A target beyond the disc is held at its rim, where Reprisal's map scene would simply leave it out of the disc (how its icons are confined was not traced). The arcs fill tofloor(suspicion) / 100and the health fraction, as the alpha test does. The arc, frame, mask and icon pictures are in the encrypted data, so their shapes and colours follow the screenshots; the suspicion arc is coloured green, yellow or red by the suspicion bar, as the screenshots show it, where Reprisal's picture carries its own colours.
The compass and the original bars¶
PC. ZOSD::DrawCompass draws the compass strip and the N/E/S/W letters at the top right; the
health and suspicion bars are vertical bars in the health frame (m_pHealthFrame) at the bottom
left.
Reprisal. With the minimap off, 0x176cab8 draws:
- Sets the bars' texture coordinates: 0 and 1 for keyboard, mouse or pad, swapped for touch, so
the panel is mirrored when it sits top right (the four sprite elements at
+0x103c,+0x1074,+0x10ac,+0x10e4). - At the
original_barselement (+0x3b8): background (id 40, priority 11), frame (39, 13), suspicion bar (38, 12; fillmin(256, (1 - floor(suspicion)/100) * 256), direction 1), health bar (37, 12; fill(1 - health) * 255, direction 1). - The compass (
0x176a31cturns the strip; the 4k strip, id 16, priority 11, at thecompasselement+0x384), then the four letter windows (North_4k,East_4k,South_4k,West_4k, with outlines, centred in alignment 0x44, priority 12) at+0x328,+0x334,+0x340,+0x34c. Their vertical place comes fromcompass_text. The load (0x1767c7c) makes the text objects from the 4k letter pictures and then swaps them pairwise as the PC'sZOSD::CompassInvertHackdoes. - The status icons and alerts.
The layout (0x176bb14) sizes the compass strip from the compass element (scale = element size
times the pixel size, position = element centre) and the icons from camera_icon and
trespass_icon; with the minimap on, the camera and trespass icons take the minimap's size
instead.
The PC's bottom-left health frame, disguise bar and the 6/8-pixel bars are not drawn in either mode.
- Port:
reprisal.luadraws bars and a compass strip when its MINIMAP setting is off, in theoriginal_barsandcompasselements ofosd.xml: bottom left, or top right and mirrored with the touch controls; the compass always top right. The bars fill as the arcs do. The bar, frame and compass pictures are in the encrypted data, so their insides follow screenshots.
Status alerts¶
PC. No alert text. Suspicion shows only as the disguise bar's height.
Reprisal. Option ALERTS (InGame.AND.Alerts), profile key AllowAlerts, copied to
ZHitman3+0x115a (0x16a7720). Two functions run after the minimap or the bars, every frame.
State flags (0x176dc84)¶
- Trespassing (
0x16a099conZHitman3): true when+0x1f38is clear, or a zone handle at+0x1f40(or+0x1f48) is set and differs from the one at+0x1fe0(+0x1fe8). These are the PC's trespass-zone members; the exact meaning of each was not traced. - On camera: the global
0x37473fc, set to 1 or 2 by the security camera's perception code (0x15ee2d8) when a camera sees 47 (inferred from where it is set), cleared byZHM3LevelControlslot 32 (0x17adca0) when a matching message arrives (inferred: the footage is destroyed).
Returned as flags = (trespassing ? 2 : 0) | (on camera ? 1 : 0).
If ALERTS is on, the icons are drawn (priority 15):
| Mode | Trespassing | Camera | Drawn |
|---|---|---|---|
| Bars | any | any | trespass icon on (35) or off (36) at trespass_icon; camera icon on (34) or off (41) at camera_icon |
| Minimap | yes | yes | both, scale 0.11, side by side: centred at minimap - (0.055 w, 0.39 h) and +0.11 w to the right |
| Minimap | yes | no | trespass (35), scale 0.139, at (cx, cy - 0.387 h) |
| Minimap | no | yes | camera (34), same place |
| Minimap | no | no | the grey trespass icon (36), same place |
w, h are the minimap element's scale. The minimap icons sit in the notch at the top (touch)
or the same relative place.
Alert text, ring and flash (0x176df5c)¶
Inputs: suspicion v (ZOSD+0x3f0), flags, last frame's flags (ZOSD+0x2a0).
if not AllowAlerts:
target colour = 0, text = "", state = 0
elif v > 75: text = InGame.StatusTextAlerted ("GUARDS ALERTED"), colour 0x7fda0000, sound 20, state 2
elif v > 50: text = InGame.StatusTextSuspicious ("GUARDS SUSPICIOUS"), colour 0x7fe9c616, sound 20, state 2
elif flags == 0: text = "", colour 0, sound 19, state 0
else:
if flags has camera:
if trespass bit newly set (prev & 2 < flags & 2): TRESPASSING (state 4)
else: InGame.StatusTextCamera ("CAUGHT ON CAMERA"), state 3
else: InGame.StatusTextTrespassing ("TRESPASSING"), state 4
colour 0x7fffffff, sound 18
forced = flags != prev flags
Then:
- Colour change. If not
forcedand the colour equals the current target (+0x17c) or the current colour (+0xe0c), nothing more happens this frame. Otherwise a 0.05 s blend starts from the current colour (+0x178= current,+0x180= 0.05);0x176b94cinterpolates each byte linearly every frame. - Text. Skipped when the new colour is the suspicious orange while the current one is the
alerted red (falling from ALERTED to SUSPICIOUS shows no new text). Otherwise the state is
written to the status display (
ZOSD+0x270, at its+0x8358).ZOSD+0x278names the active one of two displays, the info display (+0x268) and the status display. An empty text makes the info display active again and clears the timerZOSD+0x284; a text makes the status display active, sets the timer to 5.0 s and, if the text differs from the last (+0x288), writes it (0x16f6840, display mode 6).DrawBufferViewUpdatecounts the timer down by the frame time and, at 0, makes the info display active again. - Sound. With ALERTS on, the OSD sound is stopped and sound 18, 19 or 20 played
(
0x1302c04). In the PC'sEOSDSoundthese numbers areOSDSND_Hint_ExclamationMark,OSDSND_HintandOSDSND_Binocular_ZoomIn; Reprisal's sound table was not checked, so the sounds may differ. - Ring. In minimap mode, while the current colour's alpha is non-zero,
Ellipse 1(id 29, priority 11) is drawn round the minimap in the current colour: dark red when alerted, orange when suspicious, white when trespassing or on camera, at half alpha (0x7f). - Screen-edge flash.
StatusHighlightFrame(a full-screen window, drawn at (0, 8)): when the state is forced or the colour target changes, a new flash starts with timer 2.65 s (0.05 s if the new colour is 0). Each frame (0x176b94c→0x17672fc) withtthe time since the start:t < 0.05: blend from the frame's previous colour to the new one;0.05 <= t < 1.85: hold the new colour;1.85 <= t < 2.65: fade linearly to 0 over 0.8 s. A zero target just blends to 0 in 0.05 s. The flash is drawn while its alpha is non-zero.
The state also goes to the Virtual Control Pad (0x14ee814), which can highlight its buttons.
- Port:
reprisal_rules.lua(update_alerts) follows both functions: the flags, the choice of text (TRESPASSING whenever the camera flag is clear), the forced alert on a change of flags, the colour test, the skipped text from ALERTED to SUSPICIOUS, the 5 s text, the 0.05 s ring blend byte by byte, the flash from the flash's current colour (0.05 / 1.85 / 2.65 s, or 0.05 s to nothing) and the OSD sounds 18, 19 and 20 of the game's own OSD sound set. With WARNINGS (ALERTS) off nothing is drawn or played, and the minimap and bars show no status icons. The icons sit where the table above puts them. The ring and the flash are pictures in the encrypted data: the ring is a glow inside the disc's rim and the flash a gradient round the screen's edges, both in the alert colour at its alpha (0x7f). The flash reaches the top edge as on Reprisal: drawn 8 units down, as its window is placed, it left the top rows without it. The status display is drawn where0x16f5c78draws both displays, centred atW/2, 0.16 of the height down (0.18 on a phone), with its symbol there and the text pushed down below it; the symbol and text sizes were measured from a screenshot. While the status text shows, the game's info display (hints and objectives) is hidden, as Reprisal makes the status display the active one. The alerts are not run in the hideout.
Ammunition warnings¶
PC. ZWeaponDisplay shows the magazine and reserve counts; there is no warning text.
Reprisal. ShowAmmoWarnings (registered on; getter 0x11a343c). ZWeaponDisplay's draw
(0x16f38d0) calls 0x16f3ad8 when the weapon display is shown (+0x130), the preference is on
and GUI flag bit 1 is clear. The weapon display draws only in the states where
DrawBufferViewUpdate draws it (not in cutscenes or menus).
0x16f3ad8:
weapon = 47's current weapon (ZHitman3 slot 0x9d0)
if weapon is a firearm and 47 can use it (0x16e2c98: no special action, not climbing, …):
max = magazine size (weapon slot 0x620)
cur = rounds in the magazine (slot 0x610)
f = cur / max
spare = inventory has ammunition for it (0x16e3fc8 > 0) or the infinite-ammo cheat is on
auto = AUTO RELOAD option on (0x16a7584)
if max > 3 and f == 0 and spare and not auto: "RELOAD" (InGame.Reload), flashing
elif f == 0 and not spare: "NO AMMO" (InGame.NoAmmo), flashing
elif max > 3 and f <= 0.25 and spare: "RELOAD", steady
elif f <= 0.25 and not spare: "LOW AMMO" (InGame.LowAmmo), steady
else if 47 is reloading (0x1698e98: action state 0xc or 0xd, or +0x1b5b):
"RELOADING" (InGame.Reloading), steady
Drawing:
- Text object
+0x160(fontMenu4k, scale 0.8, centred, priority 20). - Alpha: flashing
(int)(155 + 100 * sin(6 * t))withtthe game clock in seconds (period about 1.05 s, alpha 55–255); steady 255. Colour: flashing white0xffffffff, steady black0xff000000. - Position:
x = vx + (W - vx) / 2wherevxis the left of the camera's viewport (0x1454804; the screen centre for a full-screen view),y = 0.549 * H, converted to UI units. - Background:
RedWarningBackgroundwhen flashing,YellowWarningBackgroundwhen steady (ZWeaponDisplay+0x168,+0x170, made in0x16f2d3c), scaled 1.6 about the text, 8 units up, same alpha.
So an empty magazine with reserve flashes white on red unless AUTO RELOAD is on (then a steady RELOAD); an empty weapon with nothing to load flashes NO AMMO; a quarter or less left shows a steady RELOAD (black on yellow) or LOW AMMO.
The same function in ZWeaponDisplay also colours the magazine part of the count: the text up to
and including / is drawn 0xffe9c616 (amber) and the rest 0x7fffffff.
- Port: the HUD takes the text from the game (
obm.player.ammo_warning,ReprisalAmmoWarninginreprisaloptionssdl.cpp), which follows the conditions with "47 can use it" as the PC'sZHM3WeaponsControl::IsReloadAllowed(the same queued actions, link action and movement tests as0x16e2c98), so RELOADING also shows with no firearm in hand. The tag shows while the game draws its weapon display with an item in it (obm.hud.weapon_display), at(W/2, 0.549 H); flashing, the white text and a red box both pulse at(155 + 100 sin 6t) / 255; steady, black on a yellow box. The two background pictures are in the encrypted data, so the boxes are plain rectangles in their colours, sized from screenshots. The panel's count is amber up to the slash and half-transparent white after it.ShowAmmoWarningsis a constant (on).
Action prompts and button glyphs¶
The choice of object and the gaze prompts are on Instinct, Highlights and Gaze
(including the pickup wheel, which writes PICK UP / EQUIP, InGame.ActionNamePickup and
InGame.ActionNameWear, under an item silhouette at scale 0.8). This section covers the text the
HUD writes.
The action menu label¶
PC. ZActionMenuBase::ConvertInputRefs and Draw show the actions with a button picture,
and on the PC a key cap with the key's first three letters (see
PC Differences: GUI and Input).
Reprisal. ZActionMenu slot 61 (0x17103dc) writes one label for the menu:
- If any listed action has a type other than 1 or
0x28, the label isInGame.MultipleActions("[UPDATED] MULTIPLE ACTIONS", the[UPDATED]being part of the shipped English string) and the button tag{ActionMenuOpen}; otherwise (all are floor choices)InGame.SelectFloor("SELECT FLOOR") with{ActionMenuFast}. - By input type:
- keyboard and mouse: the tag is expanded (below) and the label is
<glyph> <label>; - gamepad:
{ZW_SELECT}is expanded into the separate button text object, and both texts are white; - touch: the prefix is
InGame.Tap("TAP"), and the first characters (its length) are coloured0xffc2222c(red).
- keyboard and mouse: the tag is expanded (below) and the label is
The other new prompt strings follow the same pattern: InGame.Interact ("INTERACT"),
InGame.Press / InGame.Hold / InGame.Tap / InGame.TapButton as verbs before a glyph,
InGame.PlacePrompt / InGame.RetrievePrompt ("PLACE %s", "RETRIEVE %s") and
InGame.ContainerMenu_PlaceRetrievePrompt in the container menu (0x170d200, 0x1715cc0),
InGame.DisguiseTooltipText ("EQUIP %s") and InGame.Collect ("TAKE %s") for pickups
(0x171222c), InGame.Confirm / InGame.Close (0x1718a68), the throw and attack prompts
({ThrowItem}, {FeralThrowModeToggle}, {Melee}, {FireWeapon}, 0x1718bf4) and
InGame.TutorialTooltip ("Perform Action", 0x171a28c), drawn for the tutorial's highlighted
action menu.
Glyph substitution¶
PC. ZGameData::GetIcon turns {ZW_SELECT}-style tags into pad glyphs; the PC's fonts have
none, and key names are cut to three letters.
Reprisal. 0x13db090 scans a string and replaces every {tag} through
ZHM3GameData slot 34 (0x13dc36c):
- Gamepad or touch (input type 2 or 3):
0x13dbcc4returns the button glyph of the current pad (or, on touch,genericaction/InGame.Tap). - Keyboard and mouse (input type 0 or 1): the tag is looked up in two alias tables (
ZW_CANCELbecomesZW_SELECT2,startbecomesZW_START), then the key bound to that action is asked of the key-binding manager. A mouse button or special key becomes its glyph (0x1590a90). An ordinary key becomes akeyboard_blankkey-cap glyph followed by the key's name, upper case, in black (|ff000000colour code), withholdbefore it when the binding is a hold. Five accented keys (strokeLB,strokeLS,acuteNS,acuteSB,ogonekES) map to fixed characters.
0x176d888 returns which face button (1–4, from cross, circle, square, triangle) a
context action (PlaceRetrieve, DragBody, FireWeapon, PickupDisguise, PickupFast, or
ActionMenuFast) is bound to, swapping cross and circle for controller types 0x1a–0x1e
(inferred: Nintendo layouts); the HUD uses it to colour the prompts like the buttons.
- Port:
reprisal.luadraw_promptswrites each prompt as the button's glyph (a key cap with the key's name in black, or the pad's button) before the action's name, and on touch as TAP in0xc2222cbefore it. The MULTIPLE ACTIONS and SELECT FLOOR labels are not written: when slot 61 runs was not traced, so the port lists the menu's first action as the game's menu does. An open list shows only its own menu's entries, ending with its CANCEL: the pickup menu's prompt, which that list cannot choose, is left out while it is open. The glyph pictures are in the encrypted data; the port draws its own. The JUMP DOWN prompt on a ladder, drainpipe or climbing wall (InGame.FastDismountafterInGame.Hold) is written only with the modern pad layout, whose RS does it; Reprisal writes it for every input type ({crouch}on touch), but the port's keyboard and touch layouts have no such button.
Item silhouettes (FeralPickupSilhouettes)¶
PC. The weapon display shows a weapon sprite from UI_all_weapons (m_currentWeaponSID).
Reprisal. 0x157d66c loads AllLevels/pickup_silhouettes.zip and the scene group
FeralPickupSilhouettes (0x37460a0). 0x177116c draws an item's silhouette:
- Look up the window named after the item resource; if the weapon is silenced, try
<name>_Silencedfirst. If there is none, useWeapons\CC_FiberWire_01. - Take its
Picturechild, centre it (alignment0x44) and scale it by the caller's scale (0.6 in the weapon panel, 0.8 in the pickup wheel), or 0.5 for disguises, and 0.5 for theSixShooterexcept on a phone. - On a phone, scale the picture's size by 0.8.
- Draw it; the instances are pooled per item name (
ZOSD+0x700) and released every frame (0x1767a98).
After the minimap or the bars, the weapon panel (0x176cd98, drawn when ZOSD+0x2e, the PC's
m_bDrawWeaponDisplay, is set) shows the current item (id 1–0x140 from the weapon display's
+0x154) with this silhouette, scale 0.6, at the weapon display's position, followed by two text
objects (ZOSD+0x148, +0x150). The PC's weapon sprite is not drawn.
- Port:
port/hitman3/gui/_sdl/itemsilhouettesdl.cppmakes the silhouettes from the items' own models, sincepickup_silhouettes.zipis in the encrypted data. The HUD style's weapon panel shows while the game draws its weapon display (m_bDrawWeaponDisplay), placed against the bottom right corner and sized by the UI scale; its layout was measured from screenshots.
Crosshair and VIEW RETICLE¶
PC. ZOSD draws the crosshair sprite (id 14) while m_bDrawCrosshairs and g_lCrossHairs
are set.
Reprisal. DrawBufferViewUpdate keeps that rule for the weapon crosshair (now the 4k
pointer, id 15, element +0xa30). The new option VIEW RETICLE (InGame.AimIndicator, profile
key UseAimIndicator, ZHitman3+0x115c) adds a small reticle, sprite 42
(pointer_camera_new, element +0x1100), at the screen centre (W/2 - 16, H/2 - 16, then
+0.5) when:
- no weapon crosshair is drawn (
ZOSD+0x28clear),g_lCrossHairsis on and the crosshair is not forced off (ZOSD+0x34); - 47 is not aiming (
ZHitman3slot0x950); - 47 is in an ordinary state (
0x168d628false or the state is0x10000004), or else not reloading.
The reticle marks the gaze point used for interaction (see Instinct, Highlights and Gaze).
- Port: the HUD style's VIEW RETICLE setting (on) draws a reticle at the screen centre on the
same conditions (
obm.hud.view_reticle), except that "not aiming" is covered only by the weapon crosshair test, and "an ordinary state or not reloading" is taken as "not reloading".pointer_camera_newand the 4k crosshair are pictures in the encrypted data: the reticle is a thin ring and dot in the sprite's 32-pixel space, and the weapon crosshair stays the PC's.
Subtitles¶
PC. ZOSD places the subtitles at (48, H - 100), W - 144 wide, top-left aligned, and
draws an outline copy one pixel down and right (m_pSubtitlesOutline). SetSubtitle shows a
line for strlen * 0.05 + 2 seconds unless given a time, fading in and out at 15 per second.
Reprisal.
- Size. The subtitle text (
ZOSD+0x98) is drawn atSubtitlesScale(registered 0.9; getter0x11a5cc0), alignment 7, in the GUI's subtitle font. - Place (
0x17697d8): centred atx = W/2,y = H - b * H, width(W - 2 m W) / S, where the side marginmis 0.13 on a phone and 0.11 otherwise, and the bottom offsetbis 0.06 on a phone and 0.09 otherwise (ZOSDconstructor0x1767598; "phone" is0x11b35c4= 2). - Box instead of outline. The outline is gone;
FeralOSDSubtitleBackground(ZOSD+0xb8, alpha0x66= 40%, priority 11) is drawn 15 units below the text's anchor.SetSubtitle(0x176e7bc) keeps the PC's timing and sizes the box to(2 * w * SubtitlesScale + 30, 2 * h * SubtitlesScale + 30)from the text's extents. -
Movies (
ZBaseVideoslots 6 and 7,0x14c0e88,0x14c13ac; layout0x14c10d4): theFMVSubtitlestext uses fontMenu4k(throughUseNewFont),SubtitlesScale, alignment 7, the same margins (ZBaseVideo+0x1d0,+0x1d4, set in0x14c0a4c), and aFeralSubtitleBackgroundbox 15 units below at alpha0x66. WithUseCustomViewForSubtitles(registered on) theSubtitleWindowis moved into its own window-system view (id0x6b, created at layer 2 if missing) instead of view 0, so that it draws over the movie. -
Port: not changed. The subtitles are drawn by
ZOSD(port/hitman3/gui/_sdl/osdoverridesdl.cppandhudlayoutoverridesdl.cpp), outside the HUD style, and keep the PC's place and outline; the box pictures and the new subtitle font are in the encrypted data.
Fonts¶
PC. The GUI's fonts are the windows Header, Menu and Text of FontsGroup.
Reprisal. Every font request goes through 0x150ba38 with one of six names (Header,
Header4k, Menu, Menu4k, Text, Text4k; table 0x3065440):
- language 5: the
_ruvariant; language 7: the_javariant (ZSysInterface+0x9f4; the numbers are inferred to be Russian and Japanese from the suffixes); - otherwise, with
UseNewFontoff,<name>_old; with it on (registered on), the name itself.
So the redesigned fonts replace the PC ones under the old names, and the PC's are kept as _old.
Callers: the GUI set-up (0x157d66c), ZSimpleDisplay (Text4k, 0x16f206c),
ZWeaponDisplay (Menu4k), movie subtitles, the skip prompt (0x1732070) and the newspaper
(0x177ec28).
- Port: the new fonts are in the encrypted data. The HUD style's own text is set in Barlow Condensed Bold at nine tenths of its width, close to them; the game's own text keeps the PC's fonts.
Other HUD elements¶
Tutorial highlighting of OSD elements¶
PC. DrawBufferViewUpdate blinks the element named by m_eActiveOSDElement, toggling every
0.2 s.
Reprisal. The state is ZOSD+0xd24; it toggles every 0.4 s (game time in 1/1024 s units,
+0xd28), and each toggle is sent to the Virtual Control Pad (0x14ee814) so the matching
on-screen button flashes too. The elements: 0 action menu (with InGame.TutorialTooltip), 1
compass, 2 and 12 weapon display, 3 and 7 minimap, 4 hint, 5 exclamation mark and hint, 6 none.
- Port: not changed; the game's own OSD elements blink every 0.2 s as on the PC, and the HUD style's elements do not blink.
The info display, hints and headlines¶
The info display (hints, objectives, the exclamation mark) keeps the PC's logic. Its position is
the PC's (W/2 - 17, with the M00 adjustment of +38 / -16), doubled in the 4k layout; its texts
use Text4k. A second info position, (W - 300, 100), is new (its user was not identified).
When drawn (0x16f5c78, for the info and the status display alike), the text is placed at the
screen's centre, 0.16 of the height down (0.18 on a phone), moved down by its picture's height
plus 8 when it has one, and drawn again one unit right and down as its shadow.
The newspaper headlines are a menu (see Menus and Front End).
Picture-in-picture camera¶
PC. ZHM3CameraEventCameraClass::UpdateViewportSize slides the PIP view in from the right
(the right third, full height) or the bottom (the bottom third) over 0.25 s, then grows its
border. The option is PipCamEnabled (the PC already had it).
Reprisal (0x1631c28 with 0x1630f88):
- Bottom (
eBottom): as the PC. - Right (
eRight) on a phone: the PIP takes the left third (xfrom 0 tomax(10, W/3 * p),pthe slide fraction), and the main camera's viewport is narrowed to the remaining two thirds ((p/3, 0) – (1, 1)), so the PIP never covers the game view. Not when the camera mode is 2 or the PIP is disabled (+0x21d). - Right on other devices: a window at the top left, from (44, 44) to
(44 + 0.136 W p, 44 + 0.28 H p).
The menu option is PIP CAM (PipCam / PipCamEnabled, ZHM3Options slot 1, read from the event
camera's +0x21d). The security-camera overlay (ZOSD::UpdateSecOverlay, Reprisal 0x176d084)
is the PC's, except that it is placed at the overlay's bottom edge (YMax) where the PC passes
the height.
Last Stand and Requiem¶
- Invincibility icon. After a Last Stand, while the game time is before
ZHitman3+0x1a8c(set to now plusLastStandInvicibilityTime),InvincibilityIcon(ZOSD+0x170) is drawn at the minimap rectangle's top-left corner plus (-15, +30). - Last Stand arc. See the minimap's draw order above; the progress percentage goes to the OSD
through
0x176c72c. - Requiem heart rate (
0x176d4a0, whileZOSD+0x35or+0x4cis set, the PC'sm_bM13OnlyHealthstate): a textBPM = (int)(ZHitman3+0x1aa4 / +0x1aa8 * 130 + 50)(a leading zero is added below 100) at (300, 100),RequiemHeartat (275, 50) andRequiemPulseat (225, 87.5), all in UI units.
Rating, hit feedback and the frisk icons¶
- Rating. Reprisal's HUD has no live rating;
ZStatLevelRatingTextand its siblings are end-of-mission screen elements (see Menus and Front End). The port's live rating beside the minimap (reprisal.lua,draw_rating_beside) is its own addition, shown only with the HUD style's LIVE RATING setting, which is off and which the Reprisal preset turns off; with it off the Reprisal style hides the port's rating band too. - Hit and damage feedback. No new damage indicator was found in
ZOSD; health shows only in the arcs or bars. IllegalItemIcon_4kandDetectedDuringFriskIcon_4k(40 x 40) mark items in the inventory (InGame.IllegalItem,InGame.DetectedDuringFrisk,ZFeralIllegalItem,0x172cdd8).
Preferences and options¶
| Key | Kind | Default | Read by | Effect |
|---|---|---|---|---|
MinimapScale |
preference | none (spec 4.0) | 0x11a6290 |
minimap camera height 8 * 10000 / value |
MinimapIconScale |
preference | 18 | 0x11a637c |
icon size on the minimap |
MapIconScale |
preference | 11 | 0x11a6468 |
icon size on the full map, times tan(0.4 * fov) |
DrawMinimapInHideout |
preference | none (off) | 0x11a6554 |
draw the minimap or bars in the hideout |
ShowAmmoWarnings |
preference | on | 0x11a343c |
ammunition warnings |
SubtitlesScale |
preference | 0.9 | 0x11a5cc0 |
subtitle text scale, in game and in movies |
UseCustomViewForSubtitles |
preference | on | 0x11a9968 |
movie subtitles in their own view |
UseNewFont |
preference | on | 0x11a5f90 |
new fonts; off uses <font>_old |
DisableUIScaling |
preference | off | 0x11a6190 |
UI scale fixed at 1 |
TabletTargetUIWidth |
preference | 1920 | 0x11b3900 |
virtual UI width on tablets |
PhoneTargetUIWidth |
preference | 1366 | 0x11b3900 |
virtual UI width on phones and others |
UseFeralMinimap |
profile option MINIMAP | on | ZHitman3+0x1159 |
minimap, or bars and compass |
AllowAlerts |
profile option ALERTS | on | ZHitman3+0x115a |
status icons, alert text, ring, flash, sounds |
UseAimIndicator |
profile option VIEW RETICLE | on | ZHitman3+0x115c |
centre reticle |
PipCamEnabled |
profile option PIP CAM | on | event camera +0x21d |
picture-in-picture |
Autoreload |
profile option AUTO RELOAD | on | 0x16a7584 |
changes the empty-magazine warning |
The profile options' defaults are the ones ZHM3Options (0x1764850) passes when it reads them
before a ZHitman3 exists.
FeralMapIconGroup, FeralLegendIconGroup, FeralPickupSilhouettes,
FeralSubtitleBackground, FeralOSDSubtitleBackground and FMVSubtitles are scene objects in
the encrypted data, not preferences.
Unresolved¶
- The arc and bar fill: the alpha-test comparison and the meaning of the direction byte
(
+0x7c) were inferred from the structure, not traced into the renderer. - How the map scene's coordinates relate to the world's: the minimap camera uses the first and third components of 47's position directly as the map's X and Z, as the PC's map uses its map position; whether the map scenes are built in world units was not checked.
- The purpose of the minimap camera's sideways offset (
(W/H) * 586.69 * tan(fov/2)) and the exact on-screen position of 47 inside the disc. - Which people and bodies the level scripts register as map icons (the scene data is encrypted); whether Reprisal shows more of them than the PC.
- Reprisal's OSD sound table: whether sounds 18–20 are the PC's hint and binocular sounds.
- The trespass test's members (
ZHitman3+0x1f38…+0x1fe8) and the camera flag's clearing message were not mapped tosrc/names. - The user of the second info position
(W - 300, 100). - The status display's font and alignment (
ZOSD+0x268,+0x270).