Added an example mod of hs_keypress.

This commit is contained in:
NovaRain
2016-04-19 17:18:26 +08:00
parent 05f15f0262
commit 8c0fab1f6b
3 changed files with 25 additions and 0 deletions
Binary file not shown.
@@ -0,0 +1,16 @@
procedure start;
#include ".\HEADERS\dik.h"
procedure start begin
variable event, keyDX;
if not init_hook then begin
event := get_sfall_arg;
keyDX := get_sfall_arg;
if ((event == 1) and (keyDX == DIK_SEMICOLON)) then begin
tap_key(DIK_CAPITAL);
tap_key(DIK_A);
tap_key(DIK_CAPITAL);
end
end
end
@@ -0,0 +1,9 @@
"Take All" Hotkey mod for Fallout 2 by NovaRain
----------------------------------------
- makes pressing the semicolon key send an uppercase A after a semicolon.
- the uppercase A (shift + A if Caps Lock is off) is the built-in hotkey for the TAKE ALL button on the loot screen.
To use, copy hs_keypress.int file to your scripts folder.
This mod is a simple example of how you can use HOOK_KEYPRESS hooks.