Gambini, on 05 April 2017 - 09:59 PM, said:
I have noticed a Droideka shooting through a thick wall.
Yeah, I know why that happens, and it can be fixed. But it's rare enough and not serious enough that I will wait for a future update. The bugs fixed between 200 and 201 were both easy to fix (once I realized them) and fairly serious.
Here's the story behind all the shooting through walls issues (this is long and boring but I feel like writing about it). Since time began, there was a bug in EDuke32 which made it possible for enemies to hit themselves with non-hitscan projectiles before the projectile would even get a chance to move. This was more likely to happen with certain sizes of enemies and from certain angles, so it was seldom noticed for many ages (I seem to remember people saying this happens in WT with one of the bosses, so it may go all the way back to DOS Duke). But it was a serious issue in Duke Forces. I tried many things in an attempt to work around it, but ultimately I ended up actually moving the position of the enemy when firing, then instantly moving the enemy back to its start position. The result would be that the projectile would start in front of the enemy instead of right on the enemy. This meant that the enemy would never shoot itself, but if it was close enough to a barrier, the projectile could jump right through it.
I asked TerminX to fix the self-hitting bug, and at first I thought he had, but actually his fix didn't set the right clipping bit and I didn't feel like asking him about it again. I finally asked Hendricks266, who discovered what had happened and set the correct clipping bit. After that I removed my workaround, but not from all the enemies.
The droideka, and a few other enemies, still have a need for projectile repositioning. This can be done in a way that does not move the projectile forward, but I would have to fiddle with it to get it right.