Skip to content

Reprisal Differences: Gameplay Rules

This page covers Reprisal's changes to the game's rules:

  • how fast Hitman crouch-walks;
  • how the fibre wire and the close-combat moves pick their target;
  • the last stand;
  • ammunition and reloading;
  • the pickup radii;
  • saving and autosave;
  • the cheat, debug and unlock switches;
  • the per-level fixes and the engine-logic switches.

Addresses are Ghidra's (ELF virtual address + 0x100000). Lengths are in game units (100 = 1 m). Times on the game clock are kept in ticks of 1/1024 s, as on the PC. A "pref" is a Feral preference (see Reprisal Differences). An "option" is a player setting kept in the profile's option store; the PC already has some of these, and Feral added others.

Many of the functions on this page lie in code regions where Ghidra did not create functions. They are missing from build/reprisal/ghidra/index.tsv and from the decomp tree, so they were read from llvm-objdump output in the obm-build container. Their addresses are still given in Ghidra form.

Summary

Feature PC Reprisal
Crouch-walk speed Speed taken from the animation cycle Forward crouch and sneak speeds ×1.5 (CrouchSpeedPercent 150); the animations play faster to match
Fibre wire target The close-combat front enemy (box 30 × 60 × 80, centre 70 ahead); Hitman ≥ 120° round from the target's front; target ≤ 45° from Hitman's facing Option AutoCrouchWhenTighteningFiberWire, relabelled SIMPLIFY STRANGLE, with values 0/1/2 and default 2. At 2 ("Enhanced"): box 140 × 60 × 180, centre 30 ahead; the target nearest the camera's heading within 90° wins. At 0/1: the PC box, but measured against the camera's heading with the PC's 45°
Close-combat front enemy (push, knock out, human shield) Box 30 × 60 × 80, centre 70 ahead Box 110 × 60 × 130, centre 20 ahead (CloseCombat*): the same reach ahead, 110 to the sides and behind
Last stand 3 head shots on every difficulty; 2.0 s; 2.0 s of invulnerability after 1/1/2/3 head shots (Rookie/Normal/Expert/Pro); 3.0 s on Rookie; 5.0 s of invulnerability after (LastStandInvicibilityTime); a one-time tutorial popup; an objective line; START skips
Auto reload Always reloads when the magazine runs dry Option Autoreload (AUTO RELOAD, default on); off means only a reload press reloads
Out-of-ammo hot-swap None Option OutOfAmmoHotSwap (default on): 0.8 s (OutOfAmmoHotSwapDelay) after the last round, the inventory opens; a popup explains it the first time
Ammunition warnings None RELOADING / RELOAD / NO AMMO / LOW AMMO, with a 25 % threshold (ShowAmmoWarnings)
Item physics Steps of at most 0.05 s, damping 0.96 per 0.05 s Coins (and, at value 2, everything) step at 1/60 s with damping 0.94 per step (UseFramerateIndependentItemPhysics 1)
Pickup radius Ammunition 60 (45 off-axis), people 140, items 80 Ammunition 60/45, people 140, items 140 (PickupRadius*)
Save limits Rookie unlimited, Normal 7, Expert 3, Pro 0; counts the saves made in the mission The same table; counts the save files present (slots are cleared at mission start); new popup and header texts; no saving while Hitman is busy
Save in M13 and the hideout Disabled The same; EnableSavesInM13 (off) lifts the M13 lock
Autosave None At mission start, every AutosavePeriod (300 s) and when the app is suspended; a Continue entry
Clearing saves Never ClearSavesOnMissionLoad (on) deletes slots 0–8 when a mission starts from the menus
Cheats EnableCheats option, keyboard C or L1-R1-R2 The pref writes the option; a ZFeralOpenCheats menu button; god mode, infinite clip and invisibility preset from prefs
Unlocks and debug — LevelsUnlocked, UnlockAllUpgrades, SkipBriefings, DisableCutscenes, ShowHiddenObjectives, EnableDemoWeapon, SelectLevelOnIncompleteM00, NoTutorialOnCompleteM00
M06 bar music The event track is lost on entering a bar; the rock bar blocks action music FixM06BarMusicPriority (on) saves the event track and resumes it; action music is allowed in the rock bar
M12 — DisableM12SprinklerHack (1 as shipped: the hack is off); the M12Optimization* keys are never read
Level animations Loaded by ZHitmanAnim scene objects M06 and M12 also load animationdatabase#M06_Hitman / #M12_Hitman from the level control
Script scheduling Water-jar priorities, a cap of 1,000,000 ticks Feral's round-robin scheduler (UseFeralScriptScheduler); scripts do not step on their first frame (EnableInitialScriptFrameUpdate 0)
Time source clock() CLOCK_MONOTONIC (UseImprovedTimeDelta 1)
Hideout No popup EnterHideoutTutorialPopup while the next scene is the hideout
Bribes Ticking civilians greys out the other two It also unticks them
Feral classes absent from src/ — ZHitmanActionDisarmHitman, ZHitmanActionConcealWeapon and ZHitmanActionChargeHitFlashlight are never constructed; ZCheckActorClose and ZAttachedItemInZoneChecker are live scene objects

Movement

Crouch-walk speed (CrouchSpeedPercent)

PC. ZHM3MovementPrimaryMove::GetAnims (src/hitman3/characters/zhitman3movement.cpp) sets up each walking animation with ZAnimVariationDefs::SetAnimHandle. That call runs SetAnimProperties, which sets the animation's speed:

m_fSpeed = |cycle distance| / ((frames - 1) × 2.4)

The sneak blends (m_BlendSneak*) mix a slow crouch animation with a fast sneak animation. ZAnimMoveBlend::GetSpeed interpolates between them by the stick's deflection:

speed = slow.m_fSpeed + (fast.m_fSpeed - slow.m_fSpeed) × prc

The movement code sets the length of Hitman's velocity to that speed. CalcMovementAnimPrc then advances the animation by distance moved ÷ cycle length, so the feet stay in step.

Reprisal. At 0x16cbc10 in GetAnims, between the crouch animation handles and the m_CrouchWalk.Add calls, Feral inserts:

scale = CrouchSpeedPercent / 100            // pref, int, default 150 → 1.5
m_SneakForward.m_fSpeed  *= scale           // "/Sneak/Forward"  (member +0x4d0)
m_CrouchForward.m_fSpeed *= scale           // "/Crouch/Forward" (member +0x7a8)

Only the two forward animations are scaled. These are the two ends of m_BlendSneakForward, so forward crouch-walking and sneaking, at any stick deflection, are 1.5 times as fast. Strafing, backing off, the diagonals, turning and dragging a body keep the PC's speeds.

The scaled value lasts: GetActiveAnimHeader (0x14b3e5c) recomputes m_fSpeed only for the stand and ambient animations, never for these two. The cycle length is unchanged, so the animation plays 1.5 times as fast to cover the longer distance.

assets/specifications.xml sets CrouchSpeedPercent to 150 in its unconditional DefaultSettings block. No other movement or animation constant differs in GetAnims. For the level-specific animation collections, see Level-specific Hitman animations.

Port: ReprisalApplyFrameOptions in port/hitman3/hitman3/_sdl/reprisaloptionssdl.cpp reruns SetAnimProperties on m_SneakForward and m_CrouchForward only and multiplies their speed by CrouchSpeedPercent / 100 every frame when REPRISAL HANDLING is on. The pref is the named constant CROUCH_SPEED_PERCENT (150, its registered default and the specifications.xml value). That matches: forward crouch-walking and sneaking at any deflection are faster, and every other animation keeps the PC's speed.

Fibre wire

PC

When the fire button is released after tightening, ZHitmanActionStrangulate::Update (src/hitman3/characters/zhitman3actions.cpp) takes the target from ZHitman3::m_rNearestFrontEnemy. That is the close-combat front enemy, found each frame by ZPlayer::GetNearestEnemy in a box with half-extents (30, 60, 80) whose centre is offset (0, 0, 10 − 80) = (0, 0, −70) in Hitman's root frame (ZHitman3::ClassFrameUpdate). The box reaches 150 ahead of Hitman and 10 behind him.

The search keeps only actors that meet all of these:

  • the actor's root geom name contains ground;
  • the actor has an actor state and is a valid enemy;
  • the actor's centre + 25 is inside the box;
  • a line from head + 20 to head + 20 is clear of background and sight collision.

The nearest such actor wins. TargetInFront then requires all of these:

  1. the level control allows it (OnHitmanMayStrangulateTarget);
  2. |target.GetAngleToObject(Hitman)| ≥ 120°, so Hitman is in the target's rear 120° sector;
  3. the horizontal direction from Hitman to the target lies within 45° of Hitman's facing (the negated first row of his root matrix).

The level control's CanHitmanFiberWireTarget must also allow the kill. The target must be human, not asleep, not near death and not unconscious.

Reprisal: the SIMPLIFY STRANGLE option

The PC option AutoCrouchWhenTighteningFiberWire (a bool) became an int with three values. Its label is overridden to SIMPLIFY STRANGLE (Override.AllLevels_Interface_Options_AutoCrouchWhenTighteningFiberWire in Localizable_Game.strings).

The ZHitman3 constructor (0x167d9c0) reads it with a default of 2 and stores the value at +0x2128 and value != 0 at +0x2127. +0x2127 is the PC's auto-crouch flag. Changing the option in game goes through ZHM3Options slot 1, option index 2, to setter 0x168d074. The analytics code (0x17d54f4) names the values SimplifyStrangle: Disabled, Classic and Enhanced.

Value Name Auto-crouch while tightening Target search
0 Disabled off The PC box; facing measured from the camera, 45°
1 Classic on The PC box; facing measured from the camera, 45°
2 Enhanced (default) on Feral's box and camera-weighted choice (below)

The target check (0x168ce4c)

This function replaces TargetInFront. Its arguments are (Hitman, target, optional out-angle).

if target == null: return false
if SkipOdevStrangleChecks: return true           // pref, default 0
if levelControl && !levelControl.OnHitmanMayStrangulateTarget(target): return false
if mode == 2:  maxFacing = StrangleMaxFacingDelta (90),  sector = StrangleSectorAngle (120)
else:          maxFacing = 45,                           sector = 120
if |target.GetAngleToObject(Hitman)| < (360 - sector) / 2: return false   // 120° → 120°
d   = horizontal(target root − Hitman root), normalised
cam = (row 0 of the active HM3 camera's own matrix).xz, normalised
angle = acos(clamp(d · cam)) in degrees           // 0 if > 1, 180 if < −1
*outAngle = angle
return angle <= maxFacing

The active HM3 camera is held at game data +0x30f0. Every camera that is not the HM3EventCamera registers itself there (0x162a768); this is the PC's ZHM3GameData::m_pMainCamera, set in ZHM3CameraClass's constructor. 0x1458d74 copies the camera's own matrix (ZGEOM::GetMat, not its root matrix). The game's vmmul takes m[0..2] as the image of the local Z axis, so row 0 is the camera's local +Z, the way it looks: ZHitman3::IsItemActionInFront takes the first-person camera's heading as (0, 0, 100) in the camera's frame.

With the default sector of 120 the rear-sector test is the PC's. The facing test, however, is measured against the camera's heading in every mode, not against Hitman's facing; on the PC only Hitman's facing counts. SkipOdevStrangleChecks skips the level-control veto and both angle tests. The CanFiberWire veto and the species and state tests in Update still apply.

specifications.xml has a Patch_1_2 block, applied on every device, that sets StrangleMaxFacingDelta to 90 with the comment "Default changed from 45 to 90 for patch". The release notes in the strings say "Improves the hitbox detection when using the Fiber Wire" (ReleaseNotes.ImprovesFiberWire).

The target search (0x168b41c)

This runs every frame from ZHitman3::ClassFrameUpdate (call at 0x1689318). It writes the strangle candidate to Hitman +0x2110, which is a field separate from the close-combat front enemy.

  • Mode ≠ 2. Call GetNearestEnemy (ZHitman3 slot 393) with the PC box: half-extents (30, 60, 80), offset (0, 0, −70).
  • Mode 2. The three prefs are read once and cached as floats:
D = StrangleMaxDistance (40); B = StrangleBackwardsOffset (140); W = StrangleBoxWidth (140)
half-extents = (W, 60, D + B)            = (140, 60, 180)
offset       = (0, 0, B + 10 − (D + B))  = (0, 0, 10 − D) = (0, 0, −30)

So the box reaches 2D + B − 10 = 210 ahead of Hitman, B + 10 = 150 behind him, and 140 to each side. B lengthens the box equally at both ends. A larger D moves it forward.

The groups in the box are fetched through the collision base's GetGeomsInBox (GT_Groups, background mask). Each candidate goes through the same tests as in GetNearestEnemy:

  • the name contains ground;
  • the actor type test passes and GetActorState is non-zero;
  • IsValidEnemy;
  • centre + 25 is inside the box;
  • the head-to-head line (bone 7, each end + 20) does not hit GT_StdObjs with mask 0x22.

A candidate that passes is then given to 0x168ce4c. The candidate with the smallest camera angle wins (the starting best is 360), not the nearest one.

ZHitmanActionStrangulate::Update (slot 5, 0x16b320c) is the PC's apart from three changes:

  • the target comes from +0x2110;
  • the in-front test is 0x168ce4c;
  • the stored target is a pointer, not a REF.

Its states, lineup offsets (−85 chair, −40 quick, −50 normal) and the choice between high and quick strangles are the PC's.

Other strangle helpers

  • 0x168b9a8 also runs every frame. It calls GetNearestEnemy with the mode-2 box, whatever the mode, and stores the nearest actor at +0x2118 and |actor.GetAngleToObject(Hitman)| at +0x2120. Feral's gaze and context-action code reads these two fields:

    • 0x16ab27c offers action 0x13 when that angle is more than 140° and the actor is awake and interruptible;
    • 0x16e41f8 is the tap-on-actor path.

    See Instinct, Highlights and Gaze.

  • 0x168caec and 0x168ccd8 are "can strangle now" predicates for Feral's prompts. Both need the +0x2110 candidate and a Hitman state outside {10–15, 17, 18, 23}. They also need the level control's CanHitmanFiberWireTarget, and the 0x168ce4c test when the mode is not 2. The target must be human, awake, not near death and not unconscious. The first then checks that the item in Hitman's right hand has type 0x26 (the fibre wire). The second checks the item selected in the inventory instead.

Port: ZHitmanActionStrangulate::Update in port/hitman3/characters/_sdl/strangleoverridesdl.cpp, with the arithmetic in port/hitman3/hitman3/_sdl/reprisalrulessdl.h (SIMPLIFY STRANGLE, simple_wire). The option has Reprisal's three values, Disabled, Classic and Enhanced, plus Off, which is the PC's fibre wire and the built-in mod's default. The HUD style's Reprisal preset sets Enhanced, Reprisal's default. What matches:

  • The modes. Disabled turns the auto-crouch off and Classic and Enhanced turn it on (ReprisalApplyFrameOptions); Off gives back the player's Controls menu choice. Disabled and Classic take the PC box's front enemy and test it with 0x168ce4c at 45°/120°; Enhanced searches its own box, tests each candidate at 90°/120° and keeps the smallest camera angle (starting at 360).
  • The camera vector. Row 0 of GetHM3GameData()->GetMainCamera()'s own matrix (GetMat), flattened; zero vectors stay zero and the cosine is clamped as in Reprisal.
  • The prefs. SkipOdevStrangleChecks (off), StrangleMaxDistance (40), StrangleBackwardsOffset (140), StrangleBoxWidth (140), StrangleMaxFacingDelta (90) and StrangleSectorAngle (120) are named constants at their registered defaults, and the box is built from them as above.

Checked in the game (M05, Enhanced): the main camera's row 0 is the way the camera looks (it agrees with the drawn view), a guard facing 47 is refused by the rear-sector test, and a guard with his back to 47 at 86° from the camera's heading is taken, which Classic's 45° would refuse.

What still differs: the port picks the target when fire is released, not every frame into +0x2110, which gives the same target on that frame. The "can strangle now" predicates (0x168caec, 0x168ccd8) and the +0x2118 candidate serve Feral's touch prompts, which the port does not draw. The PC's own action-menu strangle (elevators) is unchanged, as in Reprisal.

Close combat

The front-enemy box (CloseCombat*)

PC. The push, knock-out (unarmed hit) and human-shield moves all use m_rNearestFrontEnemy. ZHM3ActionControl::Update and UpdateHitmanActions (src/hitman3/characters/zhitman3actioncontrol.cpp) offer a human shield when all of these hold:

  • the front enemy is human and awake;
  • it can be interrupted;
  • it is not in an elevator move, not near death, not sitting and not ragdolled;
  • |enemy.GetAngleToObject(Hitman)| > 140°;
  • Hitman holds a pistol or revolver.

The box is half-extents (30, 60, 80) with centre offset (0, 0, −70), as given above.

Reprisal. ZHitman3::ClassFrameUpdate (0x16892e4–0x1689334) builds the box from three prefs, read once and cached at 0x37430f4/f8/fc, and stores the result in the PC's member (+0x10f0):

D = CloseCombatMaxDistance (30); B = CloseCombatBackwardsOffset (100); W = CloseCombatBoxWidth (110)
half-extents = (W, 60, D + B)   = (110, 60, 130)
offset       = (0, 0, 10 − D)   = (0, 0, −20)
m_rNearestFrontEnemy = GetNearestEnemy(offset, half-extents)

The box reaches 2D + B − 10 = 150 ahead (the PC's reach), B + 10 = 110 behind, and 110 to each side, where the PC has 10 behind and 30 to the sides. The choice among the candidates is still the nearest one (GetNearestEnemy).

This box applies in every SIMPLIFY STRANGLE mode. The angle and state conditions of each move are unchanged, so in practice Hitman can grab or push someone standing beside him or slightly behind him, provided that person's back is towards him.

Port: port/hitman3/characters/_sdl/reprisalhandlingsdl.cpp (REPRISAL HANDLING) swaps in the box built from the three prefs as named constants at their registered defaults: (110, 60, 130) at (0, 0, −20). That matches.

Classes absent from src/

Class What it is Live? Origin
ZHitmanActionDisarmHitman A ZLnkAction with action ID 0x10000013. Its update registers DisarmFinished from zhitman3actions.cpp (slots 3 0x16b38a4, 5 0x16b3a48; constructor 0x16b387c) No. Nothing calls the constructor (no branch to it and no pointer), and ZHitman3::CreateLnkAction (slot 235, 0x1690888) sends 0x10000013 to the base class Not determinable. The PS2 action enum has no 0x10000013, and the code sits in IOI's action file
ZHitmanActionConcealWeapon A ZLnkAction with action ID 0x1000000e, which is HITMANACTION_Reserved0E in src/. Slots 3 and 4 return 1 and 0 (constructor 0x16b6c54) No. Never constructed; CreateLnkAction returns null for 0x1000000e Probably IOI's: the PS2 action control still has eConcealWeapon and the "ConcealWeapon" name
ZHitmanActionChargeHitFlashlight A close-combat weapon action in the ZHitmanActionCloseCombatHit family. It overrides CalcImpactFrame = 3 + 10 × (+0x30) (0x16b2970); GetHitFromToSize with z 40, z −100 and size 40 (0x16b2984); HandleSpecialAttack → false (0x16c228c); and its tighten animation is taken from Hitman +0x1420 (0x16b29b4). Constructor 0x16b2910 No. Never constructed; no CreateLnkAction case creates it Not determinable
ZCheckActorClose A scene event (CheckActorClose, ZActor_CheckActorClose; source hitman3/background/checkactorclose.cpp, which is not in src/). Update slot 31 (0x15b9a54); constructor 0x15b9c80 Yes (the scene data creates it) Not determinable
ZAttachedItemInZoneChecker A ZSTDOBJ scene object, registered by _INIT_351 (0x15a27b4). Update slot 88 (0x15a2518) Yes Not determinable

None of these touches the close-combat box.

ZCheckActorClose checks its owner's surroundings in a staggered way:

  • Each instance takes a slot from a global counter (0x373abd8). Only the instance whose slot equals a rotating global index (0x373abdc) does work in a given frame, so the instances take turns.
  • While its cooldown (+0x290, starting at 3.0 s) is above zero, it counts the cooldown down by the frame delta.
  • Otherwise it queries the geoms within its radius (+0x7c) around the owner (+0x38) with query mask 0x20 (0x12e9860).
  • For the first actor that is not the owner and is in its filter list (+0x50), it sends the owner the message ActorClose with that actor, then resets the cooldown to +0x78.

ZAttachedItemInZoneChecker watches for Hitman in a box:

  • It acts only after Hitman has moved more than 5.0 units since its last check. The stored position starts at −1.98 × 10⁷.
  • It transforms Hitman's position into its own frame and tests it against its box half-sizes (+0x24, +0x28, +0x2c).
  • On entering the box it calls 0x1694ed0, which writes its two item references (+0x30, +0x38) to Hitman +0x1f40 and +0x1f48. On leaving it clears them, unless its "latched" flag (+0x40) has been set.
  • Hitman's status builder (0x168bea8) and 0x16a099c compare those references with the items in Hitman's hands (+0x1fe0, +0x1fe8). When they differ, the builder sets bit 0x08000000 of the status word at +0x127c.

What that status bit does in game was not traced.

Last stand

PC

The last stand is Hitman's death sequence (src/hitman3/characters/zhitman3.cpp).

  • Start. ActivateDeathSequence dies at once if m_iDeathSequenceNrKills > 0, which means one last stand per Hitman instance. Otherwise it:
    • sets hit points to 0;
    • disables the GUI;
    • stops the weapons taking bullets from the magazine, which gives unlimited ammunition;
    • locks the time multiplier at 0.2.
  • Ending it. Each head shot during the sequence adds one (DeathSequenceActorHeadShot). UpdateDeathSequence aborts the sequence when the count reaches m_fDeathSequenceNrKillsAbortSequence = 3.0, on every difficulty. It starts the death post-filter after 0.5 s and calls Die after m_fDeathSequenceTimeToDie = 2.0 s.
  • Revival. AbortDeathSequence restores 1 hit point and the time multiplier, and sets m_ttDamageGraceTime = FrameTime + 2.0. TakeDamage ignores damage until then.

Reprisal

Difficulty scaling. This runs at the end of the ZHitman3 constructor (0x167d9c0), with the difficulty taken from game data +0x2c94. The head-shot target is now an int (+0x20c8):

switch difficulty:
  Rookie (0):  needed = 1;  timeToDie *= 1.5   // 2.0 → 3.0 s
  Normal (1):  needed = 1
  Expert (2):  needed = 2
  Pro (3):     needed = 3

The time multiplier stays 0.2 (+0x20bc) and the base timeToDie is 2.0 (+0x20c0).

Start (0x1699660). If kills ≥ 1 it dies at once, as the PC does. The post-filter is also restarted at 1.5× speed, as on the PC. Otherwise the PC's steps run, plus these additions:

  • the HUD health bar is set to 0 % and Feral's inventory and map overlays are closed;
  • Tutorial popup: if the profile flag at game data +0x2c99 (LastStandPopupDisplayed) is clear, it opens LastStandTutorialPopup, sets the flag and saves the profile. That happens once per profile. The text is InGame.LastStandTutorialText / …Singular: "…Land %d headshots before bleeding out to gain a second wind. Success will grant five seconds of invincibility." ZLastStandTutorialTextBlock fills in the number;
  • Objective line: it shows InGame.LastStandObjective ("Land %d headshots") or …Singular ("Land a headshot") on the HUD with needed − kills;
  • Skip prompt: it sets Feral input-context flag 0x18 (through the platform input object at 0x3505ea0; its purpose is inferred as telling the touch layer that the last stand is active). It puts the text HitmanBloodMoney.InGame.LastStandSkip ("{ZW_START}: SKIP LAST STAND") into a text element at Hitman +0x1198 and hands that element to the HUD.

Each head shot (0x16a7384). Kills go up by one. While needed − kills is still above zero, the objective line is redrawn with the new count.

Update (0x168a330):

if not active: return
if kills >= needed: Abort(); return
if Hitman dead: active = false; clear input flag 0x18; return
if input action "LastStandSkip" pressed:
    Die(true, false); if post-filter: Seek(1.5); return
HUD health = 100 − (elapsed / timeToDie × 100)        // the bar drains
if elapsed > 0.5 s and post-filter off: ActivateDeathSequencePostFilter()
if elapsed > timeToDie: Die(true, false)

Abort (0x16992fc). This is the PC's, except that the grace period comes from the pref:

m_ttDamageGraceTime = FrameTime + LastStandInvicibilityTime    // pref, double, default 5.0 s (5120 ticks)

It also sets the HUD health to 1 hit point as a percentage of maximum, hides the objective line and clears input flag 0x18.

Seek(1.5) is 0x141314c, which moves each of the post-filter animation's tracks to 1.5 s; the kills ≥ 1 path of the start calls it with 0, where the PC calls ZPostFilterAnimEvent::Seek(0.0f).

The objective line goes through the OSD's info display as a hint that stays (0x1770310: AddHint(text, 0, no queue, OSDELEM_ALL, …)), after 0x1770758 saves the display's state; the abort's 0x17707b8 restores it. A head shot only changes the text (0x1770800).

ZFeralSkipLastStandUIGamepad (slot 0 at 0x17329bc) draws its two child elements (+0xa0, +0xa8) only while its "gamepad" flag (+0x10) is set and 0x2cc (716) units of the system's millisecond counter (+0x28) have passed since it was shown. Its setup (0x17325fc, 0x1732750) sets the flag, places the text (font White, draw priority 4000) and its SkipUIBackground picture (priority 54, 8 units of margin round the text) about the point (½ width, 0.8 height) of the screen. The drawing itself is on HUD.

Port: ReprisalLastStand* in port/hitman3/hitman3/_sdl/reprisaloptionssdl.cpp and ZHitman3::UpdateDeathSequence in port/hitman3/characters/_sdl/reprisaloverridesdl.cpp (SCALED LAST STAND). What matches:

  • the head-shot counts (1/1/2/3), the 1.5× on Rookie and the grace (LastStandInvicibilityTime as a named constant, 5 s);
  • the objective line ("Land %d headshots" / "Land a headshot", Reprisal's English texts) as a hint that stays, redrawn after each head shot while one is still needed, and cleared on revival;
  • the draining HUD health: 100 − elapsed × 100 / timeToDie into ZOSD::SetHitpoints each frame, so the game's bar and the HUD styles' health arcs drain; on revival the HUD shows 47's 1 hit point;
  • the skip: the port's Start (Esc on the keyboard, the touch controls' SKIP button) during the last stand, which otherwise opens the pause menu in the port, gives up the last stand as LastStandSkip, with Seek(1.5) on the post-filter;
  • the skip prompt, drawn by the same file 716 ms after the start at (½, 0.8) of the screen, with a pad or the keyboard only: as ZFeralSkipLastStandUIGamepad draws only for a pad, touch has the touch controls' SKIP button instead.

Checked in the game (M05, a test mod): the objective line with "Land a headshot" on Rookie and "Land 2 headshots" on Expert, redrawn after one of two head shots, the health arc draining, the revival (1 hit point, line cleared), Esc skipping, and nothing of this with the option off.

What differs: Reprisal's one-time tutorial popup (LastStandTutorialPopup) is left out. The skip prompt needs the HUD style built-in mod (any style but Original); its look (the SkipUIBackground picture, fonts) is in Reprisal's encrypted data, so the port draws a plain box. The objective line is cleared rather than the info display's earlier state restored. Closing Feral's inventory and map overlays and the touch layer's input flag 0x18 have no counterpart (the touch controls show their SKIP button from 47's own last-stand state).

Weapons and ammunition

Auto reload (Autoreload, AUTO RELOAD)

PC. ZHM3WeaponsControl::CheckReloadWeapon (src/hitman3/characters/zhitman3weaponscontrol.cpp) reloads when the call is forced, or when the magazine is empty and there are spare clips or infinite ammunition. ControlWeapon calls it every frame without forcing, so an empty weapon always reloads by itself. ControlWeaponUse forces it when the reload input is pressed and the magazine is not full.

Reprisal (0x16e2d64). The ZHitman3 constructor reads the option Autoreload (default on) into Hitman +0x1152. In the unforced case the reload branch is taken only if the magazine is empty and Autoreload is on. Otherwise the code falls to the PC's chamber branch.

The forced path, which is the manual reload, is unchanged. Its human-shield handling is the PC's: ActivateReload unless the shield movement's state is 7 or 8. So is its "already reloading" test (link actions 0xc and 0xd).

Manual reload. ControlWeaponUse (0x16e29d0) is rewritten around a bitfield at +0x16. It forces a reload when all of these hold:

  • the reload input is pressed (Hitman +0x9a6 and bit 2 of +0x992);
  • the magazine is below its capacity;
  • the template can have magazines;
  • Feral's stricter IsReloadAllowed (0x16e2c98) passes.

That IsReloadAllowed adds these refusals to the PC's:

  • action-queue entries of types 6, 10 and 11;
  • a current link action;
  • Hitman +0x2126;
  • Hitman state 10–15, 17–23 (mask 0x3fbf from 10);
  • bit 2 of +0x1262;
  • the checks 0x16a09dc and 0x169910c.

The same function reads Feral's new Melee input action, and it can set the GUI's "unholster" request (+0x28) when fire is pressed with empty hands on a touch device. Both belong to Controls, Camera and Aiming.

Port: CheckReloadWeapon in port/hitman3/characters/_sdl/weaponsoverridesdl.cpp (MANUAL RELOAD ONLY) matches, with the sense of the option inverted.

Out-of-ammo hot-swap (OutOfAmmoHotSwap, OutOfAmmoHotSwapDelay)

There is no PC equivalent.

Arming (in WeaponRoundFire, 0x16e3134). The function also gained per-weapon-type rumble (see Controls, Camera and Aiming). After each shot:

if hotSwapTimer (+0x84 of the weapons control, Hitman +0xaac) is idle (1e38):
    w = right-hand item
    if w is a firearm whose template can fire projectiles:
        left = w.InMagazine + w.PerMagazine × GetNumberOfAmmoClips(w)
        if left > 1: return
    hotSwapTimer = OutOfAmmoHotSwapDelay × 0.001     // pref, int ms, default 800 → 0.8 s

left ≤ 1 is tested before the weapon removes the fired round, so the timer starts on the last round (inferred). The timer is also armed if the right hand holds no firearm.

Firing (ZHitman3::ClassFrameUpdate, 0x168a078):

hotSwapTimer -= frame delta (ZSysInterface +0x2c)
if hotSwapTimer <= 0:
    if option OutOfAmmoHotSwap (Hitman +0x1153, default on):
        if profile flag +0x2c9a (OutOfAmmoHotSwapPopupDisplayed) clear: GUI +0xa8 = 1   // first time
        GUI +0x29 = 1; GUI +0x59 = 1                                                   // request inventory
    hotSwapTimer = 1e38

Serving the request (ZGui slot 88, 0x16ee2f4). When GUI +0x29 is set and Hitman is not busy (0x1698ab0), it checks that Hitman's inventory holds at least one item that is not ammunition (0x16f000c).

  • If GUI +0xa8 is set, it opens OutOfAmmoHotSwapPopup (InGame.OutOfAmmoPopupText: "Once you have used all the ammunition for the equipped weapon, the Inventory will open automatically…"), sets and saves the profile flag, and clears GUI +0xa8.
  • Otherwise it opens InventoryMenu (0x16ed350, reason 5).

The menu label is InGame.OutOfAmmoHotSwap ("OUT OF AMMO HOT-SWAP").

GUI +0x29 is the PC's InventoryMenuOpen input flag, +0x28 Holster and +0xea m_bInventoryDisabled: the branch is the PC's inventory branch, with the busy test 0x1698ab0 in place of IsDoingLinkActions. 0x1698ab0 is true when the active movement type (slot 368) is in {10–15, 17–20, 23} (climbing, ladder, drainpipe, dead, kill line-up, balcony jump), +0x2126 is set or a link action runs, unless that link action is the one entry of its allow-list, HITMANACTION_ThrowItem (0x10000004). 0x16f000c is the PC's ZGui::HasOtherThanAmmo.

The request does not wait. GUI +0x59 makes the next input refresh (0x1782574, run only while the menus are closed) keep +0x29 instead of reading it from the controls, and clears itself; after that pass +0x29 is the button again. If 47 is busy or carries only ammunition on that pass, nothing opens. GUI +0xa8 is cleared at the end of every GUI pass, so the popup replaces the inventory only when the request is served on the first pass after the timer fires; the inventory does not open after the popup.

Port: WeaponRoundFire in weaponsoverridesdl.cpp and PortRequestAmmoInventory and ZGui::ClassFrameUpdate in port/hitman3/gui/_sdl/guioverridesdl.cpp (OUT-OF-AMMO HOT-SWAP). What matches: the wait starts when the right hand's firearm has InMagazine + PerMagazine × clips ≤ 1 (infinite ammunition included; the infinite clip's 999 rounds never start it) or no firearm is there, and only when no wait runs; 0.8 s (OutOfAmmoHotSwapDelay, a named constant) of game time later the inventory is asked for once, served on the next pass with the menus closed when 47 is not busy (Reprisal's test, without the Feral flag +0x2126) and carries something other than ammunition. Checked in the game: a pistol emptied with no spare clips opens the inventory about 0.8 s after the last shot. What differs: Reprisal's one-time popup that explains the hot-swap (OutOfAmmoHotSwapPopup) is left out, so the inventory opens the first time too.

Ammunition warnings (ShowAmmoWarnings)

There is no PC equivalent.

The HUD weapon panel's draw (0x16f38d0) calls the warning logic (0x16f3ad8) when ShowAmmoWarnings (pref, default on) is set and the GUI's flag bit 1 (+0xec) is clear. The logic picks one message:

w = right-hand weapon
if !w or !w.template.CanHaveMagazines or !IsReloadAllowed:
    if Hitman is reloading (0x1698e98): "RELOADING"
    else: nothing
else:
    per = w.PerMagazine; in = w.InMagazine; frac = in / per
    spare = GetNumberOfAmmoClips(w) > 0 or infinite ammo
    if per > 3 and frac == 0 and !Autoreload and spare: "RELOAD"   (pulsing)
    elif frac == 0 and !spare:                          "NO AMMO"  (pulsing)
    elif per > 3 and frac <= 0.25 and spare:            "RELOAD"   (steady)
    elif frac <= 0.25 and !spare:                       "LOW AMMO" (steady)

The texts are InGame.Reloading, InGame.Reload, InGame.NoAmmo and InGame.LowAmmo. Weapons of three rounds or fewer never ask for a reload. A pulsing message's alpha is 155 + 100 × sin(6 × time); a steady one's is 255. Placement and colour are on HUD.

Port: the rule is ReprisalAmmoWarningRule (port/hitman3/hitman3/_sdl/reprisalrulessdl.h), given to the Lua HUD as obm.player.ammo_warning(), which the Reprisal HUD draws (it has no rule of its own). IsReloadAllowed is the PC's, without Feral's extra refusals; the drawing belongs to the HUD style. Checked in the game: a nine-round pistol with no spare clips warns LOW AMMO at two rounds and a pulsing NO AMMO when empty.

Item physics (UseFramerateIndependentItemPhysics)

PC. CRigidBody::FrameUpdate (src/engine/fysix/rigidbody.cpp) works as follows:

  • It clamps the frame delta to 0.05 s and integrates in at most one step.
  • ConstrainedParticleSystem::MoveRigidBody damps velocities by 0.96^(step / 0.05).
  • The body stops after 17 frames of steady energy (change < 0.05 and energy < 2.0).
  • The speed threshold grows by 1.002^(delta / 0.05) per frame.

Reprisal (CRigidBody::v31, 0x1447e6c; the pref is read at 0x1447f4c). Move and MoveRigidBody (0x143d7f0) gain two parameters: the reference step and the damping base. The velocity scale becomes base^(step / refStep) × clamp(timeRatio, 0.2, 5).

isCoin = owner geom is an item whose name contains "Item_Coin"
mode   = UseFramerateIndependentItemPhysics              // pref, int, default 1
if mode == 2 or (mode == 1 and isCoin):                  // fixed 60 Hz
    refStep = 1/60; base = 0.94; stopFrames = 32
    remaining = delta                                    // not clamped
    while remaining > 0:
        if remaining > refStep: Move(refStep); remaining -= refStep
                                if remaining < refStep / 2: break
        else: Move(remaining); break
else:                                                    // the PC's
    refStep = 0.05; base = 0.96; stopFrames = 16; one step of min(delta, 0.05)
the body stops after stopFrames + 1 frames of steady energy
threshold *= 1.002^(delta / refStep)

At the default of 1, only coins use the fixed 60 Hz steps. Their motion no longer depends on the frame rate, and their damping is stronger: 0.94 per 1/60 s, against the PC's 0.96 per 0.05 s.

The function also starts with a new step: if byte +0x149 is set, it calls 0x1445b20 and clears the byte. What that does was not identified.

Port: not reproduced. CRigidBody::FrameUpdate is replaced by the port's own frame-rate fix (port/engine/fysix/_sdl/rigidbodyoverridesdl.cpp), outside the Reprisal options.

Pickups

PC

The AT_PICKUP case of ZHitman3::CanOperateObject (src/hitman3/characters/zhitman3.cpp) decides whether an item can be picked up. It uses IsItemActionInFront(action, angle), which compares the item's horizontal direction with Hitman's facing (or the camera's in first person), and IsItemActionInRange(action, r), a horizontal distance check with a height window of −120 to 155 and two line-of-sight checks.

  • Ammunition: r = 60, or 45 if the item is not within 60° of the facing.
  • Items held by people (ZHM3Actor): r = 140.
  • Other items: r = 80.

For the last two, the item must be within 120° of the facing, and r is halved when it is not within 70°.

Reprisal

0x16843e4 and 0x1684f48 in the same function read the three prefs (doubles; specifications.xml and the registered defaults agree):

ammo:   r = PickupRadiusAmmo (60.0);  if not within 60°: r *= 0.75          // 60 / 45, as the PC
other:  r = owner is an actor ? PickupRadiusFromActor (140.0) : PickupRadiusNormal (140.0)
        require within 120°;  if not within 70°: r *= 0.5
IsItemActionInRange(action, (int)r)                                          // 0x1682fd0

The in-front helper (0x1683664) and the in-range helper are the PC's. The only change in effect is the radius for loose items: 80 → 140, or 40 → 70 off-axis. Which item the gaze or the pickup wheel selects is on Instinct, Highlights and Gaze.

Port: IsItemActionInRange in port/hitman3/characters/_sdl/pcfixesoverridesdl.cpp (REPRISAL HANDLING) maps 80 → PickupRadiusNormal and 40 → half of it for AT_PICKUP, with the pref as the named constant REPRISAL_PICKUP_RADIUS_NORMAL (140, its registered default). Ammunition and items held by people keep the PC's radii, which equal PickupRadiusAmmo and PickupRadiusFromActor. That matches.

Saving and autosave

Reprisal keeps the PC's in-mission save limits, the save counter and the M13 and hideout lockouts. Around them Feral added:

  • an autosave system: a mission-start autosave, a periodic autosave and an autosave when the app is suspended;
  • a resumable "Continue" entry backed by an AutoSaveInfo record;
  • deletion of the in-mission save slots when a new mission starts;
  • a save-version check;
  • a reworded save-limit popup.

Classes and functions not in src/ are named from RTTI (ZSavePC, ZLoadGameInfoPC, CFeralGameAutosaveManager, ZFeralContinueButton). ZSavePC is the PC's own save class; Feral extended it.

Save limits per difficulty

PC. ZLevelLinking::GetNumOfSaveGamesAllowed (src/hitman3/levelcontrol/levellinking.cpp) returns the table { -1, 7, 3, 0 }, indexed by difficulty: Rookie unlimited, Normal 7, Expert 3, Professional 0. ZLimitSaves::Click (src/hitman3/gui/menu/elements/hm3navigators.cpp) works as follows:

  • On a Save button, it opens the LimitSaveDialog window when allowed != -1 and GetNumOfSaves() >= allowed.
  • On a Load button (LoadDisable="1"), it opens that window on Professional only.

ZHM3SaveBase::s_iNumOfSaves (src/hitman3/gui/hm3savebase.cpp) counts the saves made since the save interface was created. It is reset to 0 by each new ZHM3SaveBase unless KeepSave() was called (a loaded game keeps its count). ZGUISaveGame::Complete increments it and the profile statistic lNumSaves.

The text blocks:

  • ZLimitSaveGameTextBlock::SetText formats SaveLimit_Normal or SaveLimit_Expert with the allowance, or shows SaveLimit_Pro.
  • ZSaveGameCountTextBlock::SetText shows "n / allowed", except on Rookie and Professional, where it shows nothing.

Reprisal.

  • The table is unchanged. { -1, 7, 3, 0 } sits at 0x9da100, read by 0x17d9f8c, indexed by LevelLinking + 0x17dc, the difficulty.
  • ZLimitSaves::readParams (0x173aa4c) reads one more attribute, NoSavesDialog (member +0x3d8), besides LimitSaveDialog and LoadDisable.
  • ZLimitSaves::Click (0x173a8e0) runs in this order:
    1. Read the allowance.
  • Call save-interface slot 39 with 0 (a Feral setter of ZSavePC + 0x10, 0x16f1ab8).
  • Call EnumerateGames(false).
  • On a Load button: on Professional, open LimitSaveDialog. Otherwise call slot 39 with 1; if GetNumOfSaves() is 0, open NoSavesDialog. Otherwise continue as ZOpenWindow.
  • On a Save button: if allowed != -1 and GetNumOfSaves() >= allowed, open LimitSaveDialog. Otherwise continue.

    ZSavePC::GetNumOfSaves (slot 9, 0x1778264) returns the count at ZSavePC + 0x40, which EnumerateGames (0x177628c) resets and recounts. So Reprisal limits the number of save files present. This is inferred from the enumeration call and from the popup text "{savesnumber} save files are allowed". Because the slots are cleared when a mission starts (below), it normally equals the PC's count of saves made in the mission.

  • ZLimitSaves::Setup (0x173a888) first runs ZSaveLoadDisable::Setup (below). On a Save button it also disables the button when the Hitman check 0x1698ab0 returns true. That check is true while ZHitman3 reports a state in the set {10–15, 17–20, 23} (vtable +0xb80), or its byte +0x2126 is set, or vtable +0x760 returns an action code outside a one-entry allow-list. In short: no saving in the middle of a busy action (inferred meaning).

  • ZLimitSaveGameTextBlock::SetText (0x17406e0) is rewritten. It builds InGame.SaveLimitPopupBody ("{savesnumber} save files are allowed when playing on {difficultyname} difficulty."):
    • {savesnumber} is the allowance as a number, or the InGame.Zero text when it is 0.
    • {difficultyname} is AllLevels/Interface/Frontend/Normal, …/Expert or …/Pro for difficulty 1, 2 or 3. On Rookie it stays empty.
  • ZSaveGameCountTextBlock::SetText (0x1740b9c) caches GetNumOfSaves() at +0x3c0, then:

    • allowance < 0 (Rookie): shows "<Headers/SaveGameMenu> (<InGame.UnlimitedSaves>)", that is "… (UNLIMITED)";
    • allowance > 0: shows "%s (%d/%d)": header, saves, allowance;
    • allowance 0: shows the header alone.

    The PC showed nothing on Rookie and Professional.

  • InGame.SaveMenuTip ("On higher difficulty levels, in-mission saves are limited. Use them wisely.") is menu text; see Menus and Front End.

Where saving is disabled (M13, hideout, after failure)

PC. ZSaveLoadDisable::Setup disables the button when the scene name contains HideOut, or when the current level is M13.

Reprisal (ZSaveLoadDisable::v12, 0x173a6b0). Here failed is byte +0x54 of ZHM3LevelControl. Level start (ZHM3LevelControl::v18, 0x17acb10) clears it, and the mission-failed handler (0x17af4a4, at 0x17af738) sets it.

isM13 = !EnableSavesInM13 && levelName == "M13"
if sceneName contains "HideOut":            disable   (always)
else if !failed:                            disable if isM13
else:  refresh the save list; n = GetNumOfSaves()
       disable unless (n != 0 && !isM13)

After a mission failure, the button that uses this element stays enabled only when saved games exist and the level is not M13. EnableSavesInM13 (bool, registered default 0) removes the M13 lockout everywhere: here, in the M13 start path, and in Continue (below).

Clearing the save slots

There is no PC equivalent: the PC keeps saved games until they are overwritten.

ClearSavesOnMissionLoad (bool, registered default 1, getter 0x11a85f8) drives ZSavePC function 0x17773d4. That function deletes SaveGame#0 … SaveGame#8 (.control and .data, nine slots) and SaveInfo from the profile's save directory, then runs a cloud-sync step (0x11b352c). It is called:

  • ZLoadScene::Click (0x1736558). This is the button that loads a mission from the briefing or level select. The click is ignored while the autosave manager is busy (manager + 0x268 != 0, 0x11c46a4). Otherwise, if no saved game is loading (engine byte +0xc3d, the PC's m_LoadingGame), ClearSavesOnMissionLoad is on, and the target scene does not contain hitmanbloodmoney (the front end), the slots are deleted.
  • ZSetDifficultyLevel::Click (0x1739468), when SkipBriefings is on or the level being started is M00 (see SkipBriefings).
  • M13 start (below), regardless of ClearSavesOnMissionLoad.

Autosave

There is no PC equivalent: the PC has no in-mission autosave. CConfiguration's AutoSaveEnabledPlayer0..3 in src/engine/system/cconfiguration.cpp is the PS2 profile-autosave option.

CFeralGameAutosaveManager is Feral's generic shell autosave manager: singleton getter 0x11c355c, constructor 0x11c2e3c, initialise 0x11c37d8. It holds a map of timers keyed by an ID. Each timer has:

  • a kind (1–5);
  • a period in seconds (double);
  • a repeat flag;
  • std::function predicates and an action.

The manager registers its own preferences (0x11c33d4): EnableAutosaveCoordinator (default 1), EnableDeferredAutosaves (default 1), DeferredAutosaveTimeout (default 5 s) and UseAutosaveIconIfAvailable (default 1, loads AutosaveManager/autosaveIcon.png as the on-screen icon). It ticks every 0.1 s (+0x250 = 0.1) and adds a kind-5 timer whose period is DeferredAutosaveTimeout: the deferred autosave. Analytics events Feral.GameShell.AutosaveDeferred and …DeferredAutosaveCompleted report deferrals.

Each kind has an enable byte at manager + 0x290 + kind; 0x11c4fac sets them from an ID list where 0 means all kinds. After every change:

  • kind 1 is forced off when EnableAutosaveCoordinator is false;
  • kind 5 is forced off when EnableDeferredAutosaves is false.

The game's timers. StartHitman (0x1785c34) sets up the save action and the gates, then registers four timers:

Global Kind Period Use
0x3746108 4 — Mission-start autosave, fired from ZHM3LevelControl::PostInit2
0x3746118 2 20 s, repeating A cooldown consulted by the "can save now" check (0x1698984) and by the app-suspend path (inferred meaning)
0x3746120 1 — Autosave when the app goes to the background during a mission (0x14f2578): only when a mission scene is up, Hitman exists and his state is not 0x18, and the level has started (engine flag +0x1f2)
0x3746110 3 AutosavePeriod (default 300 s) Periodic autosave; its predicate (lambda $_0, 0x1787660) also requires engine flag +0x1f0 clear
  • The save action (lambda $_1, 0x17878a4): set engine byte +0xc3e ("save in progress"), then call ZSavePC::SaveGame(false) (slot 19).
  • The gates. Autosaving is allowed only when all of these hold:
    • lambda $_2: the scene name contains _main and not hideout;
    • lambda $_3: no saved game is loading (+0xc3d), no save is in progress (+0xc3e), the game is not paused (+0x60), the game-data veto (vtable +0xf8) is false, and Hitman byte +0x20a4 is clear. +0x20a4 is the last-stand flag, so the game never autosaves during a last stand;
    • lambda $_5: the level has fully started (engine flag +0x1f2).

ZHM3LevelControl::PostInit2 (shared slot 21, 0x17accf4). After the PC's work:

  • M13 without EnableSavesInM13: disable every autosave kind and delete the save slots (0x17773d4). Unless a game is loading, it then writes a fresh AutoSaveInfo (0x1776cb8) with level 12, the time, the difficulty and the "resume pending" flag set.
  • Any other level:
    1. Enable every autosave kind.
  • If not loading a game, fire the mission-start timer (0x11c5b74(id, false)). If that returns non-zero, fire it again as deferred.
  • If loading a game, clear +0xc3d instead.
  • Set manager + 0x1b9 = 1 (in mission).
  • Start the periodic timer (0x11c6878, StartAutosaveTimer).

ZHM3LevelControl::v18 (0x17acb10) and the options-changed handler 0x178485c also copy AutosavePeriod into ZHM3LevelControl + 0x570. No reader of that member was found.

The autosave record. ZSavePC keeps an autosave slot (AutoSave.control/.data) and a backup (AutoSaveOld.*), with a 0x138-byte SAutoSaveInfo in <profile>\AutoSaveInfo (backup AutoSaveInfoOld). The reader 0x17750fc accepts the current size 0x138, or the older 0xf8-byte SAutoSaveInfoOLD, which it converts (0x177b48c). Known fields:

Offset Content
+0x94 Level number
+0x98 Time
+0xa0 Valid
+0xa4 Difficulty
+0x130 Flag (meaning not identified)
+0x131 Resume pending

On mission failure the info is rewritten with +0x131 cleared (0x1777f1c, called from 0x1778170).

Continue (ZFeralContinueButton::Click, 0x172bb74):

  1. Read AutoSaveInfo.
  2. Check the autosave (0x1776f84; tries AutoSave, then AutoSaveOld).
  3. On result 10 (CORRUPTED_DATA), open CorruptSaveWarning ("…attempt to load a recovery autosave").
  4. On result 16 (a Feral code: version mismatch) with SaveVersioningWarningLevel of 1 or 2 (registered default 0, so no warning by default), open VersionMismatchWarning. The test is 0x16ebf70.
  5. Otherwise set engine +0xc3d (loading) and call 0x1777190.

0x1777190 reads AutoSaveInfo (falling back to AutoSaveInfoOld) and takes the level's scene name (0x17d8200):

  • the name has no intro: that scene is loaded;
  • level 12 (M13) without EnableSavesInM13: m13/m13_main is loaded, restarting M13 after its intro;
  • otherwise: ZSavePC::LoadGame(false) (slot 20).

ForceCrashAutosaves (bool, default 0) has a cached getter at 0x11a8b0c, but no caller or pointer to it was found; it is unused in this build. ProfileVersioningWarningLevel (default 0) likewise has no caller.

Evidence: strings InGame.SaveLimitPopupBody, {savesnumber}, {difficultyname}, InGame.UnlimitedSaves, %s (%d/%d), NoSavesDialog, SaveGame#%i.control, %s\AutoSaveInfo, AutoSaveInfoOld, AutosaveMTimer, DeferredAutosaveTimeout, m13/m13_main, VersionMismatchWarning, CorruptSaveWarning. The port does not reimplement any of this.

Cheats, debug and unlock switches

All of these are Feral preferences with registered default off or 0. Release builds expose them only through Feral's internal settings screen.

EnableCheats and ZFeralOpenCheats

PC. CConfiguration::Load (src/engine/system/cconfiguration.cpp) sets m_bCheatsEnabled when the EnableCheats option exists. AreCheatsEnabled() gates:

  • the "complete level" action in ZHM3LevelControl::FrameUpdate (objectives 1–6 completed, then MissionCompleted2);
  • the ZCheatMenu overlay (ZOSD::m_pCheatsMenu), opened by CheatsMenu=fasttap(kb,c) or CheatsMenuGC=seq(L1,R1,R2) (src/hitman3/gui/zguiinputcontrol.cpp).

src/hitman3/gui/cheatmenu.cpp is not decompiled yet, so the PC menu's item list cannot be compared.

Reprisal.

  • The preference (getter 0x11a3814). The startup-options function 0x14f1ed0, run at start and on options change via 0x178485c, writes EnableCheats="" into the engine's option store when the preference is on. That makes the PC's GetOption("EnableCheats") succeed, so the PC gates apply unchanged.
  • ZCheatMenu (cheatmenu.cpp; MSG_SHOWCHEATMENU registered at 0x16e9e58). It builds 12 entries (0x16e9c34):

    Entry Kind Target
    GiveAll action —
    InfAmmo toggle engine + 0x1e8 (m_bInfAmmo)
    InfClip toggle g_iInfClip
    Complete level action —
    God mode toggle g_lGodMode
    Invisible mode toggle g_lInvisible
    Show enemy vision toggle —
    Show OSD toggle —
    Timemultiplier value engine + 0xc14
    Teleport action —
    Beam here action —
    Test Cloth action —
  • ZFeralOpenCheats (not in src/; Feral-new). A menu button:

    • Setup (slot 12, 0x172df3c) builds the button only when EnableCheats is on; otherwise it returns an empty element, so the button is hidden.
    • Click (slot 5, 0x172e158), on events 0x104 or 0x112, calls 0x16edb34 on game data +0x14a0, which sets bytes +0x30, +0x59 and +0xa9. That is a request to open the cheat menu, the same as the CheatsMenu action (inferred). It gives touch and controller players a way to reach the menu.

EnableGodMode, EnableInfiniteClip, EnableInvisibility

When ZCheatMenu initialises (0x16e9c34), it sets the three globals from the preferences:

  • g_lGodMode = EnableGodMode (getter 0x11a3a98);
  • g_iInfClip = EnableInfiniteClip (0x11a3d1c);
  • g_lInvisible = EnableInvisibility (0x11a3fa0).

The PC code then applies them:

  • ZHitman3::TakeDamageBase subtracts no hit points in god mode;
  • ZItemWeapon::GetProjectilesInMagazine returns 999 with InfClip;
  • ZCheckVisible::UpdateVisible makes the player invisible to every seer (src/engine/eventsbase/checkvisible.cpp).

The values are applied whenever the cheat menu object initialises (at level load, inferred), whether or not EnableCheats is on. The cheat-menu toggles can change them afterwards.

The port's Lua API (port/engine/mods/_sdl/modluagame.cpp) and debug panel (port/engine/debug/_sdl/debugpanelscenario.cpp) expose the same globals, but not these preferences.

EnableDemoWeapon

ZHM3InventoryMenu::InitInventoryList (0x1747334; PC src/hitman3/gui/menu/elements/inventorymenu.cpp) gains one step. After the "last item" fix-up (fibre wire when the last item is gone), when EnableDemoWeapon is on (getter 0x11a4224), it gives Hitman the item of type 30 through 0x16c6fd4/0x16c6bf8. That function finds the template by name in WeaponsGroup, ItemsGroup, EquipmentsGroup and ContainersGroup and adds it if he does not already carry it.

This happens every time the inventory menu opens. Type 30 is eHM3SniperRifle_Dragunov_01 in src/hitman3/characters/hm3itemtype.h; that Reprisal's enumeration is the same is assumed, not verified.

LevelsUnlocked

PC. ZLevelList::Setup (src/hitman3/gui/menu/elements/levellist.cpp) counts the levels completed in a row from level 0 (up to 13), adds 1 for the next level if fewer than 13, and adds 1 for the hideout.

Reprisal. ZLevelList::v10 (0x17497c8, a reworked Feral level select) computes the same run of completed levels into +0x18. When LevelsUnlocked >= 1 (int, default 0, getter 0x11a44a8), it replaces that count with LevelsUnlocked. The list therefore behaves as if the first N levels were completed. How the reworked list turns the count into entries was not traced.

UnlockAllUpgrades

ZMoneySystem::UpgradePrice(tier) (0x17e1534) returns 0 when UnlockAllUpgrades (int used as bool, default 0, getter 0x11a4720) is on. Otherwise it returns the price table entry (+0x14c + 4·tier).

ZWeaponUpgradeUtils::GetTotalUpgradeCostRecur (0x17ea350) and the cost string (0x17ea5a0, "%i (%i)") use it, so every upgrade, prerequisites included, costs nothing. Upgrades still have to be bought in the workshop.

SkipBriefings

PC. ZSetDifficultyLevel::Click sets the difficulty. It then starts M00 when training is incomplete, or opens the next window.

Reprisal. ZSetDifficultyLevel::Click (0x1739468) is reworked. After setting the difficulty and initialising the level, it takes the next scene name. If SkipBriefings is on (getter 0x11a49a4), it replaces that name with "<Level>/<Level>_main" (for example M01/M01_main). The briefing and intro scenes are skipped and the mission's main scene loads directly.

When SkipBriefings is on, or the level is M00, the save slots are also cleared (if ClearSavesOnMissionLoad is on), because the ZLoadScene path that would normally clear them is bypassed.

DisableCutscenes

ZWintelVideoBink::v5 (0x14c0364, the PC-only movie player; Bink is replaced by WebM, see Rendering and Platform) does not open or start the movie when DisableCutscenes is on (getter 0x11a4c28) or a saved game is loading (+0xc3d).

This affects pre-rendered movies only. In-engine cut sequences are not affected. The movie volume rule is unchanged: Audio_Volume_Movie − 22, clamped at 0 and scaled to 0–32768, with 78 when the option is absent.

ShowHiddenObjectives

  • ZHM3BriefingControl::ObjectiveExists (0x17a8c84; PC src/hitman3/levelcontrol/briefingcontrol.cpp): on the PC, an objective whose bit is set in m_lObjectiveHiddenFlags does not exist unless bIncludeHidden. Reprisal treats it as existing when ShowHiddenObjectives is on (getter 0x11a4eac).
  • A Feral objectives-list builder for a given level (0x1724c68; strings %s/MissionObjectives/%d/Type, M04, M06, M11; no caller recovered) shows hidden objectives when the level has been completed (0x17d8f64) or ShowHiddenObjectives is on.

SelectLevelOnIncompleteM00

ZStartGame is not in src/ (it could be PC-only or Feral-new). Its slot 24 (0x157086c):

  • if M00 is completed, or SelectLevelOnIncompleteM00 is on (getter 0x11a5130), it runs the base behaviour (the level select);
  • otherwise it sets level 0 (0x17d8158) and opens DifficultySelectMenu, so a profile that has not finished the tutorial goes straight to a new game in M00.

NoTutorialOnCompleteM00

PC. ZOSD::ForceBriefing (src/hitman3/gui/osd.cpp) runs once per level:

  • in M00: SetCurrentHint(6) and open TrainingBriefing;
  • otherwise: open MissionBriefing.

Reprisal (0x17708b4):

  • it also returns early while the menu system's counter (menu elements +8, +0x454) is positive;
  • in M00 it sets hint byte 7 (BriefingControl + 0xca = 7) and opens the window named by 0x17aaae4;
  • when NoTutorialOnCompleteM00 is on (getter 0x11a53b4) and bTrainingCompleted is set (LevelLinking + 0x17e0), it opens no window at all, so a replay of the tutorial does not force the training briefing.

The port does not reimplement any of these switches.

Level fixes and engine-logic switches

This section covers Feral's per-level fixes (M06 music, M12 rendering, M06/M12 animations), the hideout welcome popup, the bribe toggles, and the switches that change how the engine runs scripts, measures time and places particle emitters. Every key in the table is read by a cached getter in 0x11a0000–0x11b3000.

Two of them, DisableM12SprinklerHack and UseImprovedTimeDelta, are not in the registered-defaults list. Instead, the DefaultSettings block of assets/specifications.xml sets both to 1, and that block has no conditions, so it applies on every device. Getters that read a key with no stored value see 0 (false). The 0xffffffff80000001 that some getters pass is the registry hive (HKEY_CURRENT_USER), not a default value (0x1ca3844).

Key Effective default Read by Effect
FixM06BarMusicPriority 1 (getter fallback 1) M06 location-music callback 0x17c7970 Event music survives a trip through the M06 bars; action music is allowed in the rock bar
DisableM12SprinklerHack 1 (specifications.xml, all devices) 0x13c1994, 0x13c3158 0 turns on a culling hack in M12
M12OptimizationDisableDynamicShadows, …SelfShadows, …StaticShadows none getters 0x11a82f8, 0x11a83f8, 0x11a84f8 are never called No effect in this build
ForceLevelSpecificAnimationCollections 1 0x169d29c Loads Hitman's M06/M12 animation collection from the level control
EnableInitialScriptFrameUpdate 0 ZScriptC::v19 0x14185d4, v31 0x14186b4 0 removes a script's first-frame run
UseFeralScriptScheduler 1 0x13e95b4 Replaces the time-budgeted priority scheduler
MaxEventCyclesPerThread 5 0x13e95b4, both paths Run budget per thread
EventUpdateCycleLimit none, so 1,000,000,000 / 120 0x13d78c8 Per-frame time cap of the PC-style scheduler path
UseAsyncEvents 1 (registered) getter 0x11ab328 is never called No effect in this build
UseImprovedTimeDelta 1 (specifications.xml) ZSysInterfaceWintel constructor 0x14f093c Monotonic clock instead of clock()
DisableParticleEmitterCenFix none, so 0 ZParticleEmitter::v107 0x146c5dc 0 keeps Feral's fix for the bounds centre of expanding emitters

Current level index and the "in M12" flag

Several fixes test the current level by its index. Reprisal keeps a 13-entry table of level names at 0x32c95d0 (stride 0x40): index 0–12 = m00 m01 m03 m04 m05 m06 m02 m08 m09 m10 m11 m12 m13. 0x17d7f3c turns a name into an index (case-insensitive) and 0x17d62d0 turns an index back into a name.

The three level-setting functions of ZLevelLinking (0x17d7dd8 takes a name, 0x17d7e8c and 0x17d8158 take an index) each clear a global byte at 0x3446f20 and then set it to index == 11. This byte is the "current level is m12" flag used below. The PC has no such flag.

M06: bar music priority (FixM06BarMusicPriority)

PC. MusicCallBackLocation06 (src/hitman3/levelcontrol/levelcontrolm06.cpp) handles M06's music locations:

  • Locations ≥ 4: it first tries GeneralLocationMusicHandler.
  • Then always: it calls PreventActionMode(false).
  • Location 0: it fades out or clears the location music.
  • Bars (1 blues, 2 rock, 3 salsa): it queues the bar track as looping location music, with fade-in 0.5 s and fade-out 6 s, and calls SetFadeOut(0.2) on the current music. The rock bar (2) also calls PreventActionMode(true), so combat music cannot replace it.
  • Location 4: elevator music.
  • Location 5: eBeforeTheStorm if the assassin is in the meeting.
  • Location 6: eScaryNoIntro in the red suit with the suitcase.

If event music is playing when Hitman walks into a bar, the bar's location music replaces it, and the event track is lost.

Reprisal. The callback (0x17c7970, set by ZHM3LevelControlM06 MusicInit 0x17c78fc) keeps the PC's cases and adds a block before the switch when the key is on. The block uses a static copy of one 0x3c-byte SPlayListEntry at 0x37483d8, with a "saved" byte at 0x3748414:

cb(Control, location):
  if location >= 4 and Control.GeneralLocationMusicHandler(state): return state
  Control.PreventActionMode(false)
  if FixM06BarMusicPriority:
    cur = Control.m_CurrentMusic                      // +0x1bd8
    if location in {1,2,3}:                           // a bar
      if not saved and (cur.m_lFlags & PLF_EventList):
        S = copy of cur
        S.m_fStartTime = FrameTime - (start time of the current track)  // seconds already played
        saved = true
        Control.StopCurrentMusic(0.8)                 // 0.8 s fade-out
    else if saved and (cur.m_lFlags & PLF_LocationList):    // left the bar, bar music still on
      e = Control.AddToPlayList(ZMC_EVENT, S.m_eMusic, 0,
                                S.m_fFadeIn, S.m_fFadeOut, S.m_fDelay, S.m_fStartTime)
      saved = false
      e.m_lFlags |= PLF_GroupSources | PLF_Loop
      Control.SetFadeOut(0.5)
      if e.m_eMusic == Control.m_lAlienResourceEnum:
        e.m_lFlags = (e.m_lFlags & ~0x7000) | PLF_KeepSource | PLF_AlienSource
      return LC_Ok                                    // skips the switch
  switch (location) ...                               // PC cases

Inside the switch, with the fix on, the rock bar calls PreventActionMode(false) instead of true. The blues and salsa cases also call PreventActionMode(false), which changes nothing. The bar tracks are enum 26 (blues), 27 (rock) and 25 (salsa), and their parameters are the PC's.

The net effect of the fix:

  • Event music (for example the target tracks) that is playing when Hitman enters a bar fades out over 0.8 s.
  • When he next reaches a non-bar location while bar music is still playing, the event track is queued again as looping event music. It starts from the point where it stopped, using the fourth float argument of Reprisal's AddToPlayList, which the PS2 signature does not have.
  • Combat music can now take over in the rock bar.

When the restore fires it returns before the switch, so that location's own music (for example the location-0 fade-out) is skipped for that call. The "saved" byte is not cleared by MusicInit (which clears only the four clothes flags and the targets counter at 0x3748418), so a saved entry can survive a restart of the mission in the same session (edge case, read from code).

M06's MusicInit also installs a second callback, at controller offset 0x1db0, which mutes or unmutes the club-music sound object held by the level control. The instinct-mode music duck (0x17e4eec/0x17e4fc8) calls it; see Instinct, Highlights and Gaze.

Evidence: 0x17c7970 and 0x17c78fc are in a code region Ghidra did not turn into functions, so they were read from disassembly. Other functions: getter 0x11a9668, StopCurrentMusic 0x17e5140, SetFadeOut 0x17e5080, AddToPlayList 0x17e72b8, GeneralLocationMusicHandler 0x17e7cd0, PreventActionMode 0x17e4cb8. Flags are from musiccontroller.h.

M12: the "sprinkler hack" (DisableM12SprinklerHack)

PC. Not comparable: the Direct3D renderer's ZViewSpace is not in src/, whose renderer is the PS2's. The level test reads a Feral key, so it is Feral's addition.

Reprisal. ZViewSpace's visible-volume search has a synchronous form (0x13c1994) and the body of FindVisibleVolumesAsync (0x13c3158; the lambda's RTTI is at 0x13c5eb0). Both take a list of clip planes and their count, transform the planes into view space (0x13c3adc), and test each candidate volume against them (0x13c3ee0). Just before the transform, both run:

if in_m12_flag and not DisableM12SprinklerHack:
    plane_count = 0

With the hack active in m12, the clip planes passed in are ignored, and only the extra plane chain that the call also carries is tested. Volumes outside those planes are therefore not culled (inferred: this stops the sprinkler effects in M12 from being culled away). Because specifications.xml sets the key to 1 on every device, the hack is off in this build as shipped.

M12 shadow switches

The three M12Optimization* keys are registered names only. They have no registered default, and their getters (0x11a82f8, 0x11a83f8, 0x11a84f8) have no callers in the whole library (checked in a full disassembly, not only in Ghidra's function list). They do nothing in 1.3.1. Shadow settings are covered in Rendering and Platform.

Level-specific Hitman animations (ForceLevelSpecificAnimationCollections)

PC. Hitman's level-specific animation set is loaded only by a ZHitmanAnim scene object. Its PostLoad calls ZHitman3::SetAnimCollectionProperty(name) (src/hitman3/characters/hitmananim.cpp).

Reprisal. ZHitmanAnim::v5 (0x164a984) still does this, through 0x14a09bc, which adds the named collection to Hitman's list at +0xb8. In addition, the Init (slot 18) of ZHM3LevelControlM06 (0x17c6628) and of ZHM3LevelControlM12 (0x17d2744) now ends with a call to 0x169d29c:

if ForceLevelSpecificAnimationCollections:
    name = upper-case(level name of the current level index)    // "M06" / "M12"
    Hitman.SetAnimCollectionProperty("anmcol:animationdatabase#" + name + "_Hitman")

The format string is at 0x906104. Only M06 and M12 call it. Feral's reason is not in the code; presumably those scenes' own ZHitmanAnim entries did not load the set reliably (inferred).

Script first-frame run (EnableInitialScriptFrameUpdate)

PC. ZScriptC::Init2 (src/engine/eventsbase/scriptc.cpp) deactivates the frame update only when a saved game is loading. On a fresh start, every script therefore keeps its frame update, and ZScriptC::FrameUpdate runs SchedUpdate() once on the first frame and then deactivates itself. Every script thus takes one step in the frame after initialisation, outside the scheduler.

Reprisal.

  • Init2 (ZScriptC::v19, 0x14185d4). If the game is loading, it deactivates the frame update, as on the PC. Otherwise, if the key is off (the default), it calls DeactivateFrameUpdate() before linking the initial script state, so scripts are first run by the scheduler. With the key on, Init2 behaves as on the PC.
  • FrameUpdate (v31, 0x14186b4). It calls SchedUpdate(true) and then deactivates the frame update. SchedUpdate (v37, 0x14186e8) has gained a bool parameter. When it is true, an SCR_CONTINUE result ends the step at once (next run = 0). The normal behaviour, also used when the parameter is false, keeps looping while less than 5000 counter ticks have passed. FrameUpdate then reads the key again; this does not change anything.

Script scheduler (UseFeralScriptScheduler, MaxEventCyclesPerThread, EventUpdateCycleLimit)

PC. ZScheduledUpdate::ScheduleEvents (src/engine/enginedata/scheduledevent.cpp) works as follows:

  1. It returns at once if scheduling is blocked or the game is paused.
  2. It wakes the sleeping threads.
  3. It runs the 16 priority lists in turn, weighted by "water jars". Position p adds 256 >> p to its jar and runs one thread whenever the jar reaches 256.
  4. It stops when TimeStampCounter has advanced by m_lMaxCyclesToRun (1,000,000) since the start, or when all 16 lists are empty.

Reprisal, 0x13e95b4. The blocked, paused and wake steps are unchanged. The creator of the scheduler (0x13d78c8) sets m_lMaxCyclesToRun to EventUpdateCycleLimit. If that key is 0 or unset, the value is the timer frequency divided by 120: the frequency function 0x24b7a2c returns 1,000,000,000 (nanoseconds), so the cap is 8,333,333 ns = 1/120 s. Then:

  • UseFeralScriptScheduler on (default): tail call into 0x13e9d30. There is no time cap and no water-jar weighting:

    c = max(MaxEventCyclesPerThread, 1)
    for p in 0..15:
        n = number of threads in list p
        budget[p] = n == 0 ? 0 : (n * (c + 1)) / c     // integer division
        if n != 0: c += 1                               // c grows per non-empty list
    loop:
        any = false
        for p in 0..15:
            if budget[p] == 0: continue
            budget[p] -= 1
            drop threads at the head of list p that are flagged for re-filing
            (bit 31 of +0x28): re-file each by its next-run value
            (0 = running list of its priority, > 0 = sleeping list, -2.0 = free)
            if list p is empty: budget[p] = 0
            else: run its head thread (0x13ea044: Run, then re-queue as on the PC)
            any |= budget[p] != 0
        if not any: return
    

    The literal reading is that each runnable thread runs about once per frame, and n / c threads of each priority run a second time. All priorities have the same weight. Read from disassembly; the growing c looks unintended but is what the code does.

  • Key off: the PC algorithm (water jars, time cap) with one more cap. Before the loop it counts all threads in the 16 running lists and sets maxRuns = MaxEventCyclesPerThread × total. The loop also stops after maxRuns thread runs (no run cap if maxRuns is 0).

UseAsyncEvents (registered default 1) has a getter (0x11ab328) with no callers.

Port. The port keeps the PS2 scheduler and scales m_lMaxCyclesToRun by frame rate in EE cycles (port/engine/system/_sdl/sysinterfacesdl.cpp). It implements neither Feral path.

Time source (UseImprovedTimeDelta)

PC. Not in src/ (the Wintel system interface is PC-only). In Reprisal's copy, with the key off, the real-time clock (a double at ZSysInterfaceWintel+0x18) is clock() / 1,000,000.

Reprisal. The constructor (0x14f093c) copies the key into +0xc1d. With it on:

  • Reset (v59, 0x14f4d00): stores a base time from clock_gettime(CLOCK_MONOTONIC) in seconds (0x24b79a8).
  • Update (v60, 0x14f4d8c): sets the clock to monotonic_now - base.

With it off, both use clock(). On Android, clock() measures the process's CPU time rather than elapsed time, so frame deltas built on it are wrong (inferred reason). specifications.xml sets the key to 1 on every device ("more accurate time delta calculator").

Particle emitter bounds (DisableParticleEmitterCenFix)

PC. At the end of ZParticleEmitter::FinishInit, if m_bExpandBounds is set, the code does the following (src/engine/geomsbase/zparticleemitter.cpp):

  1. Take the parent group's centre and transform it to world space with the parent's root transform.
  2. Set the emitter's radius to |parent size| + 1 and its size to the parent's size.
  3. Transform the centre back into the emitter's local space and set it as the emitter's centre.

Reprisal. In ZParticleEmitter::v107 (0x146c5dc, CopyData with FinishInit inlined), the group is chosen as follows. Take the parent. If the parent is not of one particular geometry class (type mask/id at 0x3273700/0x32736f8; class not identified), take the grandparent instead, falling back to the parent if there is none. This choice happens whatever the key says.

Only with the key off (default) does it set m0 to identity and p0 to zero, and then call GetRootTM(m0, p0) on that group. With the key on, GetRootTM is skipped, and the transform uses uninitialised stack values (read from disassembly). Presumably the key brings back an earlier, broken behaviour, and the "fix" is the explicit initialisation and the call. Not verifiable without the PC executable.

Hideout welcome popup

PC. ZHM3LevelControlHideout::FrameUpdate only calls the base. CompleteCurrentLevel sets bTrainingCompleted and bNextSceneHideout when M00 is completed in a non-demo build. ZHM3LevelControlHideout::MissionCompleted clears bNextSceneHideout through GetNextSceneHideout(true) (src/hitman3/levelcontrol/levellinking.cpp, levelcontrolhideout.cpp).

Reprisal. ZHM3LevelControlHideout::v31 (FrameUpdate, 0x17b1f48) works as follows:

  1. Call the base FrameUpdate.
  2. If the level control's byte at +0xad0 is clear and GetNextSceneHideout(false) (0x17d8b9c) is true, open the tutorial popup EnterHideoutTutorialPopup (0x8ca03e) through the popup function 0x1585948, and set +0xad0.

The popup therefore appears once per hideout load, from the first hideout visit after the tutorial until the player leaves the hideout normally, which clears the flag. Its text is presumably InGame.EnterHideoutPopupText ("Welcome to the Hideout…"); the link is made in the encrypted menu XML (from strings only). CompleteCurrentLevel (0x17d8c0c) is otherwise the PC's. The Hideout MissionCompleted (v66, 0x17b1fc4) adds analytics reporting, which is out of scope. The hideout minimap is on HUD.

Bribe toggles (ZGuiToggleBribes)

PC. On the post-mission bribe screen, ZGuiToggleBribesCivi, …Police and …Identity are separate ZGUIToggle subclasses (src/hitman3/gui/menu/elements/hm3navigators.cpp). Ticking one only greys out the other two with SetActive(false); their values stay as they were.

Reprisal.

  • New base class. The three classes derive from a new ZGuiToggleBribes, which is absent from src/.
  • Shared Setup (v12, 0x1736f14). It runs ZGUIToggle::Setup with the own-setup guard and marks the toggle for its first update. Once all three toggles exist and are set up, it fills the BribeInfoTitle/BribeInfoText panel for the bribe that is already ticked (civilians, else police, else identity), using Another/txtBribePoliceText or Another/txtBribeIdentityText.
  • Civilians toggle Setup (0x1737b50). It also keeps a pointer to its APromptCivi element.
  • Shared Update (v4, 0x1737160). It shows or hides that "A" button prompt according to the focused element and the input mode.
  • Civilians toggle OptionChanged (0x1737224). It calls SetActive(true) on itself. When civilians is ticked, it now sets the police and identity values to 0 before greying them out, so a bribe that was ticked earlier cannot stay paid while greyed out. When civilians is unticked, it reactivates both.

The police and identity toggles have their own OptionChanged (0x1737648, 0x1737a14), presumably of the same shape (not read). Screen layout and navigation are on Menus and Front End.

Levelcontrol source strings

The …/levelcontrol/levelcontrolm01.cpp, m02, m03, m10 … paths in the strings are the __FILE__/__LINE__ arguments of the engine's message-registration call (g_pEngineData->RegisterZMsg(name, 0, file, line)). Examples:

  • M01_MissionComplete (M01 Init 0x17b8568);
  • ActionHide/ActionShow (M02, 0x17bb17c);
  • evM03_EscapeCutEnd (M03 Init 0x17bc74c);
  • M10_MissionComplete/evM10_HMPutDownSuitcase (M10 Init 0x17cc644).

The PS2 code makes the same calls with null file and line, so these strings show no behaviour change. Apart from the items above and the saving, objective and tutorial switches covered elsewhere on this page, no Feral change was found in the level controls.

Unresolved

Fibre wire and close combat

  • What Feral's prompt and context code does with the second strangle-box candidate (+0x2118, +0x2120); see the instinct page.
  • The origin of ZHitmanActionDisarmHitman, ZHitmanActionChargeHitFlashlight, ZCheckActorClose and ZAttachedItemInZoneChecker (IOI's PC code or Feral's), and what status bit 0x08000000 set by ZAttachedItemInZoneChecker changes in game.

Last stand, weapons and physics

  • The exact meaning of Feral input-context flag 0x18, which is raised during the last stand.
  • Whether the hot-swap timer counts down on scaled or unscaled time (ZSysInterface +0x2c), and whether left ≤ 1 is tested before or after the fired round is removed.
  • What CRigidBody +0x149 / 0x1445b20 does.

Saving

  • How ZSavePC::GetNumOfSaves is filled (it is recounted by EnumerateGames); that Reprisal counts files rather than saves made is inferred.
  • The exact roles of autosave kinds 1 and 2: whether kind 1 is the background-suspend autosave and whether the 20 s kind-2 timer is a cooldown is inferred. The internals of CFeralGameAutosaveManager (0x11c60f8, 0x11c6878, 0x11c7208) were not fully traced.
  • ForceCrashAutosaves and ProfileVersioningWarningLevel: no caller found. ZHM3LevelControl + 0x570 (the AutosavePeriod copy): no reader found.
  • Why Continue loads the scene directly when the level's scene name lacks "intro".

Cheats and unlocks

  • How the reworked ZLevelList turns the unlocked count into entries.
  • The PC cheat-menu items (src/hitman3/gui/cheatmenu.cpp is empty), and whether ZStartGame is PC-only or Feral-new.
  • Whether item type 30 in Reprisal is the Dragunov (this assumes the same enumeration as src/).

Levels and engine

  • What the M12 sprinkler hack fixes visually, and what the dropped planes are (frustum or portal planes); inferred only.
  • Why the scheduler's n·(c+1)/c budget with a growing c was written that way; it is read literally from disassembly.
  • Whether the PC executable leaves the emitter transform uninitialised, as the DisableParticleEmitterCenFix path does, and which geometry class is tested when choosing the emitter's group (type mask at 0x3273700).
  • The police and identity bribe OptionChanged functions (0x1737648, 0x1737a14) were not read.