Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attributes - Add support for FIREWEAPON AI ability #776

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
12 changes: 12 additions & 0 deletions addons/ai/stringtable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -404,5 +404,17 @@
<Chinese>武器瞄準</Chinese>
<Italian>Obiettivo dell'arma</Italian>
</Key>
<Key ID="STR_ZEN_AI_FireWeapon">
<English>Weapon Fire</English>
Kexanone marked this conversation as resolved.
Show resolved Hide resolved
<French>Tir d'arme</French>
<German>Waffenfeuer</German>
<Polish>Ogień z broni</Polish>
<Korean>무기 발사</Korean>
<Japanese>武器発射</Japanese>
<Spanish>Disparo de arma</Spanish>
<Chinesesimp>武器开火</Chinesesimp>
<Chinese>武器開火</Chinese>
<Italian>Fuoco dell'arma</Italian>
mharis001 marked this conversation as resolved.
Show resolved Hide resolved
</Key>
</Package>
</Project>
3 changes: 2 additions & 1 deletion addons/attributes/initAttributes.inc.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,8 @@
[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)]
[0, 4, 6.5, ELSTRING(ai,WeaponAim)],
[6.5, 4, 6.5, ELSTRING(ai,FireWeapon)]
mharis001 marked this conversation as resolved.
Show resolved Hide resolved
], 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", "FSM", "LIGHTS", "MINEDETECTION", "MOVE", "NVG", "PATH", "RADIOPROTOCOL", "SUPPRESSION", "TARGET", "TEAMSWITCH", "WEAPONAIM", "FIREWEAPON"]
Loading