Skip to content

Commit

Permalink
Invisible Targets (#1012)
Browse files Browse the repository at this point in the history
* Added targets addon, for invisible targets.

* Proper fix for hitpoints.

* move to ai component, icon, formatting

* units[] CfgPatches
  • Loading branch information
Tinter authored and commy2 committed Nov 12, 2018
1 parent 1927bcf commit adb3870
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 1 deletion.
3 changes: 3 additions & 0 deletions addons/ai/CfgVehicleIcons.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class CfgVehicleIcons {
CBA_iconInvisibleTarget = QPATHTOF(IconInvisibleTarget.paa);
};
28 changes: 28 additions & 0 deletions addons/ai/CfgVehicles.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
class CfgVehicles {
class B_TargetSoldier;
class CBA_B_InvisibleTarget: B_TargetSoldier {
scope = 2;
model = QPATHTOF(InvisibleTarget.p3d);
icon = "CBA_iconInvisibleTarget";

class HitPoints {};
};

class O_TargetSoldier;
class CBA_O_InvisibleTarget: O_TargetSoldier {
scope = 2;
model = QPATHTOF(InvisibleTarget.p3d);
icon = "CBA_iconInvisibleTarget";

class HitPoints {};
};

class I_TargetSoldier;
class CBA_I_InvisibleTarget: I_TargetSoldier {
scope = 2;
model = QPATHTOF(InvisibleTarget.p3d);
icon = "CBA_iconInvisibleTarget";

class HitPoints {};
};
};
Binary file added addons/ai/IconInvisibleTarget.paa
Binary file not shown.
Binary file added addons/ai/InvisibleTarget.p3d
Binary file not shown.
4 changes: 3 additions & 1 deletion addons/ai/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class CfgPatches {
author = "$STR_CBA_Author";
name = CSTRING(component);
url = "$STR_CBA_URL";
units[] = {};
units[] = {"CBA_B_InvisibleTarget","CBA_O_InvisibleTarget","CBA_I_InvisibleTarget"};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"cba_common"};
version = VERSION;
Expand All @@ -14,4 +14,6 @@ class CfgPatches {
};

#include "CfgFunctions.hpp"
#include "CfgVehicles.hpp"
#include "CfgVehicleIcons.hpp"
#include "CfgWaypoints.hpp"

0 comments on commit adb3870

Please sign in to comment.