[QUESTION] Key toggle


(DeaDmaN2be) #1

Since I didn’t found any helpful on the internet I try to ask here:

Does someone know a possibility to bind a key toggle in the dirty bomb configs?

Means by default e.g. the key “R” is reload but if I activate the toogle with a random other key the key “R” will be binded to another activity like e.g. “R” is quickknife now.

So two different activities I can use with one key by switching the keys option with a toggle.

Is it possible to do so?

Thanks for any help :smile:


(Mister__Wiggles) #2

I’m not sure dude, I know you can bind multiple commands to one key through the ingame console eg for one button long jumps but I’m pretty sure that’s going to be removed at some point. Hopefully someone can clear this up.


(god1) #3

I think you can use the same key for different things by making additional binds where you have to hold ctrl, alt or shift in addition to the actual key but obviously that’s not ideal.
For a toggle you’d probably need a 3rd party macro program like AutoHotKey.


(DeaDmaN2be) #4

Thanks so far. I’m afraid that a 3rd party macro is not intended for use and also may cause problems with the anti cheat?

Originally this Toggle shouldn’t be something forbidden since it’s no advantage over others.

In RtCW it wasn’t a problem too, so it would be a pitty if it changed.


(god1) #5

I’m pretty sure AHK isn’t on the anti-cheat blacklist.


(DeaDmaN2be) #6

Ok so I will have a look into it, thanks :slight_smile:


(Mister__Wiggles) #7

It may not be picked up by the anti-cheat but macros are considered cheating so stay well away from them.


(FireWorks) #8

[quote=“DeaDmaN;19234”]Since I didn’t found any helpful on the internet I try to ask here:

Does someone know a possibility to bind a key toggle in the dirty bomb configs?

Means by default e.g. the key “R” is reload but if I activate the toogle with a random other key the key “R” will be binded to another activity like e.g. “R” is quickknife now.

So two different activities I can use with one key by switching the keys option with a toggle.

Is it possible to do so?

Thanks for any help :smile: [/quote]

This is definitly possible in the ingame configs without the hassle of possibly flagged tools.

If you go a bit into detail, we could work this out. The game is on UE3 if you got some experience with binds there or search for its syntax.

Basically you are just rebinding keys when pressing others. In a circle…


(DeaDmaN2be) #9

While I can imagine the abuse of macros my intention is just to change the assignment of a key via toggle so that I don’t have to change the key manually in the menu in between the rounds all the time.
I would be glad about an easy way to do so.


(FireWorks) #10

On a sidenote:
Stay away from quickknife. It is just bad. Its the harder and longer attack of the knife.

Learn to switch to the knife (you need it for running faster anyways) and then just left click to attack for the fast animation. (right click would be the “quickknife” long animation.

Both gib instantly, so better go with the shorter one.


(qjack) #11

@deaDmaN : Take a look here: https://udn.epicgames.com/Three/KeyBinds.html#Toggle :wink:

example:

Bindings=(Name="PipeC",Command="FOV 80 | setbind MouseScrollUp PipeD") 
Bindings=(Name="PipeD",Command="FOV 85 | setbind MouseScrollUp PipeE")
Bindings=(Name="PipeE",Command="FOV 90 | setbind MouseScrollUp PipeF")
Bindings=(Name="PipeF",Command="FOV 95 | setbind MouseScrollUp PipeC")
Bindings=(Name="MouseScrollUp",Command="PipeC")

changes / inserts in: ShooterInput.ini under [ShooterGame.SGPlayerInputPawn]


(DeaDmaN2be) #12

Thanks for the suggestions. The toogle script didn’t work for me with all variations I’ve tried.

These are the commands I want to use and that I can activate via console ingame:

setbind ThumbMouseButton “Altfire” 1
setbind ThumbMouseButton “QuickItem1Cmd” 1

Would be enough if someone could tell me if and how it’s possible to bind these two commands to two different keys in the ShooterInput.ini

Something like:
Bindings=(Name=“G”,Command=“setbind ThumbMouseButton Altfire”)
Bindings=(Name=“H”,Command=“setbind ThumbMouseButton QuickItem1Cmd”)

/edit ok, now the one above works for me. The Thread can be closed.
Thanks for all answers.