Chaosforge Forum

DoomRL => Bug Reports => Topic started by: void on May 04, 2010, 21:03

Title: [0.9.9.1][win]Gun Kata Reloading Bug
Post by: void on May 04, 2010, 21:03
Gun Kata do not always reloads ammo after finish an opponent.

From my experience it:
- Definitely not reloads when an opponent's finished out of LOS (you hear the scream of a freed soul!). Happens when "probing", knockback etc.
- Very Likely not reloads when an opponent(A) dies and another opponent(B) moves to the same tile same time.
e.g.
######
@     Oc
######
The missile hits the cacodemon. The cacodemon dies.
######
@     c
######

* no reload happens.
- Occansionally refuses to reload when nothing appeared to be wrong.
- Not reloads when killing via barrel but that's probably WAI.


This could (very) often be the line between live and death for a gun user, especially when facing crowded enemies like, say, Hellgate/City of Skulls etc (where its as simple as if you take 32turns to reload, you die.)




ED:
alright, I might have discovered what's wrong in the "nothing wrong" scenario: When you kill a mob w/o targeting him (usually due to cope with strange bullet lines), you dont get a reload.

or:
######
       0s
@
######

if you target s directly, your bullet'll hit the barrel. In order to avoid this, you'll have to target the space behind s:
########
       0***X
@***
########

Shoot. Kill. No reload here.





Title: Re: [0.9.9.1][win]Gun Kata Reloading Bug
Post by: Tavana on May 05, 2010, 05:37
The Gun Kata special effect not reloading your weapons when you kill a monster that is not your target is intentional. The second option (involving the barrel) is the only time I can imagine this being an actual problem. Hopefully an upgraded LOS algorithm will assist with that problem.
Title: Re: [0.9.9.1][win]Gun Kata Reloading Bug
Post by: thelaptop on May 05, 2010, 18:13
This upgraded LOS algorithm... it is already ready and is awaiting inclusion into the main code base?

I hazily remembered someone trying to improve/correct the LOS algorithm some time back...