RedM documentation
Murphy's Doctor
Configuration
Damage and injuries
This page explains how a hit becomes an injury and documents every setting involved: shared/config_damage.lua (detection, bleeding, natural healing), shared/injuries.lua (screen effects, walk styles, global effect switches), shared/injuries_types.lua (injury type definitions), shared/injuries_bodyparts.lua and shared/injury_label.lua.
- How a hit becomes an injury
- Detection settings
- Weapons and injury types
- Body zones
- Severity
- Natural healing
- Bleeding
- Injury effects (injuries.lua)
- Injury types (injuries_types.lua)
- Body part effects (injuries_bodyparts.lua)
- Injury labels (injury_label.lua)
- How to tune or add an injury type
How a hit becomes an injury
Detection runs on each player's client. For every damage event on the player:
- The weapon of the hit is read from the game event and mapped to an injury type (see Weapons and injury types). A melee strike with a firearm in hand (pistol-whip) becomes
blunt. An unknown weapon becomesbruised. - Falls are filtered: a fall hit only counts if the player was really off the ground in the last
FallAirborneGraceMs, and only aboveFallDamageThreshold. A fall under 40 damage becomesbruised, 40 or more staysfractured. - Types listed in
DisabledInjuryTypesare dropped. - Hits under
MinDamageThresholdare ignored. - A random roll against
InjuryProbabilitydecides whether this hit leaves an injury at all. - The body zone is chosen (see Body zones) and the severity computed from the damage (see Severity).
- The injury is stored on that zone. One zone holds one injury: a new one replaces the previous.
- For
cutandprojectileinjuries, a bleeding roll can start a hemorrhage (see Bleeding).
No injury is created during the first SpawnGraceMs after a spawn or character load, for 1.5 seconds after a revive or a player model change, or while the player is dead or in a coma. When a player falls into a coma without an injury matching the cause, a severe one is added (see Coma).
Detection settings
All keys are in Config.DamageDetection (shared/config_damage.lua), read by the client.
| Key | Default | Description |
|---|---|---|
Config.DamageDetection.Enabled |
true |
Master switch of automatic injury detection. false = no injury from damage (commands, coma and exports still add injuries). |
Config.DamageDetection.MinDamageThreshold |
10 |
HP. Hits that take less health than this never create an injury. |
Config.DamageDetection.FallDamageThreshold |
15 |
HP. Minimum fall damage for an injury. Under 40 HP the fall gives a bruise, from 40 HP a fracture. |
Config.DamageDetection.FallAirborneGraceMs |
2000 |
Milliseconds. A fall hit counts only if the player was falling, ragdolled or more than 1.8 m above ground within this window. It filters out other resources that hurt the ped with the fall damage type (framework hunger or thirst damage). 0 turns the filter off. |
Config.DamageDetection.SpawnGraceMs |
10000 |
Milliseconds after a spawn or character load during which damage is ignored. Prevents phantom fractures from the scripted health restore and the small fall while the world streams in. |
Config.DamageDetection.InjuryProbability |
0.25 |
0.0 to 1.0. Chance that a hit above the threshold leaves an injury. 0.25 = one hit in four. Raise it for a harsher server. |
Config.DamageDetection.DisabledInjuryTypes |
{ bleeding = true } |
Injury types that are never created. Add projectile = true to disable bullet wounds, for example. bleeding is disabled on purpose: bleeding is a state attached to the cut or bullet wound, not a separate injury. Leave it disabled. |
Config.DamageDetection.InjuryAging |
table | Real-time healing of the injuries that never heal on their own. See Natural healing. |
Config.DamageDetection.AutoHeal |
table | Automatic healing of light injuries. See Natural healing. |
Config.DamageDetection.Bleeding |
table | Hemorrhage chances, drain and stamina loss. See Bleeding. |
Weapons and injury types
The weapon to injury type table is in client/damage.lua (WeaponToInjuryType). The client/ folder is editable: add a weapon hash there to classify a custom weapon. Any weapon not in the table gives a bruised injury.
| Injury type | Weapons |
|---|---|
bruised |
WEAPON_UNARMED (fists), WEAPON_DROWNING, falls under 40 HP, unknown weapons |
blunt |
WEAPON_MELEE_HAMMER, WEAPON_THROWN_TOMAHAWK, any firearm used in melee |
cut |
WEAPON_MELEE_KNIFE, WEAPON_MELEE_MACHETE, WEAPON_MELEE_HATCHET, WEAPON_MELEE_CLEAVER, WEAPON_MELEE_BROKEN_SWORD, WEAPON_THROWN_KNIFE, WEAPON_ANIMAL |
projectile |
Bows (WEAPON_BOW, WEAPON_BOW_IMPROVED) and every pistol, revolver, rifle, repeater, shotgun and sniper rifle of the base game |
fractured |
WEAPON_FALL, WEAPON_MELEE_FALLS (40 HP and more) |
burned |
WEAPON_FIRE, WEAPON_EXPLOSION |
bleeding |
WEAPON_BLEEDING (disabled by DisabledInjuryTypes) |
Body zones
Eight fixed zones: head, belly, left-arm, right-arm, left-leg, right-leg, left-foot, right-foot.
- A headshot (reported by the game) goes to
head. - A fall goes to a random leg or foot.
- Otherwise the bone hit by the game is used when it is not the head. The game often reports the head bone for any hit, so a head result without a headshot is spread at random over
head,belly,left-armandright-arm.
Severity
Three severities: minor, moderate, severe. From the damage of the hit (HP lost):
| Damage | Severity |
|---|---|
| 50 or more | severe |
| 25 to 49 | moderate for a type whose base severity is minor, severe otherwise |
| under 25 | the type's baseSeverity |
So a bullet (baseSeverity = "severe") is always severe, a fist hit is minor unless it hurt badly.
Natural healing
Three mechanisms make injuries go away without a doctor.
Auto-heal (light injuries)
Counted in play time on the player's client. The clocks restart at each connection.
| Key | Default | Description |
|---|---|---|
Config.DamageDetection.AutoHeal.Enabled |
true |
Master switch. |
Config.DamageDetection.AutoHeal.MinorHealTime |
300 |
Seconds. A minor injury that can auto-heal closes after this. |
Config.DamageDetection.AutoHeal.ModerateHealTime |
600 |
Seconds. Same for a moderate injury. |
Severe injuries never auto-heal. An injury type can refuse auto-heal at a given severity by setting its autoHeal.timeMinor or autoHeal.timeModerate to 0 in injuries_types.lua (see Injury types). The other autoHeal values of a type are informational: the actual delay is always MinorHealTime or ModerateHealTime. The check runs every 30 seconds.
Injury aging (everything else)
Counted in real time on the server, online or offline, from the moment the server first saw the injury. It guarantees no injury is permanent: a character who logs out with a broken leg does not come back with it days later.
| Key | Default | Description |
|---|---|---|
Config.DamageDetection.InjuryAging.Enabled |
true |
Master switch. |
Config.DamageDetection.InjuryAging.SevereToModerateMinutes |
360 |
Minutes. A severe injury becomes moderate after 6 hours. |
Config.DamageDetection.InjuryAging.ModerateHealMinutes |
720 |
Minutes. A moderate or minor injury that cannot auto-heal closes 12 hours after its last severity change. A severe injury therefore disappears after 18 hours in total. |
Config.DamageDetection.InjuryAging.CheckIntervalSeconds |
300 |
Seconds. How often online players are re-checked. Offline time is applied when the character loads. |
Other paths
- Waking up from a coma (any way) turns every severe injury into moderate.
- A successful surgery sets the injury to
Config.Surgery.SuccessSeverityand lets it auto-heal (Surgery). - A signed treatment that matches the injury removes it (Treatment).
Bleeding
When a cut or projectile injury is created, a roll decides whether a hemorrhage starts. The hemorrhage sets the bleeding condition on the player (visible blood, pale skin on examination) at the zone of the wound. Separately, every wound whose type has effects.bleeding enabled for its severity drains health and stamina on each drain tick (every InjuriesConfig.Settings.DrainTickInterval, 5 seconds by default) as long as it is open.
| Key | Default | Description |
|---|---|---|
Config.DamageDetection.Bleeding.Enabled |
true |
Master switch: hemorrhage rolls, visual blood and the bleeding drain. |
Config.DamageDetection.Bleeding.Probability |
0.18 |
0.0 to 1.0. Hemorrhage chance for a cut or projectile wound whose weapon has no entry in FirearmChances (knives, animals...). |
Config.DamageDetection.Bleeding.FirearmChances.<category>.Chance |
see below | 0.0 to 1.0. Hemorrhage chance for that weapon category. |
Config.DamageDetection.Bleeding.FirearmChances.<category>.Severity |
see below | Weights of the hemorrhage severity (minor, moderate, severe), should add up to 1.0. Without it, the hemorrhage takes the wound's severity. |
Config.DamageDetection.Bleeding.NPCAttackerMultiplier |
0.5 |
Multiplier on the chance when the attacker is not a player. 0.5 = NPCs cause half as many hemorrhages. |
Config.DamageDetection.Bleeding.TickInterval |
5000 |
Not read in 1.0. The bleeding drain follows InjuriesConfig.Settings.DrainTickInterval. |
Config.DamageDetection.Bleeding.HealthDamage.Enabled |
true |
Turns the bleeding health drain on. |
Config.DamageDetection.Bleeding.HealthDamage.InnerCoreAmount.<severity> |
1 / 3 / 5 | Health core points removed per tick, per bleeding wound (minor / moderate / severe). |
Config.DamageDetection.Bleeding.HealthDamage.OuterBarAmount.<severity> |
1 / 3 / 5 | Health bar HP removed per tick, per bleeding wound. |
Config.DamageDetection.Bleeding.HealthDamage.CanKill.<severity> |
false / false / true |
Whether bleeding of that severity can take the player to 0 HP (and into a coma). Otherwise the drain stops at 1 HP. |
Config.DamageDetection.Bleeding.StaminaDrain.Enabled |
true |
Turns the bleeding stamina drain on. |
Config.DamageDetection.Bleeding.StaminaDrain.InnerCoreAmount.<severity> |
2 / 4 / 8 | Stamina core points removed per tick, per bleeding wound. |
Config.DamageDetection.Bleeding.StaminaDrain.OuterBarAmount.<severity> |
5 / 10 / 20 | Stamina bar points removed per tick, per bleeding wound. |
Shipped weapon categories:
| Category | Weapons | Chance |
Severity minor / moderate / severe |
|---|---|---|---|
pistol |
WEAPON_PISTOL, Volcanic, Mauser, semi-auto |
0.14 | 0.5 / 0.4 / 0.1 |
revolver |
Cattleman, Double-Action, Schofield, LeMat, Navy | 0.18 | 0.3 / 0.5 / 0.2 |
rifle |
Bolt-action, Springfield, Varmint | 0.21 | 0.2 / 0.5 / 0.3 |
repeater |
Carbine, Evans, Henry, Winchester | 0.19 | 0.3 / 0.5 / 0.2 |
shotgun |
Double-barrel, pump, repeating, sawed-off | 0.26 | 0.1 / 0.3 / 0.6 |
sniper |
Carcano, Rolling Block | 0.32 | 0.0 / 0.2 / 0.8 |
bow |
Bow, improved bow | 0.12 | 0.5 / 0.4 / 0.1 |
thrown |
Throwing knife, tomahawk, dynamite | 0.09 | 0.7 / 0.3 / 0.0 |
The weapon to category table is WeaponToCategory in client/damage.lua.
Bleeding is stopped by a doctor's treatment (bandage, suture). The bandage quick-heal of Config.Interactions.Bandage only restores HP.
Injury effects (injuries.lua)
shared/injuries.lua defines the presets used by the injury types and the global switches of the effects system. Effects are computed on the client every second; the most severe injury decides the screen effect, and leg, foot and head injuries decide the walk style first.
Screen effects
InjuriesConfig.ScreenEffects holds named presets, each mapping a severity to an animpostfx name (nil = no effect). An injury type picks a preset by name in its effects.screenEffect.
| Preset | minor |
moderate |
severe |
|---|---|---|---|
default |
none | ODR3_Injured01Loop |
ODR3_Injured02Loop |
burned |
none | ODR3_Injured01Loop |
ODR3_Injured03Loop |
poisoned |
PlayerDrugsPoisonWell |
PlayerDrugsPoisonWell |
PlayerDrugsPoisonWell |
concussion |
PlayerDrunk01 |
PlayerDrunk01 |
ODR3_Injured03Loop |
Other useful animpostfx names: PlayerHealthLow, PlayerHealthPoor, MP_Downed, directionalhit01. More in the rdr3_discoveries repository.
Walk styles
InjuriesConfig.MovementClipsets maps a body zone and a severity to a movement clipset. It is used by injury types whose effects.movementClipset is "bodyPart".
| Zone | minor |
moderate |
severe |
|---|---|---|---|
left-leg, right-leg, left-foot, right-foot |
none | dehydrated_unarmed |
very_drunk |
belly |
none | none | dehydrated_unarmed |
head |
none | slightly drunk |
very_drunk |
Arms have no entry, so they never change the walk.
Global switches
InjuriesConfig.Settings, read by the client:
| Key | Default | Description |
|---|---|---|
InjuriesConfig.Settings.EnableScreenEffects |
true |
Screen effects of injuries and diseases. |
InjuriesConfig.Settings.EnableMovementEffects |
true |
Walk styles of injuries and diseases. |
InjuriesConfig.Settings.EnableHealthDrain |
true |
Health drain of the injury types (effects.healthDrain). |
InjuriesConfig.Settings.EnableStaminaDrain |
true |
Stamina drain of the injury types (effects.staminaDrain). |
InjuriesConfig.Settings.EnablePreventSprint |
true |
Sprint blocking (effects.preventSprint). |
InjuriesConfig.Settings.EnablePreventJump |
false |
Jump blocking (effects.preventJump). Off by default because it frustrates players. |
InjuriesConfig.Settings.EnableRagdoll |
true |
Random falls while running with an injury (effects.ragdollChance). |
InjuriesConfig.Settings.EnablePainAnimations |
true |
Occasional pain animations of injuries and diseases. |
InjuriesConfig.Settings.EnableBleeding |
true |
Visual blood on bleeding wounds. Works with Config.DamageDetection.Bleeding.Enabled. |
InjuriesConfig.Settings.EffectsTickInterval |
1000 |
Milliseconds between two updates of screen effects, walk styles, sprint/jump blocking and pain animations. |
InjuriesConfig.Settings.DrainTickInterval |
5000 |
Milliseconds between two health, stamina and bleeding drain ticks. |
InjuriesConfig.Settings.RagdollCheckInterval |
2000 |
Milliseconds between two ragdoll rolls. |
InjuriesConfig.Settings.HealthDrainMultiplier |
1.0 |
Multiplies every injury health drain. 0.5 halves it. |
InjuriesConfig.Settings.StaminaDrainMultiplier |
1.0 |
Multiplies every injury stamina drain. |
InjuriesConfig.Settings.RagdollChanceMultiplier |
1.0 |
Multiplies every ragdoll chance. |
InjuriesConfig.Settings.Debug |
false |
Extra debug prints of the effects system. |
Severe injuries (and any fracture) also play a looped idle pose chosen by zone: labored_breath for the belly, hold_arm for an arm, injured_leg for a leg. These animations are entries of Animations.
Injury types (injuries_types.lua)
InjuriesConfig.Types defines every injury type. The key is the type id stored on the player.
Fields
| Field | Type | Description |
|---|---|---|
name |
string | Same as the key. |
label |
string | English fallback label. The displayed label comes from the locale key injuryTypes.<type> first. |
labelFr |
string | Not read. French texts come from shared/locales/fr.lua. |
icon |
string | UI icon: injured, bleeding, cold, hot or poisoned. |
baseSeverity |
string | Severity of a light hit (see Severity). |
effects.screenEffect |
nil, string or table |
nil = none. A string is a preset name of InjuriesConfig.ScreenEffects ("default", "burned"...) or a raw animpostfx name. A table maps severities: { minor = nil, moderate = "...", severe = "..." }. |
effects.movementClipset |
nil, "bodyPart" or table |
"bodyPart" uses InjuriesConfig.MovementClipsets for the injured zone. A table maps severities to clipsets. |
effects.healthDrain |
number or table | HP lost per second while the injury is open (applied every drain tick, multiplied by the tick length). A table maps severities. |
effects.staminaDrain |
number or table | Stamina core points lost per second. |
effects.preventSprint |
boolean or table | Blocks sprinting. A table maps severities. |
effects.preventJump |
boolean or table | Blocks jumping (needs EnablePreventJump). |
effects.ragdollChance |
number or table | 0.0 to 1.0. Chance to fall on each ragdoll check while running; 1.5 times higher while sprinting. |
effects.bleeding |
table | enabled plus per-severity booleans (minor, moderate, severe): whether the wound bleeds (visual blood and the bleeding drain of Config.DamageDetection.Bleeding). |
autoHeal |
table | timeMinor, timeModerate, timeSevere: a value of 0 forbids auto-heal at that severity. Any other value allows it, with the delay of Config.DamageDetection.AutoHeal. enabled is informational. |
painAnimation |
table | enabled, dict, anim, chance (0.0 to 1.0 per check), interval (seconds between checks). Played upper body. |
The blurEffect (concussion), shiver (hypothermia) and vomit (poisoned) sub-tables are not read by 1.0.
Shipped types
| Type | Base severity | Screen | Walk | Health drain/s (minor / moderate / severe) | Blocks sprint | Bleeds | Auto-heal |
|---|---|---|---|---|---|---|---|
bruised |
minor | none | none | 0 | no | no | minor, moderate |
blunt |
moderate | per severity | zone | 0 / 0 / 1.0 | severe | no | minor only |
cut |
moderate | default | none | 0 / 0.5 / 1.0 | no | moderate, severe | minor only |
projectile |
severe | default | zone | 0.5 / 1.0 / 2.0 | severe | always | minor, moderate (in practice always severe) |
fractured |
severe | per severity | zone | 0 | moderate, severe | no | minor, moderate (in practice always severe) |
burned |
severe | burned |
none | 0 / 0.5 / 1.5 | no | no | minor only |
bleeding |
severe | default | none | 0.5 / 1.5 / 3.0 | severe | always | minor, moderate (disabled type) |
concussion |
moderate | concussion |
per severity | 0 | no | no | minor, moderate |
hypothermia |
moderate | none | per severity | 0 / 0.3 / 1.0 | severe | no | minor, moderate |
heatstroke |
moderate | per severity | per severity | 0 / 0.5 / 1.5 | moderate, severe | no | minor, moderate |
poisoned |
severe | poisoned |
per severity | 0.5 / 1.0 / 2.0 | no | no | minor, moderate |
Stamina drain, ragdoll chances and pain animation timings are in the file next to each type. concussion, hypothermia, heatstroke and poisoned are added by other systems (prescription side effects, temperature, poisons, commands), not by weapon hits.
Body part effects (injuries_bodyparts.lua)
InjuriesConfig.BodyPartEffects lists per-zone values (concussion chance for the head, aim and reload penalties for arms, vomit chance for the belly, speed penalties for legs and feet). These values are not applied by 1.0: editing them has no effect in game. Walk changes come from InjuriesConfig.MovementClipsets and the injury types.
Injury labels (injury_label.lua)
shared/injury_label.lua has no setting. It provides InjuryLabel(injury), which resolves the label of an injury at display time, in this order:
- the locale key
injuryTypes.<type>of the active language, - the
labelof the type inInjuriesConfig.Types, - the label stored on the injury,
- the generic locale text
symptoms.injured.
So injuries always show in the current language, whatever created them. To rename a type, edit injuryTypes.<type> in shared/locales/<lang>.lua (Localization).
How to tune or add an injury type
Fewer or more injuries overall: change Config.DamageDetection.InjuryProbability and MinDamageThreshold.
Less punishing wounds: lower InjuriesConfig.Settings.HealthDrainMultiplier, or edit effects.healthDrain of one type.
Bullet wounds that heal faster offline: lower Config.DamageDetection.InjuryAging.SevereToModerateMinutes.
Disable a type: add it to Config.DamageDetection.DisabledInjuryTypes.
Add a new type, for example a frostbite from a custom script:
- Add the definition to
InjuriesConfig.Typesinshared/injuries_types.lua:
- Add its label under
injuryTypes.frostbitein eachshared/locales/<lang>.lua. - Make a medication treat it: add
frostbite = 0.8to thetreatsof a medication inConfig.Treatment.MedicationEfficacy(Treatment). Without that, no prescription can heal it and only natural healing removes it. - Create it from a weapon (add the weapon hash to
WeaponToInjuryTypeinclient/damage.lua) or from your own script with the client exportAddInjuryToBodyPart(bodyPart, "frostbite", severity)(Client exports). - Optionally add a grimoire entry with
id = "frostbite"so doctors can read about it (Treatment).
Last updated: November 20, 2026