Machine-gun shield on StuG 3G doesn't allow projectiles to pass through it's aperture

Issue #263 resolved
Colin Basnett created an issue

The gunner is effectively invincible from the front despite there being a several inch wide aperture in the shield to be shot though.

Comments (10)

  1. Andrew Theel

    I don't mind this bug, between common sense of the user not exposing his head constantly in the slit and the actual likelihood of someone getting a round in that slot at the key moment in combat situations is less than likely.

  2. Matt Hands

    Not really a bug, more of a compromise on precise accuracy vs avoiding excessive engine collision detection. Two ways to implement:

    1. Have 4 collision boxes for the gun shield instead of the current 1, arranged like a square doughnut, leaving the gap in the middle. Although col boxes seem to have a bit of fuzzy logic around the edges, so bullets may still snag, but I guess if needed the hole could be made bigger until bullets could just squeeze through. Sure this will work; it's just 4 col boxes for a gun shield.

    2. Add a simple collision static mesh, incorporating the hole. CSMs are normally a no-no on VehicleWeapons (remember the RO tiger turret and the pics I posted). But in this case I think it would work because the gun shield is static and doesn't rotate, so the CSM can be attached to a static bone in the MG mesh.

    Option1 would probably be best of the 2 and certainly quickest. It's a decision on optimisation vs precise accuracy.

  3. Colin Basnett reporter

    Would prefer option 2 in this case, the in-engine collision boxes are a bit too imprecise to work with. The SdKfz 251 MG has a rotating gunshield and would probably need the same treatment, is this possible with the attached CSMs?

  4. Andrew Theel

    I'd assume he can't do #2 with the rotating gun shield, but with the static gun shield is fine. Honestly I want the shield to be bullet proof, at least until we make it so the gunner can "crouch" down to avoid incoming fire.

    Having it 100% bullet proof frontally will do two things. One make it powerful as a fighting vehicle and because of it's new ability, players will use the HT as a support vehicle not a GTA road kill machine. Once we get it so the gunner can crouch down, we can add in the ability to take him out through the slit when exposed.

  5. Matt Hands

    Will leave it for now then.

    Option 1 would work pretty well for static & rotating gunshields. It would be no less precise than the current single col box gunshields. To put it in context: every turret in the game is just one rectangular block of a col box, with a good foot or more of spare space around the corners, which detect as real hits on the turret.

    Option 2 needs me to finalise & test the new turret col static mesh system (mostly I have to go back and familiarise myself with it and it's issues again) and either me or a modeller to make col static meshes for the gunshields. I can make the mesh, but a modeller would do it in a tenth of the time. The main issue is my work on the code. Realistically that's going to be the next release now.

    So, mark this as 'on hold' due to Theel's comments & the need for next release code work?

  6. Matt Hands

    Implemented in SVN revision no.654.

    Made simple collision static mesh for gun shield. On this occasion a CSM works fine when added to a VehicleWeapon mesh, as it is static (relative to vehicle) and doesn't need to rotate with MG.

    Implemented something similar for gun shield on German half-track, although as that does rotate, I had to use the new col static mesh actor attachment method.

    See pics attached (note that HT gun shield is shown using a dev mode debug tool; in game it would obviously be hidden & the MG visible !).

    Bullets pass through the vision slit.

  7. Log in to comment