Skip to content

Commit

Permalink
Attributes - Add support for FIREWEAPON AI ability (#776)
Browse files Browse the repository at this point in the history
* Attributes - Add new parameter in disableAI introduced with Arma 3 version 2.18

* add me into AUTHORS.txt

* change Weapon Fire to Fire Weapon,
sort alphabetically,
remove unconfirmed translate

* sort alphabetically

* Add German translation

* Bump REQUIRED_VERSION

---------

Co-authored-by: Kex <[email protected]>
  • Loading branch information
PlayerBotPro and Kexanone authored Nov 13, 2024
1 parent 785affa commit a952920
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 13 deletions.
1 change: 1 addition & 0 deletions AUTHORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ MattNot
mihuan-0
Moerderhoschi
PabstMirror
PlayerBot
Ryan180602
shukari
SilentSpike
Expand Down
6 changes: 6 additions & 0 deletions addons/ai/stringtable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,12 @@
<Chinese>掩護</Chinese>
<Italian>Coperchio</Italian>
</Key>
<Key ID="STR_ZEN_AI_FireWeapon">
<English>Fire Weapon</English>
<German>Waffe feuern</German>
<Chinesesimp>武器开火</Chinesesimp>
<Chinese>武器開火</Chinese>
</Key>
<Key ID="STR_ZEN_AI_FSM">
<English>FSM</English>
<Russian>FSM</Russian>
Expand Down
23 changes: 12 additions & 11 deletions addons/attributes/initAttributes.inc.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -936,17 +936,18 @@
[19.5, 0, 6.5, ELSTRING(ai,AutoTarget)],
[0, 1, 6.5, ELSTRING(ai,CheckVisible)],
[6.5, 1, 6.5, ELSTRING(ai,Cover)],
[13, 1, 6.5, ELSTRING(ai,FSM)],
[19.5, 1, 6.5, ELSTRING(ai,LightsVehicle)],
[0, 2, 6.5, ELSTRING(ai,MineDetection)],
[6.5, 2, 6.5, ELSTRING(ai,Move)],
[13, 2, 6.5, ELSTRING(ai,Nightvision)],
[19.5, 2, 6.5, ELSTRING(ai,Path)],
[0, 3, 6.5, ELSTRING(ai,RadioProtocol)],
[6.5, 3, 6.5, ELSTRING(ai,Suppression)],
[13, 3, 6.5, ELSTRING(ai,Target)],
[19.5, 3, 6.5, ELSTRING(ai,TeamSwitch)],
[0, 4, 6.5, ELSTRING(ai,WeaponAim)]
[13, 1, 6.5, ELSTRING(ai,FireWeapon)],
[19.5, 1, 6.5, ELSTRING(ai,FSM)],
[0, 2, 6.5, ELSTRING(ai,LightsVehicle)],
[6.5, 2, 6.5, ELSTRING(ai,MineDetection)],
[13, 2, 6.5, ELSTRING(ai,Move)],
[19.5, 2, 6.5, ELSTRING(ai,Nightvision)],
[0, 3, 6.5, ELSTRING(ai,Path)],
[6.5, 3, 6.5, ELSTRING(ai,RadioProtocol)],
[13, 3, 6.5, ELSTRING(ai,Suppression)],
[19.5, 3, 6.5, ELSTRING(ai,Target)],
[0, 4, 6.5, ELSTRING(ai,TeamSwitch)],
[6.5, 4, 6.5, ELSTRING(ai,WeaponAim)]
], 5, true],
{
{
Expand Down
2 changes: 1 addition & 1 deletion addons/attributes/script_component.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@
#define MODE_TARGET 1
#define MODE_GLOBAL 2

#define AI_ABILITIES ["AIMINGERROR", "ANIM", "AUTOCOMBAT", "AUTOTARGET", "CHECKVISIBLE", "COVER", "FSM", "LIGHTS", "MINEDETECTION", "MOVE", "NVG", "PATH", "RADIOPROTOCOL", "SUPPRESSION", "TARGET", "TEAMSWITCH", "WEAPONAIM"]
#define AI_ABILITIES ["AIMINGERROR", "ANIM", "AUTOCOMBAT", "AUTOTARGET", "CHECKVISIBLE", "COVER", "FIREWEAPON", "FSM", "LIGHTS", "MINEDETECTION", "MOVE", "NVG", "PATH", "RADIOPROTOCOL", "SUPPRESSION", "TARGET", "TEAMSWITCH", "WEAPONAIM"]
2 changes: 1 addition & 1 deletion addons/main/script_mod.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#define VERSION_AR MAJOR,MINOR,PATCHLVL,BUILD

// MINIMAL required version for the Mod. Components can specify others..
#define REQUIRED_VERSION 2.14
#define REQUIRED_VERSION 2.18
#define REQUIRED_CBA_VERSION {3,16,0}

#ifdef COMPONENT_BEAUTIFIED
Expand Down

0 comments on commit a952920

Please sign in to comment.