|
|
Games Discuss anything relating to games |
|
Thread Tools | Display Modes |
02-02-18, 01:57 PM | #1 |
Group Manager
Discord Server Manager Join Date: Jan 2018
Last Online: 14-05-20 06:42 AM
Total Donations: £0
Posts: 166
|
[How to] SWAT 4 Keybinds
I see this is causing a bit confusion, so thought I'd be my usual, helpful self.
Files to edit SWAT 4 - [...]\Swat 4\Content\System\User.ini SWAT 4 TSS - [...]\Swat 4\ContentExpansion\System\User.ini OTHER MODS - SWAT 4 - [...]\Modfolder\[Content|ContentExpansion]\System\User.ini You can edit the file in notepad, or any plain text editor. It must be a plain text editor though, don't open it in Word or Wordpad or anything else that adds formatting, etc. Other useful changes Your Name At the first line of the file, change your name. That way, it stays correct, rather than having to be set every time. Example: Code:
Name=Nicoleise Don't shout by accident By default, the game binds the actions "Interact" and "Issue Compliance" (shout) to the same key. That means, that if you're trying to interact with an object, but you miss the "hitbox" for that action, you'll shout instead. The suspects will be grateful for the warning of course. If you'd prefer not to give them the upper edge though, change the lines like so: Code:
MiddleMouse=IssueComplianceOrInteract Code:
MiddleMouse=Interact F=IssueCompliance Building simple macros to do more things at once You can string commands together using the | character. You can use this to execute more commands on the same key, essentially generating a small macro. Keep in mind, that you can't use that character for the SOG tags in a chat message since the game will interpret that as a command switch. Instead, you can use a lower case L. Code:
MiddleMouse=Interact F=IssueCompliance | teamsay [b][c=FF0000]SUSPECT!! Nicoleise: SUSPECT!! Getting more keys on your keyboard Okay, so I can't actually give you more keys on your keyboard. But if you need more keys for keybinds and actions, consider removing duplicate functions in the game. For example, the F1-F10 and the 1-0 keys all are duplicated. If your keyboard has both; you could use either set for something else. Also consider your mouse. Most modern mice have atleast two extra buttons (usually used for back and forward in browsers, etc.). These are also in the ini file as Mouse4 and Mouse5. You may have to experiment to find the right order of them, so start by adding a bind that just states the name of the key in chat. Then open the game, note which keys respon to which key names and then get to editing. Keybinds Syntax To enqueue commands, as mentioned before you'd use the pipe-character with a space on either side. If you don't know how to type the character, google it for your keyboard layout or simply copy/paste it from here: Code:
F=Command 1 | Command 2 Colours are achieved by prefixing the [c=000000] tag. To change colour, prefix a new tag. The 000000 refers to the hex code of the color. Frequently used colours
OnRelease - Some keybindings might be relevant to fire on the release of a key rather than when pressing it down. To achieve this, use the OnRelease modifier. Like so: Code:
R=teamsay [c=BBBBBB]Reloading, gun down! | OnRelease teamsay [c=CCCCCC]Ready, gun up! Examples that you can steal or be inspired by In these examples, I'll try to incorporate a bit of everything. I'll make a few "macros" and I'll also try to adhere to what you could call best practice in terms of making the colour of the text somewhat match the urgency of the message. Italic text is a comment, you shouldn't include that. Code:
MiddleMouse=Interact F=IssueCompliance | teamsay [b][c=FF0000]SUSPECT!! Space= Removing "GiveDefaultCommand" means you don't give orders accidentally PageDown=ScrollChatDown Default on arrow-keys, but I have different ideas for those PageUp=ScrollChatUp | ShowViewport Sniper End=HideViewport Left=teamsay [c=FFFFFF]Left Up=teamsay [c=FFFFFF]Ahead Right=teamsay [c=FFFFFF]Right Down=teamsay [c=FF0000][b]Behind! H=EquipSlot 11 | [c=BBBBBB]Arresting, please cover me. R=teamsay [c=BBBBBB]Reloading, gun down! | OnRelease teamsay [c=CCCCCC]Ready, gun up! I hope this helps you somewhat. When we start being back in the servers, I'm sure someone (or myself) can build up a good standard set of keybinds and upload to here. Last edited by Ninwes; 08-05-18 at 05:16 AM. |
02-02-18, 02:34 PM | #2 |
Group Inactive Member
Community Sponsor Join Date: Jan 2018
Last Online: 11-06-22 09:35 PM
Total Donations: £25 (15/29)
Posts: 154
|
Thanks for the information! For fancier keybinds, I found this website very useful for quickly making any color gradients you want - it lists the values, and all you have to do is copy-and-paste them. I think there was an .exe that did all that work for you, but I can't find it anymore.
Here's an example of how it looks like in my .ini file: And this is how it looks like in-game: Civilian Suspect |
02-02-18, 05:08 PM | #3 |
Community Member
Former |SOG| Member Community Sponsor Join Date: Jan 2018
Last Online: 12-09-22 07:35 AM
Total Donations: £25 (16/29)
Posts: 192
|
Want to ask a question not related to keybinds tho
Does anyeone remember what TOC sound file need to remove to skip the 'bla bla bla' at the beginning of each mission? |
02-02-18, 05:20 PM | #4 | |
Group Inactive Member
Community Sponsor Join Date: Jan 2018
Last Online: 11-06-22 09:35 PM
Total Donations: £25 (15/29)
Posts: 154
|
Quote:
|
|
02-02-18, 05:54 PM | #5 |
Community Member
Former |SOG| Member Community Sponsor Join Date: Jan 2018
Last Online: 12-09-22 07:35 AM
Total Donations: £25 (16/29)
Posts: 192
|
Yes thats working, thank you
|
03-02-18, 05:17 PM | #6 | |
Community Manager
Top 5 Community Sponsor Join Date: Jan 2018
Last Online: 20-03-24 03:46 AM
Total Donations: £260 (3/29)
Posts: 105
|
I knew you could do it Nico! I'll modify mine later!
Quote:
|
|
04-02-18, 09:14 AM | #7 |
Community Member
Former |SOG| Member Join Date: Jan 2018
Last Online: 24-10-18 06:42 PM
Total Donations: £0
Posts: 139
|
Never had my keybind done with 100 % satisfaction... mb now i will be able to do it ^^
Thank you for a good explanation, Nico |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|