OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Cheetah on 27 Jul 2008, 20:18:50

Title: Bullet damage
Post by: Cheetah on 27 Jul 2008, 20:18:50
Are there any formulas for the damage of a bullet over a certain distage?

I have to figure out if for example, the M24's bullet (7.62 × 51 mm NATO) has enough energy to knock a man down on 1050 meters.
Same for 5.56 mm bullets (700+ meters).

Does anyone know these bounds of ArmA?
Title: Re: Bullet damage
Post by: ModestNovice on 27 Jul 2008, 20:51:36
http://community.bistudio.com/wiki/ArmA:_Event_Handlers

this addEventHandler ["hit", {_this execVM "distest.sqf"}];

distest.sqf
Code: [Select]
_a = _this select 0;
_b = _this select 1;
_c = _this select 2;
_dis = _a distance (getPos _b);

hint format ["Unit: %1 Shooter: %2 \nDammage: %3 \n\nDistance: %4", _a, _b, _c, _dis];

Maybe something like that?

I don't know if the distance command is right, but hopefully you get the idea...

*EDIT: Sorry I meant hit, not killed event handler.
Title: Re: Bullet damage
Post by: Cheetah on 28 Jul 2008, 09:45:59
Alright, that solves it for a bit. At point blank 1.6 damage, at 1100 meters 0.22 damage. So that's a difference right there.

Meaning probably, that a wooden target which is setDammaged to 0 will not fall regardless of the hit. Even headshots won't get the target down as far as I could see or shoot.
Title: Re: Bullet damage
Post by: Wolfrug on 28 Jul 2008, 11:48:40
Note that the damages from the hit eventhandler are...kinda relative :D As in: 0.22 damage to the HEAD is likely to be a lot more lethal than 0.22 damage to the arms. Same goes for vehicles: hitting certain parts will destroy the vehicle no matter what, hitting other parts won't. Also I'm not entirely sure if the various resistances are factored into this number (try shooting at a tank and then at a car, and see if the number is any different, and if they lost more or less total health - even better, try with a person and then a tank).

Wolfrug out.
Title: Re: Bullet damage
Post by: Cheetah on 28 Jul 2008, 14:42:39
Thanks for the reply wolfrug. Well, what I'm most interested in is taking down an enemy soldier at great distances. Due to the reduced damage, it is harder. Thing is, I'm doing all this with headshots (versus the targets) and they won't fall from what I think is a headshot.
Title: Re: Bullet damage
Post by: ModestNovice on 28 Jul 2008, 21:21:04
you can do an eventhandler dammaged, and actually find the spot they were hit.  :)