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

Compatibility - Add buff to Shilka API ammo #214

Merged
merged 2 commits into from
May 8, 2024
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
7 changes: 6 additions & 1 deletion .hemtt/project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ exclude = [
".inc.sqf",
]

[hemtt.launch]
[hemtt.launch.default]
workshop = [
"450814997", # CBA_A3
"2369477168", # ADT
Expand Down Expand Up @@ -84,3 +84,8 @@ parameters = [
dlc = [
"Spearhead 1944",
]

[hemtt.launch.gm]
dlc = [
"Global Mobilization",
]
15 changes: 15 additions & 0 deletions addons/compatibility/global_mobilization/CfgAmmo.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

class CfgAmmo {
/*
Reference:
B_30mm_APFSDS_Tracer_Green
aiAmmoUsageFlags = "128 + 512";
caliber = 6;
hit = 120;
*/
class gm_bullet_23x152mm_base;
class gm_bullet_23x152mm_API_T_BZT: gm_bullet_23x152mm_base {
caliber = 6; // 3.80952
hit = 80; // 52.47;
};
};
19 changes: 19 additions & 0 deletions addons/compatibility/global_mobilization/config.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#include "script_component.hpp"

class CfgPatches {
class SUBADDON {
name = COMPONENT_NAME;
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {
"gm_weapons_ammo"
};
skipWhenMissingDependencies = 1;
author = "ArmaForces";
authors[] = {"veteran29"};
VERSION_CONFIG;
};
};

#include "CfgAmmo.hpp"
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#define SUBCOMPONENT global_mobilization
#include "..\script_component.hpp"
Loading