keiranhalcyon7 wrote: ↑Sun Mar 22, 2020 5:24 amlocating and disabling the part of the original game code that toggles the six HUD elements' visibility in response to those six keystrokes (I'm sure Jeremy could help with that; note though that delete and page down have the dual functions of toggling the HUD element visibility and selecting which MFD is the active one).
Hello,
The variable that define if the HUDs are visible is a byte situated at offset 0x0064 in the player table.
Code: Select all
s_XwaPlayers[playerIndex].IsHudVisible
/* 0x0064 */ byte IsHudVisible ;
Code: Select all
!KEY_DELETE!169 Delete Toggle left MFD
Key_DELETE
s_XwaPlayers[playerIndex].IsHudMfd1Visible
/* 0x0067 */ byte IsHudMfd1Visible ;
Code: Select all
!KEY_PAGEDOWN!173 PageDown Toggle right MFD
Key_NEXT
s_XwaPlayers[playerIndex].IsHudMfd2Visible
/* 0x0068 */ byte IsHudMfd2Visible ;
Code: Select all
!KEY_INSERT!168 Insert Toggle Left Sensor/Shield Indicator
Key_INSERT
byte s_V0x05B5338 = (byte)0x01;
Code: Select all
!KEY_PAGEUP!172 PageUp Toggle Right Sensor/Beam Indicator
Key_PRIOR
byte s_V0x05B533C = (byte)0x01;
Code: Select all
!KEY_HOME!170 Home Center indicators
Key_HOME
byte s_V0x05B5340 = (byte)0x01;
Code: Select all
!KEY_END!171 End Toggle CMD
Key_END
byte s_V0x05B5334 = (byte)0x01;