RedM documentation
Murphy's Doctor
Configuration
Surgery
This page covers shared/config_surgery.lua: which wounds a doctor can operate on, where, with which items, how each procedure is played and what success or failure does. The 3D minigames used by the procedures are tuned in Minigames.
- How an operation works
- Access and requirements
- Procedures and view
- Result and infection
- Incision game (2D)
- Bullet extraction (2D)
- Anesthesia
- Staging: camera, poses, sounds
- Examples
How an operation works
- The doctor picks "Operate" on a patient (
murphy_interactoption, radial menu, or the native key, G by default:Config.Interactions.NativeKeys.Surgery). - The window lists the patient's operable wounds (type in
Types, severity at leastMinSeverity) and offers anesthesia when enabled. - The server checks the doctor, the distance, the dispensary and the items, then picks the procedure of the wound and whether it is played in 3D or 2D.
- The doctor plays the minigame. The patient lies in the operating pose, on an operating table when
Config.Minigames3D.OperatingTableis set. - Success lowers the wound to
SuccessSeverityand lets it heal on its own. Each slip or missed incision may infect the patient.
Billing can require the patient to pay first (Billing).
Access and requirements
| Key | Default | Description |
|---|---|---|
Config.Surgery.Enabled |
true |
Master switch. false removes the "Operate" action everywhere. |
Config.Surgery.Types |
{ "projectile", "fractured", "cut" } |
Injury types that can be operated on. |
Config.Surgery.MinSeverity |
"moderate" |
Lowest severity that can be operated on: "moderate" (moderate and severe) or "severe" (severe only). |
Config.Surgery.MaxDistance |
3.0 |
Metres between doctor and patient, checked by the server. |
Config.Surgery.RequireDispensary |
true |
Operations only inside a dispensary: the doctor must be within DispensaryRadius of the coords of one of Config.Dispensaries (Dispensaries). false allows operating anywhere. |
Config.Surgery.DispensaryRadius |
25.0 |
Metres around a dispensary's coords. |
Config.Surgery.Item |
nil |
Item taken from the doctor at the start of every operation, for example "trousse_chirurgie". nil = no item needed. |
Config.Surgery.SterileItem |
"sterile_kit" |
Sterile instruments, prepared at the apothecary bench. When the doctor carries one, it is used up at the start of the operation and lowers the infection risk. nil = feature off. |
Config.Surgery.SterileInfectionFactor |
0.4 |
Multiplier on the infection chance per slip when sterile instruments were used. 0.4 = 60 % less risk. |
Procedures and view
| Key | Default | Description |
|---|---|---|
Config.Surgery.Procedures |
see below | Procedure per injury type. A type without an entry uses "incision". |
Config.Surgery.View |
"3d" |
"3d": procedures are played in the world, on the patient's body with props (Minigames). "2d": on screen, in the interface. |
Procedures:
| Value | What the doctor does | 3D | 2D fallback |
|---|---|---|---|
"bullet" |
Pulls the bullet out with forceps | yes | forceps extraction on screen |
"suture" |
Stitches the cut | yes | incision game |
"fracture" |
Sets the bone: traction, splints, bandage (skull and ribs: bandage only) | yes | incision game |
"incision" |
Stops a moving blade inside a target zone | no | incision game |
Shipped mapping: projectile = "bullet", cut = "suture", fractured = "fracture".
A procedure is played in 3D when all of these are true: View = "3d", Config.Minigames3D.Enabled = true, the wounded body part is in Config.Minigames3D.CareParts (and allowed by its games list), and the game is not in Config.Minigames3D.Disabled. Otherwise it falls back to 2D.
Result and infection
| Key | Default | Description |
|---|---|---|
Config.Surgery.SuccessSeverity |
"minor" |
Severity of the wound after a successful operation. The wound is then allowed to auto-heal (delay of Config.DamageDetection.AutoHeal, see Damage and injuries). |
Config.Surgery.FailInfection.diseaseId |
"sepsis" |
Disease that may be caught on each slip or missed incision. Must be a grimoire disease id. |
Config.Surgery.FailInfection.chancePerMiss |
0.15 |
0.0 to 1.0. Chance per slip or miss, rolled once for each. Multiplied by SterileInfectionFactor with sterile instruments. |
How success is judged:
| View / procedure | Success when |
|---|---|
| 3D games | The game is completed with a quality of at least Config.Minigames3D.MinScore |
| 2D bullet extraction | The bullet is extracted with no more than Bullet.SlipsAllowed slips |
| 2D incision | At least Minigame.HitsNeeded of the Minigame.Rounds incisions land in the zone |
A failed operation leaves the wound as it was. Results reported faster than the minimum time of the game are rejected by the server.
Incision game (2D)
Config.Surgery.Minigame:
| Key | Default | Description |
|---|---|---|
Config.Surgery.Minigame.Rounds |
4 |
Number of incisions. |
Config.Surgery.Minigame.HitsNeeded |
3 |
Successful incisions needed. |
Config.Surgery.Minigame.ZoneWidth |
0.16 |
Width of the target zone, as a fraction of the bar (0 to 1). Wider = easier. |
Config.Surgery.Minigame.Speed |
0.9 |
Bar sweeps per second. Higher = harder. |
Config.Surgery.Minigame.TimeLimitSeconds |
60 |
Seconds allowed for the incision game before the session expires on the server. |
Bullet extraction (2D)
Config.Surgery.Bullet tunes the on-screen forceps game. Two of its keys also apply to the 3D games: Tremor (hand tremor, combined with anesthesia) and RewardItem.
| Key | Default | Description |
|---|---|---|
Config.Surgery.Bullet.Style |
"pivot" |
"pivot": the forceps pivot in the bullet hole, the wound track is hidden and bends with depth, the forceps shake when the angle drifts. "trace": the wound channel is drawn open, guide the forceps down without touching the walls. |
Config.Surgery.Bullet.SlipsAllowed |
3 |
Touches of the wound walls allowed before the operation fails. |
Config.Surgery.Bullet.ChannelLength |
230 |
Wound depth on screen, in pixels at 1080p. |
Config.Surgery.Bullet.ChannelWidth |
34 |
Wound width at the entry, in pixels at 1080p. It narrows towards the bullet. |
Config.Surgery.Bullet.GripSeconds |
0.7 |
Seconds to hold the mouse button on the bullet to grip it. |
Config.Surgery.Bullet.Tremor |
1.0 |
Hand tremor. 0 = steady hand. Multiplied by the anesthesia factor. In 3D games it also narrows the forceps tolerance. |
Config.Surgery.Bullet.MinSeconds |
4 |
Seconds. A 2D extraction faster than this is rejected by the server. |
Config.Surgery.Bullet.TimeLimitSeconds |
150 |
Seconds allowed for a 2D extraction. |
Config.Surgery.Bullet.RewardItem |
"extracted_bullet" |
Item given to the doctor after a successful bullet extraction (2D or 3D). nil = nothing. |
3D games use their own time limits and minimum times: Config.Minigames3D.TimeLimit and MinSeconds (Minigames).
Anesthesia
Before operating, the doctor may put the patient to sleep. Asleep, the patient sees a black screen and does not move, and the doctor's hand is steadier. Awake, the patient struggles: stronger tremor, cries and jolts on each slip.
| Key | Default | Description |
|---|---|---|
Config.Surgery.Anesthesia.Enabled |
true |
Offers anesthesia in the operation window. false: no anesthesia and no tremor multiplier. |
Config.Surgery.Anesthesia.Item |
"ether" |
Item taken from the doctor when the patient is put to sleep. nil = free. |
Config.Surgery.Anesthesia.TremorAwake |
2.2 |
Tremor multiplier when the patient is awake. |
Config.Surgery.Anesthesia.TremorAsleep |
0.8 |
Tremor multiplier when the patient sleeps. |
Staging: camera, poses, sounds
| Key | Default | Description |
|---|---|---|
Config.Surgery.Camera.Enabled |
true |
Close camera on the wound for the doctor during the 2D bullet extraction. |
Config.Surgery.Camera.Distance |
0.85 |
Metres from the wound. |
Config.Surgery.Camera.Height |
0.55 |
Metres above the wound. |
Config.Surgery.Camera.Fov |
38.0 |
Field of view in degrees. |
Config.Surgery.Poses.Doctor |
"wound_clean_kneel" |
Doctor pose during the 2D bullet extraction: a key of Config.Animations (Animations) or a { dict, clip, flag } table. Other 2D procedures use the wound_clean animation. |
Config.Surgery.Poses.Patient |
{ dict = "script_re@injured_rider@dr_office", clip = "surgery_idle_vic", flag = 1 } |
Patient pose during an operation or an injection, played by the patient's own client. A key of Config.Animations or a { dict, clip, flag } table. false leaves the patient as is. |
Config.Surgery.Sounds.Slip |
{ name = "Jules_VOFX_Pain_Small", set = "Mob4_Sounds" } |
Played on the patient when the forceps slip, heard by the doctor. |
Config.Surgery.Sounds.PatientPain |
{ name = "Jules_VOFX_Pain_Medium", set = "Mob4_Sounds" } |
The awake patient's own cry. |
Config.Surgery.Sounds.Extract |
{ name = "Heartbeat", set = "RDRO_Sniper_Tension_Sounds", frontend = true } |
Cue of the 2D bullet extraction. frontend = true plays it as an interface sound. |
Config.Surgery.Bones.<part> |
see below | Bone the 2D camera looks at, per body part. |
A sound is { name, set } from a game soundset; nil makes it silent. The patient pose lies the patient back: set Config.Minigames3D.OperatingTable or operate on a bed so they do not float (Minigames).
Config.Surgery.Bones:
| Part | Bone |
|---|---|
head |
skel_head |
belly |
skel_spine2 |
left-arm |
skel_l_forearm |
right-arm |
skel_r_forearm |
left-leg |
skel_l_thigh |
right-leg |
skel_r_thigh |
left-foot |
skel_l_foot |
right-foot |
skel_r_foot |
Examples
Operate anywhere, on severe wounds only, with a surgical kit:
Classic on-screen games only:
Make burns operable with the incision game:
Create the items you reference (ether, sterile_kit, extracted_bullet, your surgical kit) in your inventory (Items).
Last updated: November 20, 2026