keeperfx
keeperfx copied to clipboard
Possible to shoot through corners in possession
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.
Could this be related to #1076?
Or could this be related to the go-through-corners bug? This seems to be a collision detection bug.
https://github.com/dkfans/keeperfx/blob/611d6e500d853a55e805da8cfe7791485c99035b/src/thing_shots.c#L1294
This returns false.
I think so yes, the corner simply is infinitely small I think, so it's not blocking anything.
Does this happen in the original game too?
I have not tried there, but I assume not as the seeing through corner bug does not exist there either.
But the go-through-corners bug does, and this seems similar to that.
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.