BlockButton(+Mykey, true)

Moderator: GZDoom Developers

Post Reply
User avatar
Alekv
Posts: 170
Joined: Mon Jun 08, 2015 12:41 am
Location: My world :)
Contact:

BlockButton(+Mykey, true)

Post by Alekv »

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:
keyConf:

Code: Select all

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
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49066
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: BlockButton(+Mykey, true)

Post by Graf Zahl »

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.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”