Skip to content

Commit

Permalink
Add frag configs
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror committed Nov 23, 2024
1 parent 6757af4 commit 5f5dd70
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
19 changes: 14 additions & 5 deletions addons/clgp/CfgAmmo.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ class CfgAmmo {
hit = 1200;
indirectHit = 200;
indirectHitRange = 4;
EGVAR(frag,skip) = 0;
EGVAR(frag,charge) = 9979;
EGVAR(frag,metal) = 36000;
EGVAR(frag,gurney_c) = 2440;
EGVAR(frag,gurney_k) = "1/2";
EGVAR(frag,classes)[] = {QEGVAR(frag,large), QEGVAR(frag,large), QEGVAR(frag,large_HD), QEGVAR(frag,large), QEGVAR(frag,huge), QEGVAR(frag,huge_HD), QEGVAR(frag,huge)};

GVAR(artilleryDrag) = 1;
GVAR(deployCondition) = QFUNC(copperhead_deployCondition);
Expand All @@ -15,7 +21,6 @@ class CfgAmmo {
muzzleEffect = "";
airFriction = 0;

EGVAR(frag,skip) = 1; // don't frag because this is a scripted ammo
class Eventhandlers {
fired = QUOTE(call FUNC(submunition_ammoFired));
};
Expand All @@ -39,11 +44,16 @@ class CfgAmmo {
hit = 1200;
indirectHit = 200;
indirectHitRange = 4;
// todo frag
EGVAR(frag,skip) = 0;
EGVAR(frag,charge) = 9979;
EGVAR(frag,metal) = 36000;
EGVAR(frag,gurney_c) = 2440;
EGVAR(frag,gurney_k) = "1/2";
EGVAR(frag,classes)[] = {QEGVAR(frag,large), QEGVAR(frag,large), QEGVAR(frag,large_HD), QEGVAR(frag,large), QEGVAR(frag,huge), QEGVAR(frag,huge_HD), QEGVAR(frag,huge)};

maneuvrability = 10;
maneuvrability = 0;
airFriction = 0; // note: works differently from shellsim (v^3...)
sideAirFriction = 0;
sideAirFriction = 0; // -----ToDo-----

artilleryLock = 0; // would keep shell pointed towards velocity, but disables manuverability and airfric

Expand Down Expand Up @@ -95,7 +105,6 @@ class CfgAmmo {
submunitionCount = 1;
submunitionConeAngle = 0;
triggerTime = 0.1;
EGVAR(frag,skip) = 1; // don't frag because this is a scripted ammo
class Eventhandlers {
fired = QUOTE(call FUNC(submunition_ammoFired));
};
Expand Down
2 changes: 1 addition & 1 deletion addons/clgp/CfgMagazines.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ class CfgMagazines {
count = 1;
// model = QPATHTOF(data\ace_pike_ammo.p3d); // just use default pouch
initSpeed = 50;
mass = 17; // ~1.7 Pounds
mass = 12; // ~1.7 Pounds, but high density
};
};

0 comments on commit 5f5dd70

Please sign in to comment.