F3 revive scripts
Posted: Tue Nov 03, 2015 5:41 am
So I was poking around the revive scripts and I noticed an oddity. A little experimentation confirmed it. We actually go down from a single leg shot while AI will take 2-3 to die.
A player has components, and any damage will trigger a damage handler for every component (sometimes twice). The components are: Head, neck, pelvis, spine1, spine2, spine3, body, hands, legs, "?" and blank.
Blank is the special component that represents your total bodily damage.
When you get hit we receive an event for every component, always in the same order
The f3 revive scripts do not pay attention to damage to the head, the hands, you cannot be revived from hits to those.
We go down if any component damage + our bodily damage > 1.
The odd thing here is that for some reason some of the body parts will easily go to 5 damage, even though it's supposed to be on a scale of 0-1.
I think that I can make the system do pretty much whatever we want by using the event handlers to collect data and then executing our own code immediately afterwards.
That being said we might just be happy with the way it works currently. We already have a pretty large advantage over the AI simply because the arma 3 AI isn't the brightest.
A player has components, and any damage will trigger a damage handler for every component (sometimes twice). The components are: Head, neck, pelvis, spine1, spine2, spine3, body, hands, legs, "?" and blank.
Blank is the special component that represents your total bodily damage.
When you get hit we receive an event for every component, always in the same order
The f3 revive scripts do not pay attention to damage to the head, the hands, you cannot be revived from hits to those.
We go down if any component damage + our bodily damage > 1.
The odd thing here is that for some reason some of the body parts will easily go to 5 damage, even though it's supposed to be on a scale of 0-1.
I think that I can make the system do pretty much whatever we want by using the event handlers to collect data and then executing our own code immediately afterwards.
That being said we might just be happy with the way it works currently. We already have a pretty large advantage over the AI simply because the arma 3 AI isn't the brightest.