/-/S'pht-Translator-Active/-/ |
Re: PiD monster health | ||
Posted By: Hopper | Date: 2/17/12 4:00 p.m. | |
In Response To: Re: PiD monster health (Earthtopus) : And I'm still curious as to how HP gets divided by three to make the damage
Note to future hackers: Loren's "Unknown4a" field (4 bytes following damage taken, offset 190) stores damage inflicted. This number is divided by 3, and rounded down, for display on the carnage screen. Editing the body count or accuracy stats do not affect the damage reported; it's a separate value. At first, I was surprised this wasn't documented before now. But, it's much harder to spot if you don't know internal damage is divided by 3. Thanks, Andrew, I couldn't have done it without you! After tweaking these stored numbers, I found that the displayed damage ratio handles up to 327.67 and then fails, flipping to -327.-68 and counting down from there. The rest is obvious to a programmer -- the code would be something like: Sint16 ratio = ((inflicted / 3) / taken) * 100;
At this point, you'd inflicted 114,308 internal damage points and taken 60 damage points. The math works out like so:
|
|
Replies: |
PiD monster health | Hopper | 2/16/12 7:17 p.m. | |
Re: PiD monster health | Earthtopus | 2/16/12 8:07 p.m. | |
Re: PiD monster health | Hopper | 2/16/12 8:58 p.m. | |
Re: PiD monster health | Godot | 2/17/12 5:34 a.m. | |
Re: Barney | Earthtopus | 2/17/12 7:08 a.m. | |
Re: Barney *LINK* | Godot | 2/17/12 7:29 a.m. | |
Re: PiD monster health | Earthtopus | 2/16/12 8:17 p.m. | |
Re: PiD monster health | Hopper | 2/17/12 8:57 a.m. | |
Re: PiD monster health | Ron Hunsinger | 3/1/12 4:34 a.m. | |
Re: PiD monster health | Hopper | 2/17/12 11:30 a.m. | |
Re: PiD monster health | Earthtopus | 2/17/12 11:41 a.m. | |
Re: PiD monster health | Hopper | 2/17/12 4:00 p.m. | |
Re: PiD monster health | Earthtopus | 2/17/12 4:25 p.m. |
|
Problems? Suggestions? Comments? Email maintainer@bungie.org Marathon's Story Forum is maintained with WebBBS 5.12. |