Conditional Hotkeys?
|
2021-12-03, 22:55
Post: #1
|
|||||||
|
|||||||
Conditional Hotkeys?
I have been playing as a [COP] with a PS4 controller.
There is a limited number of buttons and ideally I want to avoid having to use keyboard so I can keep driving. I wondered if anyone has a solution to conditionally change what a button mapping does, For example if my siren is on, I might like my arrows to change from indicators to typing suspect turning left/right in the chat etc. Such a thing exists? If not, how to go about making it? |
|||||||
|
|||||||
2021-12-04, 16:00
Post: #2
|
|||||||
|
|||||||
RE: Conditional Hotkeys?
It can be achieved using just LFS scripts. There are LFS commands, like "crtlf" or "altf", that allow you to dynamically change binds assigned to those shortcuts. So you can just create two scripts, one of them you will execute when you start a chase and another one - when you end the chase.
Script Guide: https://en.lfsmanual.net/wiki/Script_Guide |
|||||||
2021-12-06, 08:09
Post: #3
|
|||||||
|
|||||||
RE: Conditional Hotkeys?
me that is used to use the numpad for cop binds already:
(: |
|||||||
|
|||||||
2021-12-07, 07:56
Post: #4
|
|||||||
|
|||||||
RE: Conditional Hotkeys?
Yes, I also drive with gamepad and got the issue of too few binds so I got a script that changes binds depending on roles (cop, civilian, tow)
For example a certain button while copping is !move can be something else in the other roles (LeL LeL LeL HhHhHHHhH bind is mandatory in all roles) |
|||||||
|
|||||||
2021-12-07, 17:45
Post: #5
|
|||||||
|
|||||||
RE: Conditional Hotkeys?
Thanks for the input, I ended up writing my own insim program to do this, it polls the public server status to find out if I'm in chase once in a few seconds and changes what the keys do as a result, with special logic for indicator toggles and a few other bits.
It's entirely programmed to my needs but maybe one day I'll make something customizable to share |
|||||||
|
|||||||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)
Powered By MyBB, © 2002-2024 MyBB Group