Weapon selections are not saved when re-entering the deployment menu

Issue #203 resolved
Colin Basnett created an issue

This is an age-old bug made by the RO devs.

The DHPlayer.PrimaryWeapon and DHPlayer.SecondaryWeapon variables are not being replicated to the client. As a result, this works in single-player, but it's completely broken in multi-player.

The offending lines are at DHRoleSelectPanel @ 191:

    if (CurrentRole == none)
    {
        CurrentWeapons[0] = -1;
        CurrentWeapons[1] = -1;
    }
    else if (DHP.CurrentRole != DHP.DesiredRole)
    {
        CurrentWeapons[0] = DHP.DesiredPrimary;
        CurrentWeapons[1] = DHP.DesiredSecondary;
    }
    else
    {
        CurrentWeapons[0] = DHP.PrimaryWeapon; #DOESN'T WORK IN MULTI-PLAYER
        CurrentWeapons[1] = DHP.SecondaryWeapon; #DOESN'T WORK IN MULTI-PLAYER
    }

Comments (4)

  1. Log in to comment