UFO:Alien Invasion

Archive => Bugs prior to release 2.3 => Topic started by: Destructavator on March 08, 2010, 09:07:31 am

Title: r28869 Flamethrower appears to do no damage
Post by: Destructavator on March 08, 2010, 09:07:31 am
It's been a while since I've actually fired up the game, so I don't know if this is new or not, but I noticed one of my soldiers was accidentally hit by a flamethrower blast which didn't do anything to that soldier.  As an experiment (I was testing in skirmish mode) I fired a full "inferno" at one soldier with no armor, and it didn't do any damage at all.

To compare, I also had a few soldiers blast each other with shotguns and rifles, those all worked fine, with expected results.

I only had this happen in one mission, a skirmish, I'll try to see if I can reproduce it.

Edit: A quick search in the bugtracker didn't reveal anything previously reported regarding this issue.  If I do find I can reproduce it I'll open a bug report.
Title: Re: r28869 Flamethrower appears to do no damage
Post by: kibber on March 08, 2010, 07:36:40 pm
Banana Boat SPF 1000 Suntan lotion -- it really works wonders........
Title: Re: r28869 Flamethrower appears to do no damage
Post by: Duke on March 08, 2010, 08:50:49 pm
I happend to play r28869 yesterday and the flamethrower DID do damage.
Maybe a scripting issue ?
Title: Re: r28869 Flamethrower appears to do no damage
Post by: Destructavator on March 09, 2010, 07:49:35 am
I happend to play r28869 yesterday and the flamethrower DID do damage.
Maybe a scripting issue ?


Hmmm.  I don't really know what the culprit is, but let me ask this:  Is it possible to "miss" with a flamethrower attack, so it doesn't hurt anything/anyone only sometimes, even though the animation still shows flames going across the target?
Title: Re: r28869 Flamethrower appears to do no damage
Post by: Sgt. Hatter on March 09, 2010, 10:42:27 am
Is it possible to "miss" with a flamethrower attack, so it doesn't hurt anything/anyone only sometimes, even though the animation still shows flames going across the target?

If it is possible, then this thread (http://ufoai.ninex.info/forum/index.php?topic=4524.0) might interest you.
Title: Re: r28869 Flamethrower appears to do no damage
Post by: Destructavator on March 09, 2010, 08:02:16 pm
Yup, it is indeed reproducible.

I did more testing, here's how to do it:

- Start Skirmish Mode, with a mission where someone has a flamethrower

- Have that soldier shoot flames at another soldier who isn't wearing armor

- Check the targeted soldier's health - it doesn't go down!

I've seen the flamethrower hurt other units on other teams (civilian, alien) but it seems a team's own units can be immune to friendly fire with this weapon.

Edit: I found this happens with other weapons too, friendly fire only occasionally hurts a team's own units.  I did a test where everyone attacked each other, and even a rocket launched right in another soldier's face went straight through the guy's head and out the other side!

Title: Re: r28869 Flamethrower appears to do no damage
Post by: Duke on March 09, 2010, 08:22:03 pm
I can confirm now. In my above post I was referring to killing aliens.
Title: Re: r28869 Flamethrower appears to do no damage
Post by: Mattn on March 09, 2010, 08:22:41 pm
please open a ticket for this with high priority.
Title: Re: r28869 Flamethrower appears to do no damage
Post by: Destructavator on March 09, 2010, 08:48:11 pm
please open a ticket for this with high priority.

OK, done.
Title: Re: r28869 Flamethrower appears to do no damage
Post by: MCR on March 10, 2010, 10:50:14 am
I can confirm this problem also with r28889 !
Maybe a more precise description of the problem will help finding the bug:

- The bug appears only in the first turn, ending the turn makes soldiers & aliens feel pain again.

- In the first turn all shots will go straight through the soldiers or aliens not hurting them, as long as they just look around, but do not move.

- The problem occurs with all weapons, just explosions will hurt them (from grenades or an exploding rocket next to the target).

- Moving the soldier makes him vulnerable again, ending the turn makes the bug disappear also.

I hope this description helps eliminating the problem...
Title: Re: r28869 Flamethrower appears to do no damage
Post by: Duke on March 10, 2010, 08:28:22 pm
MCR,
very good observation/testing/reporting, thx :)
That should help us to narrow it down.

I also noticed that after skirmish->start the autoselected soldier doesn't have his path precalculated (no green cursor).
==> something is fishy with battlescape initialization.
Title: Re: r28869 Flamethrower appears to do no damage
Post by: Mattn on March 10, 2010, 09:11:41 pm
that's because CL_ActorResetMoveLength always sets le->actorMoveLength to -1 (unreachable) - until you select another soldier. if you reselect the first soldier, everything works again. so i suppose CL_ActorConditionalMoveCalc is doing the Grid_MoveCalc too early for the first actor (though i don't know what is missing there)
Title: Re: r28869 Flamethrower appears to do no damage
Post by: MCR on March 11, 2010, 01:05:45 pm
BTW, Civilians also don't get hurt in the first turn except from explosions...
Title: Re: r28869 Flamethrower appears to do no damage
Post by: Stedevil on March 12, 2010, 12:50:46 pm
It should be easy to track down the error, because I'm using svn 28860 for the last week or so and have no problems what so ever to damage aliens in the first turn. So something in 28861-69 breaks things.
Title: Re: r28869 Flamethrower appears to do no damage
Post by: Duke on March 12, 2010, 08:59:27 pm
A very helpful hint, thx :)
I've been able to further nail it down: r28863 broke it.
Stay tuned.
Title: Re: r28869 Flamethrower appears to do no damage
Post by: Duke on March 12, 2010, 09:22:16 pm
Well I fixed it, but only to find out that Mattn had it fixed earlier this day in r28922.
Title: Re: r28869 Flamethrower appears to do no damage
Post by: Mattn on March 12, 2010, 10:52:17 pm
i'm sorry duke ;)

but did you also look at the "unable-to-move-the-first-selected-soldier-until-i-reselect-him"-bug?
Title: Re: r28869 Flamethrower appears to do no damage
Post by: Duke on March 13, 2010, 12:22:31 am
Not yet. Been working on the "actor movement different to displayed path"-bug.
Figured it out, but need your help there.
Plz take a look...
Title: Re: r28869 Flamethrower appears to do no damage
Post by: Mattn on March 13, 2010, 09:21:14 am
... where? tell me more please - what is the cause of the problem? and where exactly do you need my help?
Title: Re: r28869 Flamethrower appears to do no damage
Post by: Duke on March 15, 2010, 09:04:00 pm
Mattn,
you found my post to that tracker item, but did you also see my recent post to that item (https://sourceforge.net/tracker/?func=detail&aid=2957066&group_id=157793&atid=805242) ?
Title: Re: r28869 Flamethrower appears to do no damage
Post by: Mattn on March 15, 2010, 10:04:19 pm
not until i've read this - sorry. but now i've added a new comment, too
Title: Re: r28869 Flamethrower appears to do no damage
Post by: Duke on March 15, 2010, 10:43:54 pm
No problem :)
It's fixed in r29019.

.... so i suppose CL_ActorConditionalMoveCalc is doing the Grid_MoveCalc too early for the first actor (though i don't know what is missing there)
No. Some debugging showed that CL_ActorConditionalMoveCalc isn't called at all at that time.
Investigating.
Is it correct that we don't have a tracker item for this issue (ie. nobody except me complained) or did I just overlook it ?
Title: Re: r28869 Flamethrower appears to do no damage
Post by: Duke on March 16, 2010, 12:57:15 am
Correction:
CL_ActorConditionalMoveCalc is called before the Tus of the LE are set.
Had to go back to MAX_ROUTE to fix the prob in r29020.