I found the AI Dmg Handler its fn_damageHandlerAI2.sqf.
It appears that this is a damage handler dedicated to AI damage..
Reading through it appears that I see an issue which bears out in testing for me. I have had AI take 4 shots to the chest and then 3 shots to the head before dieing from a DMR. Some of it my be my misreading what is going on at the crosshairs, but after several instances I decided to dig a bit deeper.
I'd like to turn on some debugs to see how much dmg the AI are taking, and what groups it thinks the player and the AI are in.
I thought we just had East / West / Neutral, so maybe the AI are aligned to the same "Group" as me and therefore taking dmg/5.
Or it could be that the function call is not passing or allowing those variables to be read properly.
Also it appears that shots are either Head, Legs, or Other, which means if I hit the AI with an AS50 in the chest the damage scale is 300 + 800(player source) + 200(for the size bullet) = 1300* (0.1-1.0) So max damage shot to the chest is 1300 dmg? Seems like they have a Zero missing, a max damage shot to the chest should be a 1 shot kill from an AS50 or something.
It appears that this is a damage handler dedicated to AI damage..
Reading through it appears that I see an issue which bears out in testing for me. I have had AI take 4 shots to the chest and then 3 shots to the head before dieing from a DMR. Some of it my be my misreading what is going on at the crosshairs, but after several instances I decided to dig a bit deeper.
Code:
if ((group _unit) == (group _source)) then {_damage = (_damage/5)}; //Reduce friendly fire and collision damage.
I'd like to turn on some debugs to see how much dmg the AI are taking, and what groups it thinks the player and the AI are in.
I thought we just had East / West / Neutral, so maybe the AI are aligned to the same "Group" as me and therefore taking dmg/5.
Or it could be that the function call is not passing or allowing those variables to be read properly.
Also it appears that shots are either Head, Legs, or Other, which means if I hit the AI with an AS50 in the chest the damage scale is 300 + 800(player source) + 200(for the size bullet) = 1300* (0.1-1.0) So max damage shot to the chest is 1300 dmg? Seems like they have a Zero missing, a max damage shot to the chest should be a 1 shot kill from an AS50 or something.