Eh, I`m no coder, could you explain this to me?
if (ad->protection[fd->dmgtype] > 0)
damage *= 1.0 - ad->protection[fd->dmgtype] * ent->AP * 0.0001;
Does it mean, that dmg modifier = 1 - protection value*(what? - armour piercing? armor protection again?)* 0.0001?
So if I shoot an alien for 100 impact damage, and he has protection of 50, then it`s:
100* (1-50*50*0.0001) = 100*0.75=75?
if protection = 25
100*(1-25*25*0.0001) = 100*(1-0,0625) = 100*0,9375 = 93?
Eh, I don`t know... :?