Replace button mashing in Tomb Raider with one button press

This article has been archived and is no longer being updated. It may be out of date or otherwise inaccurate due to the passage of time.

Tomb Raider is riddled with Quick Time Events. One of the most prominent and easy to circumvent is button mashing, i.e. repeatedly pressing one or two buttons. If you struggle with pressing one button repeatedly, you can use a GlovePIE script to do it for you. If you have not used GlovePIE before, have a look at our introduction and installation guide here. 2013-03-10_00056

Copy and paste the script below into GlovePIE and run it in the background. If you now hold the X key on the keyboard, it will repeatedly hit E twice every second until you release the X. Just pressing the X on the keyboard once will mash it a dozen or so times, which are often long enough to pass the button mashing Quick Time Event requiring you to keep pressing E, so if you struggle to hold X, try pressing it once and see if that works as well. This script is particularly useful for opening crates and doors with Lara’s climbing axe.

var.rate = 12 Hz
if KeepDown(key.x,5)
key.e = true
wait 0.50/var.rate
key.e = false
wait 0.50/var.rate
end if

There is also a few instances of a quick time event that prompts you to press the left then the right arrow key repeatedly. This can also be reduced to holding a single button. The script below allows you to press/hold one button, the V key in this instance, that will trigger a series of alternating presses. (Bind it to v key)

var.rate = 12 Hz
if KeepDown(key.v,5)
key.left = true
wait 0.50/var.rate
key.left = false
wait 0.50/var.rate
key.right = true
wait 0.50/var.rate
key.right = false
wait 0.50/var.rate
end if

Remap which key you press by changing the x and v in the above scripts to any key on the keyboard. Copy and paste both of the above into a single GlovePIE script, run it in the background and you should not have any further issues with button mashing. If  you have any more useful scripts for Tomb Raider or suggestions for features you would like to add with a script, let us know in the comments.

2013-03-07_00006

Xbox 360 controller

Remapping keys for an Xbox 360 controller when a game already has controller functionality enabled, is usually rather complicated. Most games already make use of all the keys on the controller, so that the options left are to either change how the key is used, for example hold instead of mashing, or replace and existing key’s function with your own. Here is a script that replaces the alternate fire function of the right bumper with a hold to mash x function. If you run this with Tomb Raider, holding (and in most cases just tapping) the right bumper will mash E (or X for the controller) repeatedly. This will open doors and crates with a button press.

var.rate = 12 Hz
if KeepDown(XInput1.RightShoulder,5)
key.e = true
wait 0.50/var.rate
key.e = false
wait 0.50/var.rate
end if

If you are playing with an Xbox 360 controller, I would recommend keeping a keyboard or keypad handy nearby to map scripts and macros to. That also has the added advantage that if you struggle to use or reach any particular keys on the controller, those can easily be remapped to keys as well.

For a full accessibility analysis of the game, read our Tomb Raider review here.


Was This Post Helpful:

0 votes, 0 avg. rating

Comment

  1. Josef van der Veer 13/05/2017 at 2:34 pm - Reply

    Sorry for necro, but do you (or anyone) know of a way to keep a button pressed down when pressing it once? In NieR Automata for example, the fire button is right shoulder (on Xbox controller). It’s such a hassle to keep it pressed and causes me severe RSI. It would be ideal if I could tap right shoulder once to keep it pressed, and tap it again to stop firing.

    • Chris Ellis 15/05/2017 at 8:37 am Reply

      Hi Josef, I wish I could give you a good answer. It’s been a while since I played with Glovepie and it’s more than possible that there’s been updates in the software but at the time I wrote this there wasn’t a better way than holding it down. The idea was that holding down a button was something active that the player was participating in but if you made it click once to start and once to stop it would be much easier to automate cheating. I’m not sure I agree with the logic but there was a lot of debate about it at the time.
      You do give me the motivation to go back in and see what’s changed though 😉 Chris

  2. […] The GlovePIE and AutoHotKey Scripts mentioned in the layout below are the scripts we are using to making the button mashing Quick Time Events in Tomb Raider more accessible. If you struggle to hit a key (or two) repeatedly, you can replace it with the option to hold the key instead of hitting it repeatedly. Our AutoHotKey script is here and the GlovePIE script here. […]

  3. Tomb Raider Review | Dual Ring 16/03/2013 at 10:05 am - Reply

    […] We have added both a GlovePIE script here, and AutoHotKey script here, that will replace the button mashing QTEs with a single press/hold […]

Leave a Reply