Damage (or getdamage) function is immediate and often used in scripts, as it doesn't need to extract data of the hitpoints.
But this "global" status can be weird, especially on cars. It looks like some calibers are efficient on hitpoints and object aspect (tires burst, screen & hull impacted) but they are totally inefficient for damage ratio (0 to 1).
Everything depends on caliber fired and target, sure, but in a weird manner for one of the most current in-game actions: rifles/HMG against cars!