noxworld-dev / opennox

OpenNox main repository.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Archer on the route to Stravas misses his shot on the explosive barrel

comradeshook opened this issue · comments

nox3

As per title, this annoying asshole misses his initial shot intended to detonate the barrel in this room. Possibly related to #657 ?

Playing on Windows, GOG version, v1.9.0 alpha12.

Offtop: I actually remember fixing that bug when it was C only, the guy was shooting in a completely wrong direction. Was something to do with float calculations... Maybe Go skewed that again somehow.

Kinda a regression! xD

I think this time it's different. This archer was only a bit off probably, similar to #657.

If memory serves, he did shoot in a north-ish direction, so that would check out. I say the following without knowing how things actually work, but perhaps something to do with scripted targeting? They're all unerringly accurate when playing normally, it's only these scripted sequences that bug out.

Wait, what? North? That's exactly the same way the bug in C behaved, iirc

555eba5
Check that commit @dennwc, may be related

Haven't checked yet, but here's the commit porting that function: 122875a

Fixed via a0bb1dc 🤦‍♂️ I hate C pointer rules 😅

Oh right by the way @dennwc, would this also fix monsters not turning towards you when they hear you? Otherwise i got another issue to add and document :V
I'm wondering because they were all steadfastly turned north, much like how the archer and urchins fired north, so maybe the issues are/were related.

No, the one I fixed only affects scripted monsters firing. Can you please open a new ticket for this?

Yep yep, coming right up. Just need to secure a good repro. :v

Hmm, in retrospect, i think it might actually be #512 that i ran into, enemies did turn around like they should when i fell down after the necromancer in Field of Valor. I'll keep an eye out though, in case i run into something similar again.