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

Invisible Target improvements #1346

Merged
merged 2 commits into from
Oct 13, 2020
Merged
Show file tree
Hide file tree
Changes from all 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
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 @@ -23,5 +23,13 @@
<Chinese>AI在建築物內位置</Chinese>
<French>Position IA bâtiment</French>
</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>