Skip to content

Commit

Permalink
Merge pull request #1346 from CBATeam/fix-InvisibleTargets
Browse files Browse the repository at this point in the history
Invisible Target improvements
  • Loading branch information
PabstMirror authored Oct 13, 2020
2 parents 65e3698 + 646bd1e commit 1ae8ea0
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 1 deletion.
48 changes: 48 additions & 0 deletions addons/ai/CfgVehicles.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,54 @@ class CfgVehicles {
class HitPoints {};
};

class CBA_B_InvisibleTargetVehicle: CBA_B_InvisibleTarget {
author = "$STR_CBA_Author";
displayName = CSTRING(InvisibleTargetVehicle);
model = QPATHTOF(InvisibleTargetVehicle.p3d);
crewVulnerable = 0;
type = 1;
cost = 1000000;
};

class CBA_O_InvisibleTargetVehicle: CBA_O_InvisibleTarget {
author = "$STR_CBA_Author";
displayName = CSTRING(InvisibleTargetVehicle);
model = QPATHTOF(InvisibleTargetVehicle.p3d);
crewVulnerable = 0;
type = 1;
cost = 1000000;
};

class CBA_I_InvisibleTargetVehicle: CBA_I_InvisibleTarget {
author = "$STR_CBA_Author";
displayName = CSTRING(InvisibleTargetVehicle);
model = QPATHTOF(InvisibleTargetVehicle.p3d);
crewVulnerable = 0;
type = 1;
cost = 1000000;
};

class CBA_B_InvisibleTargetAir: CBA_B_InvisibleTargetVehicle {
author = "$STR_CBA_Author";
displayName = CSTRING(InvisibleTargetAir);
type = 2;
cost = 10000000;
};

class CBA_O_InvisibleTargetAir: CBA_O_InvisibleTargetVehicle {
author = "$STR_CBA_Author";
displayName = CSTRING(InvisibleTargetAir);
type = 2;
cost = 10000000;
};

class CBA_I_InvisibleTargetAir: CBA_I_InvisibleTargetVehicle {
author = "$STR_CBA_Author";
displayName = CSTRING(InvisibleTargetAir);
type = 2;
cost = 10000000;
};

class Strategic;
class CBA_BuildingPos: Strategic {
author = "$STR_CBA_Author";
Expand Down
Binary file modified addons/ai/InvisibleTarget.p3d
Binary file not shown.
Binary file added addons/ai/InvisibleTargetVehicle.p3d
Binary file not shown.
7 changes: 6 additions & 1 deletion addons/ai/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
class CfgPatches {
class ADDON {
name = CSTRING(component);
units[] = {"CBA_B_InvisibleTarget","CBA_O_InvisibleTarget","CBA_I_InvisibleTarget","CBA_BuildingPos"};
units[] = {
"CBA_B_InvisibleTarget","CBA_O_InvisibleTarget","CBA_I_InvisibleTarget",
"CBA_B_InvisibleTargetVehicle","CBA_O_InvisibleTargetVehicle","CBA_I_InvisibleTargetVehicle",
"CBA_B_InvisibleTargetAir","CBA_O_InvisibleTargetAir","CBA_I_InvisibleTargetAir",
"CBA_BuildingPos"
};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"cba_common"};
Expand Down
8 changes: 8 additions & 0 deletions addons/ai/stringtable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,13 @@
<Russian>ИИ Место строительства</Russian>
<Polish>Pozycja AI w budynku</Polish>
</Key>
<Key ID="STR_CBA_AI_InvisibleTargetVehicle">
<English>Invisible Target Vehicle</English>
<German>Unsichtbares Ziel - Fahrzeug</German>
</Key>
<Key ID="STR_CBA_AI_InvisibleTargetAir">
<English>Invisible Target Airplane</English>
<German>Unsichtbares Ziel - Flugzeug</German>
</Key>
</Package>
</Project>

0 comments on commit 1ae8ea0

Please sign in to comment.