Jump to content

Mods.Cyberpunk2077.ShootDodge/BIBLE

From MindAttic Docs

Cyberpunk2077.ShootDodge — Project Bible

Single source of truth for what ShootDodge IS, is NOT, and the rules that keep it coherent. README says how to install and use it; this says how to think about it. The finish line lives in docs/RELEASE.md.

1. The one sentence

ShootDodge recreates Max Payne 2's Shootdodge and bullet-time hourglass in first person in Cyberpunk 2077: Shift + Space dives V while the world slows and V, aim and fire stay at full speed.

2. The product promise

  • One push, the game's own arc, a low flat leap; slow-mo ends on landing and V keeps the momentum.
  • Bullet Time mode with an hourglass meter that drains, refills on kills and persists in the save.
  • Any ranged weapon (and Double Trouble dual pistols); a Max Payne 2 outfit and loadout; a text from Max Payne.

3. What it is NOT

  • Not an animation, mesh or archive mod: vanilla items by TweakDB ID, no new assets.
  • Not a third-person mode: the camera stays first person.
  • Not dependent on TweakXL, ArchiveXL, Codeware or RED4ext for its own code (only optional extras need them).

4. Architecture canon

init.lua -> modules/*.lua (logic) + modules/*Driver.lua (game calls)
  Input/ComboDetector -> StateMachine (NONE > DIVING > AIRBORNE > PRONE > GETUP)
  Dive, BulletTime(+Meter, Key), AimFireExemption, HeadshotDriver, DivePolish, GetUp, Prone,
  Loadout, WeaponGate, IntroMessage, Session
r6/scripts/ShootDodge/*.reds  (phone contact, Bullet Time key listener; guarded by ModuleExists)
r6/input/ShootDodge.xml       (Input Loader actions)
tools/package.ps1 + pre-commit hook -> dist/ShootDodge-<version>.zip

4.1 Modules

Logic modules are pure Lua; each has a Driver that talks to the game, so the logic can be reasoned about alone.

4.2 Domain model

Dive, launch impulse, time dilation, exemption, bullet-time meter, landing branch, loadout, quest fact.

4.3 Key services

Detect combo, launch, slow the world, exempt V and weapon, land, refill meter, grant loadout, send the text.

5. The Laws

Inherits MindAttic.HouseRules.md by reference.

  1. Faithful to Max Payne 2 (DESIGN "Max Payne 2 alignment"); deviations are documented.
  2. No per-frame pushes on V: one launch impulse, then the game's arc (C2SD-T61 to T63).
  3. Every effect (slow-mo, FOV, muffle, headshot bonus) is reverted on every exit path.
  4. Optional dependencies compile to nothing when absent (@if(ModuleExists(...))).
  5. The pre-commit hook rebuilds dist/ whenever mod files change; the zip comes from the git index. A post-commit hook re-stages the zip after a path commit (git commit -- <paths>), so the real index never holds a stale one (C2SD-T102).

6. Verified state

  • Gameplay C2SD-T4 to T16 and later passes implemented; MP2 alignment C2SD-T61 to T68; held-key release fix C2SD-T73; 3.0.0 zip built.
  • docs/NEXUS_PAGE.md and docs/TESTING.md written; not yet published, full checklist not yet run.

7. Active frontier

See docs/RELEASE.md: page text and screenshots, then the Nexus upload.

8. Quality bar

A change is done when the zip rebuilds, the matching docs/TESTING.md rows pass in game, and DESIGN records the rule.

9. Glossary

  • Shootdodge: the slow-motion dive. Bullet Time mode: slow-mo without diving, on / by default.
  • CET: Cyber Engine Tweaks. MP2: Max Payne 2.
From Mods.Cyberpunk2077.ShootDodge/docs/BIBLE.md via MindAttic.Docs; synced automatically, so edit the repo, not this page.