keeperfx icon indicating copy to clipboard operation
keeperfx copied to clipboard

Possible to shoot through corners in possession

Open Loobinex opened this issue 2 years ago • 8 comments

image

Through a corner like this, it's possible to shoot projectiles in possession. I reproduced this bug in an older version - r2154, so it's not recently introduced.

Loobinex avatar Jul 28 '22 23:07 Loobinex

Could this be related to #1076?

AdamPlenty avatar Aug 03 '22 21:08 AdamPlenty

Or could this be related to the go-through-corners bug? This seems to be a collision detection bug.

AdamPlenty avatar Aug 03 '22 21:08 AdamPlenty

https://github.com/dkfans/keeperfx/blob/611d6e500d853a55e805da8cfe7791485c99035b/src/thing_shots.c#L1294

This returns false.

AdamPlenty avatar Aug 03 '22 21:08 AdamPlenty

I think so yes, the corner simply is infinitely small I think, so it's not blocking anything.

Loobinex avatar Aug 03 '22 21:08 Loobinex

Does this happen in the original game too?

AdamPlenty avatar Aug 03 '22 21:08 AdamPlenty

I have not tried there, but I assume not as the seeing through corner bug does not exist there either.

Loobinex avatar Aug 03 '22 22:08 Loobinex

But the go-through-corners bug does, and this seems similar to that.

AdamPlenty avatar Aug 03 '22 22:08 AdamPlenty

Giving Size_XY and Size_YZ a value on the shot in magic.cfg seems to stop this bug. I have not tested it for negative side-effects.

Loobinex avatar Aug 04 '22 23:08 Loobinex