Jump to content
  • 0
TheodoreCHill

Using the Command HUD in DayZ Epoch 1.0.6.2

Question

Hello

My server uses a feature that allows players to recruit AI via the radio.

The AI work well and there aren't many problems with them except for the fact that the command HUD (the green group icons at the bottom left hand corner of the screen showing your soldiers) is disabled.

The ~ and backspace button allow you to select and order them around but the numberpad ' . ' and f1-f10 keys are already bined to other features/disabled.

Does anyone have any idea how I might go about un-hiding/enabling the command hud as well as adding the ability to select them with the f1-10 keys?

Thanks.

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 1

The hot bar UI is disabled in the config file and can not be easily restored in the mission. Unfortunately this was one of the only ways to do it because A2 does not have commands to toggle many UI elements like A3 does. I disabled it because the icons were inaccurate, took up screen space for the group leader and served no purpose for the majority of players. However, I did not consider some servers might add AI commanding scripts.

 

You should still be able to command AI with the commanding menu (green scroll menu) and keyboard shortcuts. You just need to remove these lines to allow the unit commanding menus. Other anticheat may disable these too:

https://github.com/EpochModTeam/DayZ-Epoch/blob/master/SQF/dayz_code/compile/keyboard.sqf#L327

https://github.com/EpochModTeam/DayZ-Epoch/blob/master/SQF/dayz_code/compile/keyboard.sqf#L335

 

And you have to remap the F keys and number keys, or remove the _handled = true; from their function to allow default engine handling:

https://github.com/EpochModTeam/DayZ-Epoch/blob/master/SQF/dayz_code/compile/keyboard.sqf#L328-L333

https://github.com/EpochModTeam/DayZ-Epoch/blob/master/SQF/dayz_code/compile/keyboard.sqf#L316-L318

https://github.com/EpochModTeam/DayZ-Epoch/blob/master/SQF/dayz_code/compile/keyboard.sqf#L289-L291

 

These are used for hot keys with their default functionality disabled, because DayZ/Epoch Mod does not use any AI commanding functionality.

 

We can add the hotbar back for next patch if the commanding menu does not work correctly without it.

 

 

Share this post


Link to post
Share on other sites
  • 0

The HUD in the corner is disabled because of  the Group Menu. When you are the group leader and invite people, you will see them in the HUD as well that's why ebay decided to hide it. If you are using the group menu I would leave it how it currently is but if you don't, you should be able to toggle in back on without a problem.

The F keys on the keyboard are disabled in the keyboard.sqf. They are defined in a _block array. There are all keys that are blocked. Just take them out and you should be good to go.

Share this post


Link to post
Share on other sites
  • 0
7 hours ago, DAmNRelentless said:

The HUD in the corner is disabled because of  the Group Menu. When you are the group leader and invite people, you will see them in the HUD as well that's why ebay decided to hide it. If you are using the group menu I would leave it how it currently is but if you don't, you should be able to toggle in back on without a problem.

The F keys on the keyboard are disabled in the keyboard.sqf. They are defined in a _block array. There are all keys that are blocked. Just take them out and you should be good to go.

So what would need to be done to enable the hud, exactly? Where in the keyboard.sqf does it 'hide' the menu?

Share this post


Link to post
Share on other sites
  • 0

I have to take a look when I am back home but you can find the keyboard.sqf in your @Dayz_Epoch\addons\dayz_code\compile\keyboard.sqf. You need to copy it to your mission and adjust the path in your compiles.sqf.

It doesn't hide the menu, the keyboard.sqf just uses a method to block the control keys.

Share this post


Link to post
Share on other sites
  • 0
On 3/14/2018 at 2:55 AM, DAmNRelentless said:

I have to take a look when I am back home but you can find the keyboard.sqf in your @Dayz_Epoch\addons\dayz_code\compile\keyboard.sqf. You need to copy it to your mission and adjust the path in your compiles.sqf.

It doesn't hide the menu, the keyboard.sqf just uses a method to block the control keys.

Yeah I know that, the issue is that the squad index is hidden. I'm trying to figure out how to un-hide it so that you can see what soldiers you have selected when giving them specific tasks.

Share this post


Link to post
Share on other sites
  • 0

Just a heads up;

Removing the following

    [[DIK_1], _rifle] call _addArray;
    [[DIK_2], _pistol] call _addArray;
    [[DIK_3], _melee] call _addArray;

Will break any HUD using the quickswitch function.

The AI otherwise work just fine with the space bar, ~, backspace, and numberpad '.' (period).

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement
  • Advertisement
  • Supporters
  • Advertisement
  • Discord

×