Jump to content
  • 0

Epoch AntiHack Preventing 'hotkey' from Functioning


mgm

Question

Hi guys,

 

I have a DIK code which is supposed to 'call-a-taxi' when pressed.

Code is set to INS key for the time being and it is working fine when player is Epoch AH admin. If non-admin, key is not doing anything which appears to be blocked by AH. Is there a workaround for this?

 

Apologies in advance, if it's an apparent configuration option in the latest Epoch. I will check it tomorrow - haven't had a chance yet (been too busy developing on 0.2.x).

I really hope there is a way around this hotkey press otherwise will be very displeasing to figure this out AFTER releasing my script :D

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
On 4/12/2015 at 11:52 PM, mgm said:

Hi guys,

 

I have a DIK code which is supposed to 'call-a-taxi' when pressed.

Code is set to INS key for the time being and it is working fine when player is Epoch AH admin. If non-admin, key is not doing anything which appears to be blocked by AH. Is there a workaround for this?

 

Apologies in advance, if it's an apparent configuration option in the latest Epoch. I will check it tomorrow - haven't had a chance yet (been too busy developing on 0.2.x).

I really hope there is a way around this hotkey press otherwise will be very displeasing to figure this out AFTER releasing my script :D

 

I realize you guys are busy and can't respond to questions immediately... but after 13 months of patience I have got to admit finally my patience wearing thin!! :)

So I'm back to Epoch scripting, familiarizing myself with the changes, I had another go at "hotkeys" just now.
It appears this lovely "EPAH Hotkey PREVENTION" is exactly where I left a year ago - it is still blocking keydown detection.

It makes me wonder - are there no scripts as of 2016-May that use Hotkey functionality (Epoch AntiHack compatible ones) to do things in game?
If there is, what's the solution - can someone please tell me how to make this work?

To be clear: I want a player to press the hotkey F4 (or INSERT) key to bring up a GUI or toggle earplugs and so on. I can do this simply in Arma3 and Epoch (without EPAH). The moment EPAH is in the picture it just prevents the hotkey! :(

Link to comment
Share on other sites

  • 0

What is happening is that your settings get wiped out by the Epoch AH and set to:

 keyDown = "(_this call EPOCH_KeyDown)";

https://github.com/EpochModTeam/Epoch/blob/release/Sources/epoch_config/Configs/CfgEpochClient.hpp#L60

If you add your code to the main key down function https://github.com/EpochModTeam/Epoch/blob/release/Sources/epoch_code/compile/interface_event_handlers/EPOCH_KeyDown.sqf it should work as this is what is forced as a handler via the configs above.

I welcome suggestions on how we can make it easier to plug and play with our EH codes. Please share some code that isn't working and I can look for a way to better support it while using the EPAH.

Link to comment
Share on other sites

  • 0
1 hour ago, vbawol said:

What is happening is that your settings get wiped out by the Epoch and set to:


 keyDown = "(_this call EPOCH_KeyDown)";

https://github.com/EpochModTeam/Epoch/blob/release/Sources/epoch_config/Configs/CfgEpochClient.hpp#L60

If you add your code to the main key down function https://github.com/EpochModTeam/Epoch/blob/release/Sources/epoch_code/compile/interface_event_handlers/EPOCH_KeyDown.sqf it should work as this is what is forced as a handler via the configs above.

I welcome suggestions on how we can make it easier to plug and play with our EH codes. Please share some code that isn't working and I can look for a way to better support it while using the EPAH.

Thanks a lot vbawol. I will check this WHEN on PC ASAP.

 

The example code I also shared with another scripter in his thread, so you can see how I am trying to do it here:

http://epochmod.com/forum/topic/32537-earplugs-script/?do=findComment&comment=227274

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Discord

×
×
  • Create New...