Page 1 of 1
Magnum bullets coming from the back of the gun.
Posted: Fri Mar 16, 2018 11:46 am
by mgtr14

This gif explains it all, you can do this at anytime. The bullets come from the back of the gun, it seems.
Re: Magnum bullets coming from the back of the gun.
Posted: Fri Mar 16, 2018 1:14 pm
by JakSparro98
mgtr14 wrote: ↑Fri Mar 16, 2018 11:46 am

This gif explains it all, you can do this at anytime. The bullets come from the back of the gun, it seems.
By design,
It's a common convention to put projectile emitters a little back than the weapon barrel in order to avoid collision consistency problems.
Imagine that you're aiming through a thin tile with the emitter that is put in front of the weapon barrel, when you fire you will be able to shoot through such object.

Here you can see why it's better to adopt this solution, in red the ideal emitter position, in green the actual emitter position.
Re: Magnum bullets coming from the back of the gun.
Posted: Fri Mar 16, 2018 3:04 pm
by Hjarpe
Jak is correct, this behavior is by design.
Re: Magnum bullets coming from the back of the gun.
Posted: Fri Mar 16, 2018 5:51 pm
by mgtr14
While I can atleast see reason behind this, the solution also has some problems. LIke when you're trying to avoid getting shot by the gunner while you're trying to melee him, only to be hit anyways when you think you can't be shot in such close range.
Maybe the guns would need some visual tweaks? Maybe make a player unable to aim into a wall? You usually see in FPS games that your gun is either held up or close to the body as you stand up against a wall. So if you could maybe make it so that the barrel matches up with the actual emitter, it would mislead alot less.
Either way, it's consistent and I guess people can just get used to it. But I still think that this should be "fixed" sometime.
Re: Magnum bullets coming from the back of the gun.
Posted: Fri Mar 16, 2018 7:12 pm
by Gurt
We do a tunneling check from the middle of your X-position to the gun's barrel. Anything between is hit (except teammates). We do a similar approach for melee attacks - even if your chain/axe/katana clips through a thin static wall you won't hit anything behind the wall.
Imagine if we would try to place all the expected hit and collision areas/points where the visual animation lines up perfectly. You wouldn't be able to hit anyone in melee that overlaps you as your fists (or other weapons stretching even further out) would stretch out in front of you and whoever overlaps you.
We won't add a system where you can't use melee and can't aim into objects in close range because you might want to do it! No need to prevent the player from doing it.