-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8bcb632
commit 7979e7f
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
class CfgUserActions | ||
{ | ||
class vtx_weapons_fireLaser { | ||
displayName = "Fire Laser"; | ||
tooltip = "Hit this key to fire mentioned weapon."; | ||
onActivate = "(driver vehicle player) forceWeaponFire ['Laserdesignator_pilotCamera', 'Laserdesignator_pilotCamera']"; // _this is always true. | ||
onDeactivate = ""; // _this is always false. | ||
onAnalog = ""; // _this is the scalar analog value. | ||
analogChangeThreshold = 0.1; // Minimum change required to trigger the onAnalog EH (default: 0.01). | ||
}; | ||
class vtx_weapons_fireRockets : vtx_weapons_fireLaser { | ||
displayName = "Fire FFAR Rockets"; | ||
tooltip = "Hit this key to fire mentioned weapon."; | ||
onActivate = "(driver vehicle player) forceWeaponFire ['vtx_hydra', 'Single']"; // _this is always true. | ||
}; | ||
class vtx_weapons_fireHellfire : vtx_weapons_fireLaser { | ||
displayName = "Fire Hellfire"; | ||
tooltip = "Hit this key to fire mentioned weapon."; | ||
onActivate = "(driver vehicle player) forceWeaponFire ['vtx_hellfire_launcher', 'vtx_hellfire_launcher']"; // _this is always true. | ||
}; | ||
class vtx_weapons_fireAPKWS : vtx_weapons_fireLaser { | ||
displayName = "Fire APKWS"; | ||
tooltip = "Hit this key to fire mentioned weapon."; | ||
onActivate = "(driver vehicle player) forceWeaponFire ['vtx_apkws', 'Medium_AI']"; // _this is always true. | ||
}; | ||
}; | ||
class CfgDefaultKeysPresets {}; | ||
class UserActionGroups | ||
{ | ||
class Vtx_KeyBinds_FLIR { | ||
name = "H-60 Weapons"; // Display name of your category. | ||
isAddon = 1; | ||
group[] = { | ||
"vtx_weapons_fireAPKWS", | ||
"vtx_weapons_fireHellfire", | ||
"vtx_weapons_fireLaser", | ||
"vtx_weapons_fireRockets" | ||
}; // List of all actions inside this category. | ||
}; | ||
}; |