2016-12-05 20:34:20 +00:00
// bleeding - maximum possible bleeding rate for a given wound type (0 .. 1)
// pain - maximum possible pain level for a given wound type (0 .. 1)
2016-06-30 15:33:29 +00:00
class ACE_Medical_Injuries {
2016-12-05 20:34:20 +00:00
// Defines all the possible injury types
2016-06-30 15:33:29 +00:00
class wounds {
// Source: Scarle
// Also called scrapes, they occur when the skin is rubbed away by friction against another rough surface (e.g. rope burns and skinned knees).
class Abrasion {
causes [ ] = { " falling " , " ropeburn " , " vehiclecrash " , " unknown " } ;
2016-12-05 20:34:20 +00:00
bleeding = 0.001 ;
pain = 0.4 ;
2016-06-30 15:33:29 +00:00
minDamage = 0.01 ;
2016-12-05 20:34:20 +00:00
maxDamage = 0.30 ;
2016-06-30 15:33:29 +00:00
} ;
// Occur when an entire structure or part of it is forcibly pulled away, such as the loss of a permanent tooth or an ear lobe. Explosions, gunshots, and animal bites may cause avulsions.
2016-12-07 20:56:13 +00:00
class Avulsion {
2016-06-30 15:33:29 +00:00
causes [ ] = { " explosive " , " vehiclecrash " , " grenade " , " shell " , " bullet " , " backblast " , " bite " } ;
2017-06-05 16:51:53 +00:00
bleeding = 0.25 ;
2016-12-05 20:34:20 +00:00
pain = 1.0 ;
2016-12-07 18:10:12 +00:00
minDamage = 0.01 ;
2016-12-05 20:34:20 +00:00
causeLimping = 1 ;
2016-06-30 15:33:29 +00:00
} ;
// Also called bruises, these are the result of a forceful trauma that injures an internal structure without breaking the skin. Blows to the chest, abdomen, or head with a blunt instrument (e.g. a football or a fist) can cause contusions.
class Contusion {
causes [ ] = { " bullet " , " backblast " , " punch " , " vehiclecrash " , " falling " } ;
2016-12-05 20:34:20 +00:00
bleeding = 0.0 ;
pain = 0.3 ;
minDamage = 0.02 ;
maxDamage = 0.35 ;
2016-06-30 15:33:29 +00:00
} ;
// Occur when a heavy object falls onto a person, splitting the skin and shattering or tearing underlying structures.
2016-12-07 20:56:13 +00:00
class Crush {
2016-06-30 15:33:29 +00:00
causes [ ] = { " falling " , " vehiclecrash " , " punch " , " unknown " } ;
2017-06-05 16:51:53 +00:00
bleeding = 0.05 ;
2016-12-05 20:34:20 +00:00
pain = 0.8 ;
2016-06-30 15:33:29 +00:00
minDamage = 0.1 ;
2016-12-05 20:34:20 +00:00
causeLimping = 1 ;
2016-06-30 15:33:29 +00:00
} ;
// Slicing wounds made with a sharp instrument, leaving even edges. They may be as minimal as a paper cut or as significant as a surgical incision.
class Cut {
causes [ ] = { " vehiclecrash " , " grenade " , " explosive " , " shell " , " backblast " , " stab " , " unknown " } ;
2016-12-05 20:34:20 +00:00
bleeding = 0.04 ;
pain = 0.1 ;
2016-06-30 15:33:29 +00:00
minDamage = 0.1 ;
} ;
// Also called tears, these are separating wounds that produce ragged edges. They are produced by a tremendous force against the body, either from an internal source as in childbirth, or from an external source like a punch.
class Laceration {
selections [ ] = { " All " } ;
causes [ ] = { " vehiclecrash " , " punch " } ;
2016-12-05 20:34:20 +00:00
bleeding = 0.05 ;
pain = 0.2 ;
2016-06-30 15:33:29 +00:00
minDamage = 0.01 ;
} ;
// Also called velocity wounds, they are caused by an object entering the body at a high speed, typically a bullet or small peices of shrapnel.
2016-12-07 20:56:13 +00:00
class VelocityWound {
2016-06-30 15:33:29 +00:00
causes [ ] = { " bullet " , " grenade " , " explosive " , " shell " , " unknown " } ;
2017-06-05 16:51:53 +00:00
bleeding = 0.5 ;
2016-12-05 20:34:20 +00:00
pain = 0.9 ;
minDamage = 0.35 ;
causeLimping = 1 ;
2016-06-30 15:33:29 +00:00
} ;
// Deep, narrow wounds produced by sharp objects such as nails, knives, and broken glass.
2016-12-07 20:56:13 +00:00
class PunctureWound {
2016-06-30 15:33:29 +00:00
causes [ ] = { " stab " , " grenade " } ;
2017-06-05 16:51:53 +00:00
bleeding = 0.05 ;
2016-12-05 20:34:20 +00:00
pain = 0.4 ;
minDamage = 0.02 ;
causeLimping = 1 ;
2016-06-30 15:33:29 +00:00
} ;
} ;
class damageTypes {
2016-12-05 20:34:20 +00:00
// thresholds[] {{<min damage>, <max number of wounds>}, {...}}
2016-06-30 15:33:29 +00:00
thresholds [ ] = { { 0.1 , 1 } } ;
selectionSpecific = 1 ;
class bullet {
// above damage, amount. Put the highest threshold to the left and lower the threshold with the elements to the right of it.
thresholds [ ] = { { 0.1 , 1 } } ;
selectionSpecific = 1 ;
} ;
class grenade {
thresholds [ ] = { { 0.1 , 3 } , { 0 , 1 } } ;
selectionSpecific = 0 ;
} ;
class explosive {
thresholds [ ] = { { 1 , 6 } , { 0.1 , 4 } , { 0 , 1 } } ;
selectionSpecific = 0 ;
} ;
class shell {
thresholds [ ] = { { 1 , 7 } , { 0.1 , 5 } , { 0 , 1 } } ;
selectionSpecific = 0 ;
} ;
class vehiclecrash {
2016-12-05 20:34:20 +00:00
thresholds [ ] = { { 0.5 , 5 } , { 0.3 , 2 } , { 0.05 , 1 } } ;
2016-06-30 15:33:29 +00:00
selectionSpecific = 0 ;
} ;
class backblast {
thresholds [ ] = { { 1 , 6 } , { 0.55 , 5 } , { 0 , 2 } } ;
selectionSpecific = 0 ;
} ;
class stab {
thresholds [ ] = { { 0.1 , 1 } } ;
selectionSpecific = 1 ;
} ;
class punch {
thresholds [ ] = { { 0.1 , 1 } } ;
selectionSpecific = 1 ;
} ;
class falling {
2016-12-05 20:34:20 +00:00
thresholds [ ] = { { 0.6 , 4 } , { 0.35 , 2 } , { 0.1 , 1 } } ;
2016-06-30 15:33:29 +00:00
selectionSpecific = 1 ;
} ;
class ropeburn {
thresholds [ ] = { { 0.1 , 1 } } ;
selectionSpecific = 1 ;
} ;
class unknown {
thresholds [ ] = { { 0.1 , 1 } } ;
} ;
} ;
} ;