blue-nebula / base

Main repository of Blue Nebula, a fast-paced shooter with a unique parkour system. It is a fork of Red Eclipse and is free software.
https://blue-nebula.org
15 stars 6 forks source link

Shooting shotgun straight up small shreds don't bounce #195

Open Lagetta opened 3 years ago

Lagetta commented 3 years ago

Using shotgun2 and hitting anything that's straight above your head just before it "explodes" like roof or wall, the bullet just vanishes into white bullet crack texture. You need to be above 8.4 meters to see it.

robalni commented 3 years ago

This can happen on walls too when shooting horizontally: http://www.robalni.org/redeclipse/shotgun-bounce-test.webm

robalni commented 3 years ago

It seems this only happens when shotguncollide2 includes the COLLIDE_TRACE bit (the lowest bit). After looking at the collision code and testing things it seems that the reason this bug happens is that the bullet somehow ends up too far into the cube it collided with and then the shreds spawn in that position and they get stuck there because they keep colliding with the cube.