ACE3/addons/optics/CfgWeapons.hpp

310 lines
11 KiB
C++
Raw Permalink Normal View History

2015-04-03 10:33:12 +00:00
class CfgWeapons {
class ItemCore;
class InventoryOpticsItem_Base_F;
class Default;
2015-08-19 15:11:15 +00:00
class Binocular: Default {
2015-04-17 14:30:55 +00:00
forceOptics = 0; // Allow using compass with Binocular
opticsZoomMin = 0.056889; // 5.25x power
opticsZoomMax = 0.056889; // 9 px/mil
2015-08-19 15:12:39 +00:00
modelOptics = "\z\ace\addons\optics\models\NWD_M22_5x"; // 7 degrees horizontal field of view
2015-04-17 14:30:55 +00:00
visionMode[] = {"Normal"}; // Can't use nvgs with binoculars any more than you can with scopes
// Fix AI using Binocs on short range - #18737
// minRange = 300; // 300 = uses Rangefinder often (runs a few meters, stops, uses RF, repeats)
2015-08-19 15:11:15 +00:00
minRange = 500; //500 = seem almost never use it..?
2015-04-17 14:30:55 +00:00
minRangeProbab = 0.001;
midRange = 1000;
midRangeProbab = 0.01;
maxRange = 5000;
maxRangeProbab = 0.01;
2015-04-17 14:30:55 +00:00
};
2015-04-03 10:33:12 +00:00
2015-04-03 20:30:29 +00:00
// zooming reticle scopes
2015-04-03 10:33:12 +00:00
class optic_DMS: ItemCore {
class ItemInfo: InventoryOpticsItem_Base_F {
class OpticsModes {
class Snip;
2015-04-03 17:25:28 +00:00
class Iron;
2015-04-03 10:33:12 +00:00
};
};
};
/*class ACE_optic_DMS: optic_DMS {
2015-05-27 20:04:41 +00:00
author = ECSTRING(common,ACETeam);
2015-04-03 10:33:12 +00:00
_generalMacro = "ACE_optic_DMS";
2015-04-04 10:06:20 +00:00
scope = 1;
2015-04-03 10:33:12 +00:00
displayName = "LOCALIZE ACE DMS";
//descriptionShort = "$STR_A3_CFGWEAPONS_ACC_DMS1";
2015-04-03 17:25:28 +00:00
weaponInfoType = "ACE_RscWeaponZeroing";
2015-04-03 10:33:12 +00:00
class ItemInfo: ItemInfo {
2016-04-08 18:34:50 +00:00
modelOptics = QPATHTOF(models\ace_shortdot_optics.p3d);
2015-04-03 10:33:12 +00:00
class OpticsModes: OpticsModes {
class Snip: Snip {
opticsZoomMin = 0.05;
opticsZoomMax = 0.3;
opticsZoomInit = 0.3;
discretefov[] = {};
modelOptics[] = {};
};
2015-04-03 17:25:28 +00:00
class Iron: Iron {};
2015-04-03 10:33:12 +00:00
};
};
};*/
2015-04-03 20:30:29 +00:00
// PIP scopes
class optic_Hamr: ItemCore {
class ItemInfo: InventoryOpticsItem_Base_F {
class OpticsModes {
class Hamr2Collimator;
class Hamr2Scope;
};
};
};
2015-04-04 06:51:22 +00:00
class ACE_optic_Hamr_2D: optic_Hamr {
2016-04-08 18:34:50 +00:00
GVAR(BodyDay) = QPATHTOF(reticles\hamr-body_ca.paa);
GVAR(BodyNight) = QPATHTOF(reticles\hamr-bodyNight_ca.paa);
GVAR(ReticleDay) = QPATHTOF(reticles\hamr-reticle65_ca.paa);
GVAR(ReticleNight) = QPATHTOF(reticles\hamr-reticle65Illum_ca.paa);
2015-04-04 11:15:27 +00:00
2015-05-27 20:04:41 +00:00
author = ECSTRING(common,ACETeam);
2015-04-04 06:51:22 +00:00
_generalMacro = "ACE_optic_Hamr_2D";
displayName = CSTRING(hamr);
2015-04-04 06:51:22 +00:00
weaponInfoType = "ACE_RscWeapon_Hamr";
2015-04-03 20:30:29 +00:00
class ItemInfo: ItemInfo {
2016-04-08 18:34:50 +00:00
modelOptics = QPATHTOF(models\ace_optics_reticle90.p3d);
2015-04-03 20:30:29 +00:00
class OpticsModes: OpticsModes {
class Hamr2Collimator: Hamr2Collimator {};
class Hamr2Scope: Hamr2Scope {
useModelOptics = 1;
2015-04-04 04:19:19 +00:00
opticsZoomInit = 0.0872664626;
opticsZoomMax = 0.0872664626;
opticsZoomMin = 0.0872664626;
opticsPPEffects[] = {"OpticsCHAbera5", "OpticsBlur5", "ACE_OpticsRadBlur1"};
2015-04-03 20:30:29 +00:00
opticsDisablePeripherialVision = 0;
visionMode[] = {"Normal", "NVG"};
2015-04-03 20:30:29 +00:00
};
};
};
};
2015-04-04 06:51:22 +00:00
class ACE_optic_Hamr_PIP: ACE_optic_Hamr_2D {
2015-05-27 20:04:41 +00:00
author = ECSTRING(common,ACETeam);
2015-04-04 06:51:22 +00:00
_generalMacro = "ACE_optic_Hamr_PIP";
//scopeArsenal = 1;
displayName = CSTRING(hamr_pip);
2015-04-04 06:51:22 +00:00
class ItemInfo: ItemInfo {
2016-04-08 18:34:50 +00:00
modelOptics = QPATHTOF(models\ace_optics_pip.p3d);
2015-04-04 06:51:22 +00:00
};
};
class optic_Arco: ItemCore {
class ItemInfo: InventoryOpticsItem_Base_F {
class OpticsModes {
class ARCO2collimator;
class ARCO2scope: ARCO2collimator {};
};
};
};
class ACE_optic_Arco_2D: optic_Arco {
2016-04-08 18:34:50 +00:00
GVAR(BodyDay) = QPATHTOF(reticles\arco-body_ca.paa);
GVAR(BodyNight) = QPATHTOF(reticles\arco-bodyNight_ca.paa);
GVAR(ReticleDay) = QPATHTOF(reticles\arco-reticle65_ca.paa);
GVAR(ReticleNight) = QPATHTOF(reticles\arco-reticle65Illum_ca.paa);
2015-04-04 11:15:27 +00:00
2015-05-27 20:04:41 +00:00
author = ECSTRING(common,ACETeam);
2015-04-04 06:51:22 +00:00
_generalMacro = "ACE_optic_Arco_2D";
displayName = CSTRING(arco);
2015-04-04 06:51:22 +00:00
weaponInfoType = "ACE_RscWeapon_Arco";
class ItemInfo: ItemInfo {
2016-04-08 18:34:50 +00:00
modelOptics = QPATHTOF(models\ace_optics_reticle90.p3d);
2015-04-04 06:51:22 +00:00
class OpticsModes: OpticsModes {
class ARCO2collimator: ARCO2collimator {};
class ARCO2scope: ARCO2scope {
useModelOptics = 1;
opticsZoomInit = 0.0872664626;
opticsZoomMax = 0.0872664626;
opticsZoomMin = 0.0872664626;
opticsPPEffects[] = {"OpticsCHAbera5", "OpticsBlur5", "ACE_OpticsRadBlur1"};
2015-04-04 06:51:22 +00:00
opticsDisablePeripherialVision = 0;
visionMode[] = {"Normal"};
};
};
};
};
class ACE_optic_Arco_PIP: ACE_optic_Arco_2D {
2015-05-27 20:04:41 +00:00
author = ECSTRING(common,ACETeam);
2015-04-04 06:51:22 +00:00
_generalMacro = "ACE_optic_Arco_PIP";
//scopeArsenal = 1;
displayName = CSTRING(arco_pip);
2015-04-04 06:51:22 +00:00
class ItemInfo: ItemInfo {
2016-04-08 18:34:50 +00:00
modelOptics = QPATHTOF(models\ace_optics_pip.p3d);
2015-04-04 06:51:22 +00:00
};
};
class optic_MRCO: ItemCore {
class ItemInfo: InventoryOpticsItem_Base_F {
class OpticsModes {
class MRCOcq;
class MRCOscope;
};
};
};
class ACE_optic_MRCO_2D: optic_MRCO {
2016-04-08 18:34:50 +00:00
GVAR(BodyDay) = QPATHTOF(reticles\mrco-body_ca.paa);
GVAR(BodyNight) = QPATHTOF(reticles\mrco-bodyNight_ca.paa);
GVAR(ReticleDay) = QPATHTOF(reticles\mrco-reticle556_ca.paa);
GVAR(ReticleNight) = QPATHTOF(reticles\mrco-reticle556Illum_ca.paa);
2015-04-04 11:15:27 +00:00
2015-05-27 20:04:41 +00:00
author = ECSTRING(common,ACETeam);
2015-04-04 06:51:22 +00:00
_generalMacro = "ACE_optic_MRCO_2D";
displayName = CSTRING(valdada);
2015-04-04 06:51:22 +00:00
weaponInfoType = "ACE_RscWeapon_MRCO";
class ItemInfo: ItemInfo {
2016-04-08 18:34:50 +00:00
modelOptics = QPATHTOF(models\ace_optics_reticle90.p3d);
2015-04-04 06:51:22 +00:00
class OpticsModes: OpticsModes {
class MRCOcq: MRCOcq {};
class MRCOscope: MRCOscope {
useModelOptics = 1;
opticsZoomInit = 0.0872664626;
opticsZoomMax = 0.0872664626;
opticsZoomMin = 0.0872664626;
opticsPPEffects[] = {"OpticsCHAbera5", "OpticsBlur5", "ACE_OpticsRadBlur1"};
2015-04-04 06:51:22 +00:00
opticsDisablePeripherialVision = 0;
visionMode[] = {"Normal"};
};
};
};
};
class ACE_optic_MRCO_PIP: ACE_optic_MRCO_2D {
2015-05-27 20:04:41 +00:00
author = ECSTRING(common,ACETeam);
2015-04-04 06:51:22 +00:00
_generalMacro = "ACE_optic_MRCO_PIP";
2015-04-04 10:06:20 +00:00
scope = 1;
//scopeArsenal = 1;
displayName = CSTRING(valdada_pip);
2015-04-04 06:51:22 +00:00
class ItemInfo: ItemInfo {
2016-04-08 18:34:50 +00:00
modelOptics = QPATHTOF(models\ace_optics_pip.p3d);
2015-04-04 06:51:22 +00:00
};
};
class optic_SOS: ItemCore {
class ItemInfo: InventoryOpticsItem_Base_F {
class OpticsModes {
class Snip;
class Iron;
};
};
};
class ACE_optic_SOS_2D: optic_SOS {
2016-04-08 18:34:50 +00:00
GVAR(BodyDay) = QPATHTOF(reticles\sos-body_ca.paa);
GVAR(BodyNight) = QPATHTOF(reticles\sos-bodyNight_ca.paa);
GVAR(ReticleDay) = QPATHTOF(reticles\sos-reticleMLR_ca.paa);
GVAR(ReticleNight) = QPATHTOF(reticles\sos-reticleMLRIllum_ca.paa);
2015-04-13 10:04:05 +00:00
2015-05-27 20:04:41 +00:00
author = ECSTRING(common,ACETeam);
2015-04-04 06:51:22 +00:00
_generalMacro = "ACE_optic_SOS_2D";
displayName = CSTRING(sos);
2015-04-04 06:51:22 +00:00
weaponInfoType = "ACE_RscWeapon_SOS";
class ItemInfo: ItemInfo {
class OpticsModes: OpticsModes {
2016-06-09 12:28:31 +00:00
class Snip: Snip {
modelOptics[] = {QPATHTOF(models\ace_optics_reticle90.p3d), QPATHTOF(models\ace_optics_reticle90.p3d)};
useModelOptics = 1;
opticsZoomInit = 0.0116;
opticsZoomMax = 0.0464;
opticsZoomMin = 0.0116;
discreteFOV[] = {0.0464, 0.0116};
opticsPPEffects[] = {"OpticsCHAbera1", "OpticsBlur1", "ACE_OpticsRadBlur1"};
2016-06-09 12:28:31 +00:00
opticsDisablePeripherialVision = 0;
2015-04-04 06:51:22 +00:00
};
class Iron: Iron {};
};
};
};
class ACE_optic_SOS_PIP: ACE_optic_SOS_2D {
2015-05-27 20:04:41 +00:00
author = ECSTRING(common,ACETeam);
2015-04-04 06:51:22 +00:00
_generalMacro = "ACE_optic_SOS_PIP";
//scopeArsenal = 1;
displayName = CSTRING(sos_pip);
2015-04-04 06:51:22 +00:00
class ItemInfo: ItemInfo {
class OpticsModes: OpticsModes {
class Snip: Snip {
modelOptics[] = {QPATHTOF(models\ace_optics_pip.p3d), QPATHTOF(models\ace_optics_pip.p3d)};
2015-04-04 06:51:22 +00:00
};
class Iron: Iron {};
2015-04-04 06:51:22 +00:00
};
};
};
class optic_LRPS: ItemCore {
class ItemInfo: InventoryOpticsItem_Base_F {
class OpticsModes {
class Snip;
};
};
};
class ACE_optic_LRPS_2D: optic_LRPS {
2016-04-08 18:34:50 +00:00
GVAR(BodyDay) = QPATHTOF(reticles\sos-body_ca.paa);
GVAR(BodyNight) = QPATHTOF(reticles\sos-bodyNight_ca.paa);
GVAR(ReticleDay) = QPATHTOF(reticles\sos-reticleMLR_ca.paa);
GVAR(ReticleNight) = QPATHTOF(reticles\sos-reticleMLRIllum_ca.paa);
2015-04-04 11:15:27 +00:00
2015-05-27 20:04:41 +00:00
author = ECSTRING(common,ACETeam);
2015-04-04 06:51:22 +00:00
_generalMacro = "ACE_optic_LRPS_2D";
displayName = CSTRING(lrps);
2015-04-04 06:51:22 +00:00
weaponInfoType = "ACE_RscWeapon_SOS";
class ItemInfo: ItemInfo {
class OpticsModes: OpticsModes {
class Snip: Snip {
modelOptics[] = {QPATHTOF(models\ace_optics_reticle90.p3d), QPATHTOF(models\ace_optics_reticle90.p3d)};
2015-04-04 06:51:22 +00:00
useModelOptics = 1;
opticsZoomInit = 0.0116;
opticsZoomMax = 0.0464;
opticsZoomMin = 0.0116;
2015-04-04 06:51:22 +00:00
discreteFOV[] = {};
opticsPPEffects[] = {"OpticsCHAbera1", "OpticsBlur1", "ACE_OpticsRadBlur1"};
2015-04-04 06:51:22 +00:00
opticsDisablePeripherialVision = 0;
};
};
};
};
class ACE_optic_LRPS_PIP: ACE_optic_LRPS_2D {
2015-05-27 20:04:41 +00:00
author = ECSTRING(common,ACETeam);
2015-04-04 06:51:22 +00:00
_generalMacro = "ACE_optic_LRPS_PIP";
//scopeArsenal = 1;
displayName = CSTRING(lrps_pip);
2015-04-04 06:51:22 +00:00
class ItemInfo: ItemInfo {
class OpticsModes: OpticsModes {
class Snip: Snip {
modelOptics[] = {QPATHTOF(models\ace_optics_pip.p3d), QPATHTOF(models\ace_optics_pip.p3d)};
2015-04-04 06:51:22 +00:00
};
};
};
};
2015-04-03 10:33:12 +00:00
};