OpenXcom Forum

OpenXcom Forks => OpenXcom Extended (OXCE) => OXCE Bugs => Topic started by: Dorten on January 20, 2025, 02:00:02 pm

Title: [Bug] totalReactionFire logic
Post by: Dorten on January 20, 2025, 02:00:02 pm
Right now it counts "kills earned by the soldier that occured on the hostile turn, where the weapon was not a grenade or a proximity grenade."

The problem is: when a unit bleeds (or burns) to death, game attributes it's killing to "the one who hit it last", and as bleeding/burning of enemy units happens on enemy turn, ALL enemies that bled out count towards totalReactionFire (except those wounded by grenade or a proximity grenade).

Noticed this when my AI units in Minigun tanks started getting Overwatcher commandment in XCF.

Easy (while not very elegant) fix would be storing wether the shot was reaction at the same place where "the one who hit it last" info is remembered.
Title: Re: totalReactionFire logic
Post by: Meridian on January 20, 2025, 02:04:05 pm
Easy (while not very elegant) fix would be storing wether the shot was reaction at the same place where "the one who hit it last" info is remembered.

(Just FYI) I'm not thrilled by the idea of storing even more data, it's too much today already.

On the other hand, I don't see any other solution (other than leave it as known bug).
Title: Re: totalReactionFire logic
Post by: Dorten on January 21, 2025, 06:54:28 am
I'm not thrilled by the idea of storing even more data

That's understandable
Title: Re: [Bug] totalReactionFire logic
Post by: Delian on January 21, 2025, 11:13:52 am
I'd like to point out that it's not actually kills, but knockouts. You can knock out an enemy on the enemy's turn and get awarded a reaction fire "kill". Then this enemy bleeds out and you get awarded another kill.

So, I think it would be better if the bleeding out enemies simply don't award a reaction fire kills. Either the kill was a direct result of reaction fire, or it wasn't.
Title: Re: [Bug] totalReactionFire logic
Post by: Yankes on January 21, 2025, 01:05:26 pm
I agree with Delian, only direct hits probably should count to reactions