Guide

Game backstab and stealth takedown systems explained

Harbor Dockyard's ghost-route scoring assumed players could choke guards from behind without waking the entire pier. In practice, 62% of “stealth kills” triggered full alert because three systems fought each other: a generous 180-degree backstab cone let players trigger takedowns from the side (guards turned mid-animation), choke-outs broadcast the same noise event radius as pistol shots, and corpses left in doorways were discovered on the next patrol loop with no escalation gradation. Players stopped attempting ghost clears. The refactor tightened rear validation to a 70-degree cone behind the victim's facing vector, split lethal (knife, louder, faster) from non-lethal (choke, quieter, longer wind-up) branches, added a 1.2 s prompt window that froze guard rotation while the player committed, and introduced body states (hidden, suspicious, discovered) tied to cover volumes and witness line-of-sight. Ghost completion rate rose from 11% to 44% on the same layout. Backstab and stealth takedown systems are the payoff layer for infiltration — they convert positioning skill into silent removal. This guide covers angle cones, approach finite-state machines, prompt UX, lethal vs non-lethal tuning, corpse handling, chain takedowns, the Harbor Dockyard pass, a technique decision table vs open combat, pitfalls, and a production checklist — building on stealth mechanics, AI perception, and stance systems.

What takedown systems are (and are not)

A stealth takedown is a authored interaction that removes or incapacitates an NPC when the player satisfies positional and state predicates — typically unaware target, valid rear or flank angle, and no witnesses in line of sight. It is not:

  • A generic melee attack with bonus damage (those belong in melee combat with optional backstab multipliers on hurtboxes).
  • A cutscene QTE unless your design explicitly sells cinematic assassinations.
  • A silent win button — takedowns trade time, risk, and corpse liability for avoiding loud combat.

Backstab usually implies rear-arc validation plus a single-button finisher. Stealth takedown is the broader family: choke from cover, ledge pull, poison dart from bushes, air assassination, and context prompts on unaware targets. Share one pipeline (validate → prompt → commit → resolve → aftermath) even when animations differ.

Rear cone and position validation

Players learn takedown rules through consistent geometry. Document these checks in a single TakedownValidator module:

Angle cone

Compute the vector from victim to attacker in the horizontal plane. Compare to victim forward (−Z or mesh forward). Typical bands:

  • Strict rear — 60–90° total cone (30–45° per side). Soulslike backstabs and military sim neck breaks.
  • Flank-inclusive — 120–140° for action-stealth (Dishonored-style) where side approaches still feel fair if crouched.
  • Omni-context — only from designated “ledge” or “haystack” volumes; angle check disabled inside those triggers.

Distance band

Min distance prevents clipping inside the mesh; max distance (1.2–2.0 m for humanoids) prevents lunge grabs from across the room. Scale with victim capsule radius.

Height delta

Standing-on-ledge takedowns require attacker Y > victim Y + threshold. Underwater or prone victims may disable certain branches.

Target awareness state

Gate on NPC alert enum: Unaware, Suspicious (optional allow with higher risk), Combat (deny unless special ability). Pair with patrol and leash so returning guards are valid targets only when back in Patrol state.

Obstruction and witnesses

Raycast attacker→victim center mass; partial cover blocks prompt. Separately query perception for third-party NPCs with LOS to the interaction point — witnesses cancel prompt or escalate to partial alert on commit.

Takedown FSM: approach, prompt, commit, resolve

  1. Idle / scan — each frame, eligible victims within range run CanTakedown(). Highest priority victim wins (closest unaware rear).
  2. Prompt visible — show UI glyph; optionally slow victim head-turn rate so micro-adjustments do not instantly invalidate the cone.
  3. Commit — player presses input; lock both actors into synced animation root; disable normal AI and player locomotion.
  4. Wind-up — 0.3–1.0 s vulnerable window where damage or loud noise can cancel (design choice: honor cancel or play stumble fail).
  5. Execute — apply damage, kill flag, or sleep debuff; emit noise event with branch-specific radius and loudness.
  6. Resolve — spawn corpse ragdoll or carry state; restore player control; start body timer and witness checks.

Animation sync matters: snap attacker to a socket offset behind the victim at commit time rather than trusting pre-commit positions. Networked games should server-authorize commit and replicate a single montage ID.

Lethal vs non-lethal branches

Splitting branches gives ghost scoring and loadout identity real teeth:

Branch Speed Noise Corpse Scoring
Lethal (knife, garrote cut) Fast (0.4–0.7 s) Low–medium burst Permanent body, blood decal optional Often penalized on ghost routes
Non-lethal (choke, sleeper hold) Slow (1.0–1.8 s) Very low if uninterrupted Body sleeps; wakes after timer unless hidden Preferred for pacifist achievements
Gadget (tranq dart, shock mine) Instant on hit Depends on gadget Standing slump or fall Ammo-limited; rewards planning

Let players swap default branch via input modifier (hold vs tap) or equipment. Crouch often gates quieter non-lethal — tie into stance speed and noise tables rather than duplicating logic.

Body handling and alert propagation

Corpses are level state. Treat them like interactables with a lifecycle:

  • Slump in place — default; patrol discovers on overlap or LOS within 8–15 m.
  • Carry / drag — slower movement, stamina drain; dump in closet, water, or dumpster volume tagged body_hide.
  • Hide in container — one-shot interact; body removed from world until container opened.
  • Environmental dissolve — shark water, incinerator; trades realism for friction reduction in power fantasy stealth.

Discovery escalation should be staged: curious guard walks over (“Huh?”) → alert group if body in open → manhunt if weapon drawn on player. Sleeping bodies that wake add tension without instant fail.

Noise from takedowns must use a dedicated event type so guards distinguish choke scuffle (12 m audible) from unsuppressed gunfire (80 m). Partial alert (“investigate last noise”) preserves ghost fantasy better than instant combat for minor mistakes.

Chain takedowns and special contexts

Sequential chain

After resolve, briefly extend rear-cone forgiveness (0.5 s) so a second guard walking into range can be taken without re-entering crouch. Cap chain depth (2–3) to prevent hallway vacuuming.

Air and ledge

Trigger volumes above victims; attacker drops onto target with i-frames during descent. Validate ground clearance so players do not clip into rails.

Social stealth blend

Disguised players may get a narrow “subdue in crowd” prompt when isolated in a blending zone — witness count must be zero even if disguise is valid.

Co-op sync

Dual takedowns require both players in valid cones on the same victim; server waits for both commit inputs within 0.3 s window.

Harbor Dockyard refactor (worked example)

Three passes aligned scoring with feel:

  1. Cone and prompt — rear arc tightened to 70°; prompt shows only when crouched or within 0.8 m; victim rotation frozen 1.2 s after prompt appears. Side-angle false positives dropped 78%.
  2. Branch noise table — choke 10 m / 0.35 loudness, knife 18 m / 0.55, failed struggle 25 m. Guards on partial alert investigate instead of instant squad aggro.
  3. Body states — drag to crate sets hidden; open doorway slump sets suspicious (faster patrol glance); discovered triggers dock-wide alert only if witness has LOS to both body and player.

Playtest metric: median time-to-first-takedown unchanged; ghost clears up because failures became recoverable investigations instead of hard resets.

Technique decision table

Approach Best when Skip when
Rear-cone synced takedown Third-person infiltration; ghost scoring; melee-adjacent fantasy Pure top-down tactics with no facing
Backstab damage multiplier only Action RPGs where stealth is opportunistic, not primary verb Pacifist or zero-detection missions
One-hit assassination from disguise Social stealth sandboxes with isolated targets Horde combat corridors
Ranged tranquilizer Large open camps; risk of miss and alert Tight timing puzzles with no inventory
Open combat only Power fantasy, co-op brawlers Stealth-as-skill identity (Thief, Hitman ghost routes)
Environmental kill volumes Chandelier / cliff kills as set-piece rewards Every enemy must be interactively removable

Common pitfalls

  • 180-degree backstab — side hugs read as exploits; players distrust prompts.
  • Same noise for all kills — chokes wake the map; ghost routes die.
  • No witness check at commit — guard walks past during 1.5 s animation; comedy or rage depending on tone.
  • Corpses with no discovery path — bodies become clutter with no gameplay consequence.
  • Moving victims invalidate mid-animation — snap or freeze at commit; do not cancel silently.
  • Takedown as only damage source — bosses and armored targets need explicit immunity flags.
  • Identical lethal/non-lethal timing — removes meaningful loadout choice.

Production checklist

  • Centralize CanTakedown(victim, attacker, branch) with angle, distance, height, awareness, and witness checks.
  • Publish cone degrees and distance bands in design wiki; debug-draw in editor.
  • Implement FSM: scan → prompt → commit → wind-up → execute → resolve.
  • Sync animations via socket snap at commit; tag i-frames and cancel windows.
  • Split lethal vs non-lethal noise events and corpse lifecycle rules.
  • Add body states: exposed, hidden, sleeping, discovered; wire patrol reactions.
  • Support carry/drag or hide volumes on levels that score ghost performance.
  • Cap chain takedowns; test with two guards on overlapping patrol loops.
  • Network: server-authorize commit; replicate montage ID and corpse entity.
  • Accessibility: optional longer prompt window or aim-assist cone widening (single-player).
  • Log takedown success, cancel, witness break, and discovery for tuning sessions.

Key takeaways

  • Stealth takedowns reward positioning — validate rear cones, distance, awareness, and witnesses in one module players can learn.
  • Split lethal and non-lethal branches on speed, noise, and corpse rules so ghost scoring and loadouts matter.
  • Harbor Dockyard ghost clears rose from 11% to 44% after tightening the rear arc, tuning choke noise, and staging body discovery.
  • Corpses are world state — hide volumes, patrol discovery, and staged escalation beat silent kills with no consequences.
  • Freeze victim rotation during the prompt window so fair commits are not invalidated by micro head-turns.

Related reading