OpenXcom Forum

OpenXcom => Open Feedback => Topic started by: Bonakva on May 17, 2020, 01:34:28 am

Title: Damage control
Post by: Bonakva on May 17, 2020, 01:34:28 am
Is there an opportunity in the game to see the damage done in units? Exactly how much was done during the attack, not the expected damage.

There are times when I shoot and hit, but apparently I do not cause damage. I’m frustrated by the ignorance of how much damage I did
Title: Re: Damage control
Post by: R1dO on May 17, 2020, 01:37:20 am
You probably need oxce for that. It has such functionality (CTRL + h ?)
Title: Re: Damage control
Post by: Bonakva on May 17, 2020, 02:03:03 am
Well, a window appears in which it says there is a hit or not. Damage not specified ((
ps So many command that I didn’t even know about ....
Title: Re: Damage control
Post by: Meridian on May 17, 2020, 02:06:40 am
it says "0" or "hit" (small damage) or "HIT" (big damage)... that's as much as we're willing to show
Title: Re: Damage control
Post by: Bonakva on May 17, 2020, 02:33:04 am
Well, not bad.
Let's say the weapon has a damage range of 0-100.
0-50 - small damage?
50-100 - big damage?
That is, this "hit" is tied to a weapon, or after a certain number of all weapons will have a lot of damage?
Title: Re: Damage control
Post by: Bobit on May 17, 2020, 02:41:03 am
Searched through source code using window's findstr. Answer is in line 2312 of TileEngine.cpp at https://github.com/MeridianOXC/OpenXcom/blob/oxce-plus/src/Battlescape/TileEngine.cpp.

A big hit is > 20% of the target's base health (likely not including armors, commendations/transformations).
Title: Re: Damage control
Post by: Meridian on May 17, 2020, 09:42:17 am
A big hit is > 20% of the target's base health (likely not including armors, commendations/transformations).

including