Page 1 of 1

Can hit through small walls with kicks - Red container as example

Posted: Fri Mar 25, 2016 7:14 pm
by Bill
Issue:

The red container crate: https://gyazo.com/fdc6b24e416672c94ffe9fb3be357962 can be used to kick players through the top of the container.

Replication:

Have player A stand on top of the side of the red container(if its on its sided/vertically pointing up) and player B stand next to the wall, player A can now kick player A through said "wall"

PS: I do not know if this effects punching i.e. its vertically pointing up and player A punches the side of the container.

Re: Red Container can be hit through w/ kicks

Posted: Sat Mar 26, 2016 12:24 am
by Zyfex
players can also take damage from explosives (may apply to fire but i forget) that are on the other side of the red container

Re: Red Container can be hit through w/ kicks

Posted: Mon Mar 28, 2016 3:51 pm
by Gurt
Small walls do not stop fire and will not do that either as they spread "heat" in a small AoE area. Explosions do not pass the roof/floor of that container (I just verified that in debug rendering). Keep in mind that explosions still knock down players if they are within the explosion area while the direct damage is blocked.
Kicking through small walls is another problem still on the big TODO list. You can kick through any small walls (not only red crates standing up). As we don't have this as a big problem in our official maps it will just have to wait.

Re: Red Container can be hit through w/ kicks

Posted: Mon Mar 28, 2016 4:26 pm
by Zyfex
https://youtu.be/Iif8EaSnO0U

@gurt- ive been killed so many times by explosives on the other side of that red container that i refuse to believe your statement. the video is an extreme case, but it can happen with a single explosive on each side as well

Re: Red Container can be hit through w/ kicks

Posted: Mon Mar 28, 2016 6:11 pm
by Gurt
When I look in the video I don't see any explosions or explosives hurting you from the other side of the container walls which you stated originally.
Upon closer look even you can see what's really going on. Some barrel wrecks actually clip through the small container walls and then explode inside the container. So I stand firm that explosions do not pass the roof/floor of that container. So you're mixing up different things in SFD here which makes it impossible for me to actually understand what you really mean and therefor you get an answer you might not expect. That's why a video is the best way when showing a bug.

However, clipping is related to the physics engine we use and SFD uses the Box2D engine and things can clip through. Watch this for a demonstration. We can't really avoid this nor try we to do so either. We can enable continuous collision on certain objects but to a performance penalty so we only enable it on objects that needs it.

With all that said the barrel wrecks can benefit from having CCD enabled as they are short-lived anyway so I will enable it for the next update. Keep in mind that the red explosive barrels might still clip through and we will let them clip through as it's extreme cases. Normally walls and floors are made thick enough for this to not be a problem.

Re: Red Container can be hit through w/ kicks

Posted: Mon Mar 28, 2016 6:14 pm
by Zyfex
extra: why is there snow going through the red containers and the train tho

Re: Red Container can be hit through w/ kicks

Posted: Mon Mar 28, 2016 6:22 pm
by Gurt
Snow/rain goes through anything that's dynamic and can move. Designed like that.