[quote=“Coolthulhu, post:15536, topic:42”][quote=“BeerBeer, post:15535, topic:42”]Tell me about the ratios at which the various body parts receive damage?
I assume the torso is the most likely to get hit?
What about legs, arms, hands, feet, etc.?
What are the exact percentages?[/quote]
The percentages depend on accuracy vs your dodge and size difference.
Base chances are
{ bp_eyes, 0.33f },
{ bp_head, 2.33f },
{ bp_torso, 33.33f },
{ bp_arm_l, 20.f },
{ bp_arm_r, 20.f },
{ bp_leg_l, 12.f },
{ bp_leg_r, 12.f }
Chances are relative.
Higher accuracy (soldier zeds, predators) will target eyes and head more and limbs less. The formula is a bit complex, but it’s safe to say that eyes don’t change much here, the head will pretty much never be targeted more often than torso or any single limb, but strong targets are twice as likely to hit the head as the weak ones.
Small critters will not hit head or eyes at all, instead going for legs.
Big critters will attack legs only like 1/3 of the time equal critters would. Other bps are rescaled to account for legs not getting hit. Only head gets a big bonus here.
So priority is torso > arms > legs > head > eyes. If going for strong critters (predators), put head before legs. If you’re worried more about pain than damage, arms before torso.
Ranged combat is totally different and there headshots do matter a lot, since they have a giant multiplier on damage. Torso hits also matter heavily, since good hits prefer torso. Limbs are mostly safe.
Then there is special attack targetting, which uses a third set of rules, in bodypart.cpp. This is the only kind of targeting that can hit hands, feet and mouth.
if (rn == 0) {
return bp_eyes;
}
if (rn <= 1) {
return bp_mouth;
}
if (rn <= 7) {
return bp_head;
}
if (rn <= 16) {
return bp_leg_l;
}
if (rn <= 25) {
return bp_leg_r;
}
if (rn <= 28) {
return bp_foot_l;
}
if (rn <= 31) {
return bp_foot_r;
}
if (rn <= 40) {
return bp_arm_l;
}
if (rn <= 49) {
return bp_arm_r;
}
if (rn <= 52) {
return bp_hand_l;
}
if (rn <= 55) {
return bp_hand_r;
}
return bp_torso;
[/quote]
Wow. Oh, ok. Thanks. Quite a lot going on there, way more than expected.
But this brings further questions:
-
Do monsters ever accidentally hit other than the targeted body parts? Like, if a monster aims for the player head, is it possible that the eyes receive damage instead, or does the monster have to actually aim the eyes? And if eyes are missed, can the head still get hit unintentionally?
-
Did I understand correctly that melee hits to the head don’t have a damage multiplier? Or is it just smaller multiplier than in gunshot cases.