Author Topic: [Bug] totalReactionFire logic  (Read 293 times)

Offline Dorten

  • Squaddie
  • *
  • Posts: 3
    • View Profile
[Bug] totalReactionFire logic
« 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.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9303
    • View Profile
Re: totalReactionFire logic
« Reply #1 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).

Offline Dorten

  • Squaddie
  • *
  • Posts: 3
    • View Profile
Re: totalReactionFire logic
« Reply #2 on: January 21, 2025, 06:54:28 am »
I'm not thrilled by the idea of storing even more data

That's understandable

Offline Delian

  • Commander
  • *****
  • Posts: 597
    • View Profile
Re: [Bug] totalReactionFire logic
« Reply #3 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.
« Last Edit: January 21, 2025, 01:00:51 pm by Delian »

Offline Yankes

  • Global Moderator
  • Commander
  • *****
  • Posts: 3405
    • View Profile
Re: [Bug] totalReactionFire logic
« Reply #4 on: January 21, 2025, 01:05:26 pm »
I agree with Delian, only direct hits probably should count to reactions