Medical Damage - Improve falling and collision damage (#8861)

* Adjust wound params for falling

* Tweaked thresholds for collision

* Tweaked collision and added custom handling

* medical_damage - cleanup woundHandler naming (#8824)

* medical_damage - cleanup woundHandler naming

* woundsHandlerBase

(cherry picked from commit bdeb347ea9)

* Tweaked thresholds a bit more

* Removed collision handler

Co-authored-by: PabstMirror <pabstmirror@gmail.com>
This commit is contained in:
pterolatypus 2022-05-17 17:54:05 +01:00 committed by GitHub
parent fa45e8b7cb
commit bf8aa1ab7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -193,25 +193,40 @@ class ACE_Medical_Injuries {
}; };
}; };
class collision { class collision {
thresholds[] = {{1.5, 3}, {1.5, 2}, {1, 2}, {1, 1}, {0.05, 1}}; // prevent subdividing wounds past FRACTURE_DAMAGE_THRESHOLD to ensure limp/fractue is triggered thresholds[] = {{8, 4}, {1, 1}, {0.3, 1}, {0.15, 0.5}, {0, 0.3}}; // prevent subdividing wounds past FRACTURE_DAMAGE_THRESHOLD to ensure limp/fractue is triggered
selectionSpecific = 0; selectionSpecific = 0;
class Abrasion {
weighting[] = {{0.30, 0}, {0.30, 1}};
};
class Avulsion { class Avulsion {
weighting[] = {{1, 2}, {0.5, 0.5}, {0.5, 0}}; weighting[] = {{1, 2}, {0.5, 0.5}, {0.5, 0}};
}; };
class Abrasion {
weighting[] = {{0.4, 0}, {0.2, 1}, {0, 0}};
};
class Contusion { class Contusion {
weighting[] = {{0.35, 0}, {0.35, 1}}; weighting[] = {{0.4, 0}, {0.2, 1}};
}; };
class Crush { class Crush {
weighting[] = {{0.1, 1}, {0.1, 0}}; weighting[] = {{0.4, 1}, {0.2, 0}};
}; };
class Cut { class Cut {
weighting[] = {{0.1, 1}, {0.1, 0}}; weighting[] = {{0.1, 1}, {0.1, 0}};
}; };
class Laceration { class Laceration {
};
};
class falling {
thresholds[] = {{8, 4}, {1, 1}, {0.2, 1}, {0.1, 0.7}, {0, 0.5}}; // prevent subdividing wounds past FRACTURE_DAMAGE_THRESHOLD to ensure limp/fractue is triggered
selectionSpecific = 0;
class Abrasion {
weighting[] = {{0.4, 0}, {0.2, 1}, {0, 0}};
sizeMultiplier = 3;
};
class Contusion {
weighting[] = {{0.4, 0}, {0.2, 1}};
sizeMultiplier = 3;
};
class Crush {
weighting[] = {{0.4, 1}, {0.2, 0}};
sizeMultiplier = 1.5;
}; };
}; };
class backblast { class backblast {
@ -250,19 +265,6 @@ class ACE_Medical_Injuries {
}; };
}; };
class falling {
thresholds[] = {{1.5, 3}, {1.5, 2}, {1, 2}, {1, 1}, {0.05, 1}}; // prevent subdividing wounds past FRACTURE_DAMAGE_THRESHOLD to ensure limp/fractue is triggered
selectionSpecific = 0;
class Abrasion {
weighting[] = {{0.30, 0}, {0.30, 1}};
};
class Contusion {
weighting[] = {{0.35, 0}, {0.35, 1}};
};
class Crush {
weighting[] = {{0.1, 1}, {0.1, 0}};
};
};
class ropeburn { class ropeburn {
thresholds[] = {{0.1, 1}, {0.1, 0}}; thresholds[] = {{0.1, 1}, {0.1, 0}};
selectionSpecific = 1; selectionSpecific = 1;