[No] BlockButton(+Mykey, true)

Moderator: GZDoom Developers

BlockButton(+Mykey, true)

Postby Alekv » Fri Sep 30, 2016 5:21 am

Hello, I want to ask for such a function:
I do not know whether it makes sense to create suggestions, but sorely lacking function that can block one button not only in the ACS but also in keykonf. Such a function is difficult to realized?
like this:
Code: Select allExpand view
AddMenuKey "SomeKey" +MyKey
alias +MyKey "Puke 5; Take Left; Take Right; Take Walk; Take WalkStop; Give Walk; Give Right; +forward;"
alias -MyKey "-forward; Take Right; Take Walk; Take WalkStop; Give WalkStop"
DefaultBind D +MyKey

function blocks in key–°onf pressing button +myKey:
BlockKey(str key, int blockkey);//str key this variable or string of lump keykonf
int CheckBlockKey(str MyKey);// return true if key block, or return false if key not block.
Script 1 (void)
if(CheckBlockKey(+MyKey)== false)
    BlockButton(+Mykey, true);
User avatar
Joined: 08 Jun 2015
Location: My world :)

Re: BlockButton(+Mykey, true)

Postby Graf Zahl » Fri Sep 30, 2016 5:29 am

None of this ever reaches ACS, so it can't be checked. Input and game logic are strictly separated from each other so you can neither check anything beyond what actually crosses the network boundary nor can you transmit actions from the script to the outside.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Joined: 19 Jul 2003
Location: Germany

Return to Closed Feature Suggestions

Who is online

Users browsing this forum: No registered users and 0 guests