Vehicle machine-gunner shields do not work

Issue #62 resolved
tt33 created an issue

The Sdkfz 251's gun shield doesn't protect the MG operator at all. [EDIT: same applies to gun shields on StuG & StuH - Matt UK]

This is a problem carried over from RO1. Basically, in real life the gun shield was thick enough (8mm) to be protected against rifle cartridges (7.92 mm & 7.62mm).

There is no way to shoot through the shield from the front, however, in game the shield is just decoration; any shot to the shield area will even produce blood as well as player damage, making the shield only useful for blocking your view.

Comments (11)

  1. Matt Hands

    The basis of this revised hit detection code (simple calculation of positional offset of hit location in relation to hit mesh's origin or bone) has utility beyond the gunshield blocking small arms fire and can operate on different axes, e.g. Z axis for hit detection calcs on commander (if hit high enough?) or on tracks or lower hull armour (is hit low enough?). In this example I'm also limiting the length of the snipe trace so a round being traced through the gunshield doesn't trace far enough to reach the gunner. Rather than override the lengthy IsPointShot function, here I scale down the normalised Momentum that gets passed to IsPointShot, which has the desired effect. Basically, there are two different system modifications at work here; from memory I think either one would make the gun shield stop small arms, but together they add more.

    [code later removed for brevity & has been modified since]

  2. Matt Hands

    I have it locally & will commit sometime by the weekend. The code is in DH_ROMountedTankMG & I've recently made all MGs extend that, which was the key to adding this & other functionality.

    I've also added working gun shields to the StuG & StuH MGs (early and remote).

    The solution I've used only implements the hit depth method (i.e. work out the X hit offset in relation to the mesh origin) & not the reduced trace length method.

  3. Matt Hands

    New functionality implemented in commit 19d2f48 should now mean working gunshields on the German HT, StuG & StuH.

    Will keep this open until we test in true multiplayer.

  4. Log in to comment