DarklightGames / DarkestHour

Darkest Hour: Europe '44-'45
https://store.steampowered.com/app/1280/Darkest_Hour_Europe_4445/
67 stars 20 forks source link

Vehicle radios do not work in multiplayer #1731

Closed cmbasnett closed 10 hours ago

cmbasnett commented 13 hours ago

Confirmed that this is in fact not working in MP.

This issue here seems to be that the server does not have a valid Base reference in SpawnVehicleAttachments (called from PostBeginPlay). The function then falls over and doesn't initialize the radio properly.

To fix this we will need to call some other post-pass function after it's been spawned.

New issue is that the radio is not being placed in the right spot on the client (it is being placed right at the yaw bone of the Semo 90 gun). It doesn't happen consistently, though, so this is probably an issue with replication order. This only seems to be an issue with radios spawned on the Semo90 (vehicle cannons). The one in the Fiat 508CM works fine every time. Maybe because it's being attached to a bone instead of with RelativeLocation? 🤔