2016-07-30 12:00:42 +00:00
|
|
|
/*
|
|
|
|
Usage:
|
|
|
|
|
2018-07-18 18:13:25 +00:00
|
|
|
#include "\z\ace\addons\medical_engine\script_macros_config.hpp"
|
2016-07-30 12:00:42 +00:00
|
|
|
|
|
|
|
class CfgVehicles {
|
|
|
|
class My_AwesomeUnit_base;
|
|
|
|
class My_AwesomeUnit: My_AwesomeUnit_base {
|
|
|
|
class HitPoints {
|
2022-02-17 20:03:12 +00:00
|
|
|
class HitHands;
|
|
|
|
class HitLegs;
|
|
|
|
ADD_ACE_HITPOINTS;
|
2016-07-30 12:00:42 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
*/
|
|
|
|
|
|
|
|
// Our method for adding left and right arm and leg armor. Uses those selections
|
2022-02-17 20:03:12 +00:00
|
|
|
// that are used for animations and therefore exist in all third party units.
|
|
|
|
// This used to take the armor values as parameters; it now inherits the values
|
|
|
|
// of `armor`, `passThrough` and `explosionShielding` from the existing hitpoints
|
|
|
|
// for vanilla consistency.
|
2016-07-30 12:00:42 +00:00
|
|
|
// "ACE_HDBracket" is a special hit point. It is designed in a way where the
|
|
|
|
// "HandleDamage" event handler will compute it at the end of every damage
|
|
|
|
// calculation step. This way we can figure out which hit point took the most
|
|
|
|
// damage from one projectile and should be receiving the ACE medical wound.
|
|
|
|
// the hit point itself should not take any damage
|
|
|
|
// It is important that the "ACE_HDBracket" hit point is the last in the config,
|
|
|
|
// but has the same selection as the first one (always "HitHead" for soldiers).
|
2022-02-17 20:03:12 +00:00
|
|
|
#define ADD_ACE_HITPOINTS\
|
|
|
|
class HitLeftArm: HitHands {\
|
2016-07-30 12:00:42 +00:00
|
|
|
material = -1;\
|
|
|
|
name = "hand_l";\
|
|
|
|
radius = 0.08;\
|
|
|
|
visual = "injury_hands";\
|
|
|
|
minimalHit = 0.01;\
|
|
|
|
};\
|
|
|
|
class HitRightArm: HitLeftArm {\
|
|
|
|
name = "hand_r";\
|
|
|
|
};\
|
2022-02-17 20:03:12 +00:00
|
|
|
class HitLeftLeg: HitLegs {\
|
2016-07-30 12:00:42 +00:00
|
|
|
material = -1;\
|
|
|
|
name = "leg_l";\
|
|
|
|
radius = 0.1;\
|
|
|
|
visual = "injury_legs";\
|
|
|
|
minimalHit = 0.01;\
|
|
|
|
};\
|
|
|
|
class HitRightLeg: HitLeftLeg {\
|
|
|
|
name = "leg_r";\
|
|
|
|
}
|