ACE3/addons/optics/CfgWeapons.hpp

322 lines
11 KiB
C++
Raw Normal View History

2015-04-03 17:25:28 +00:00
2015-04-03 10:33:12 +00:00
class CfgWeapons {
class ItemCore;
class InventoryOpticsItem_Base_F;
class Default;
class Binocular: Default {
forceOptics = 0; // Allow using compass with Binocular
opticsZoomMin = 0.056889; // 5.25x power
opticsZoomMax = 0.056889; // 9 px/mil
modelOptics = "\z\ace\addons\optics\models\NWD_M22_5x"; // 7<> horizontal field of view
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)
minRange = 500; //500 = seem almost never use it..?
minRangeProbab = 0.001;
midRange = 1000;
midRangeProbab = 0.01;
maxRange = 5000;
maxRangeProbab = 0.01;
};
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-04-03 10:33:12 +00:00
author = "$STR_ACE_Common_ACETeam";
_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 {
modelOptics = QUOTE(PATHTOF(models\ace_shortdot_optics.p3d));
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 {
2015-04-04 11:15:27 +00:00
GVAR(BodyDay) = QUOTE(PATHTOF(reticles\hamr-body_ca.paa));
GVAR(BodyNight) = QUOTE(PATHTOF(reticles\hamr-bodyNight_ca.paa));
GVAR(ReticleDay) = QUOTE(PATHTOF(reticles\hamr-reticle65_ca.paa));
GVAR(ReticleNight) = QUOTE(PATHTOF(reticles\hamr-reticle65Illum_ca.paa));
2015-04-03 20:30:29 +00:00
author = "$STR_ACE_Common_ACETeam";
2015-04-04 06:51:22 +00:00
_generalMacro = "ACE_optic_Hamr_2D";
2015-04-04 07:16:41 +00:00
displayName = "$STR_ACE_optic_hamr";
2015-04-04 06:51:22 +00:00
weaponInfoType = "ACE_RscWeapon_Hamr";
2015-04-03 20:30:29 +00:00
class ItemInfo: ItemInfo {
2015-04-04 06:51:22 +00:00
modelOptics = QUOTE(PATHTOF(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;
2015-04-04 11:15:27 +00:00
opticsPPEffects[] = {"OpticsCHAbera5","OpticsBlur5","ACE_OpticsRadBlur1"};
2015-04-03 20:30:29 +00:00
opticsDisablePeripherialVision = 0;
visionMode[] = {"Normal","NVG"};
};
};
};
};
2015-04-04 06:51:22 +00:00
class ACE_optic_Hamr_PIP: ACE_optic_Hamr_2D {
author = "$STR_ACE_Common_ACETeam";
_generalMacro = "ACE_optic_Hamr_PIP";
2015-04-04 10:06:20 +00:00
scopeArsenal = 1;
2015-04-04 07:16:41 +00:00
displayName = "$STR_ACE_optic_hamr_pip";
2015-04-04 06:51:22 +00:00
class ItemInfo: ItemInfo {
modelOptics = QUOTE(PATHTOF(models\ace_optics_pip.p3d));
};
};
class optic_Arco: ItemCore {
class ItemInfo: InventoryOpticsItem_Base_F {
class OpticsModes {
class ARCO2collimator;
class ARCO2scope: ARCO2collimator {};
};
};
};
class ACE_optic_Arco_2D: optic_Arco {
2015-04-04 11:15:27 +00:00
GVAR(BodyDay) = QUOTE(PATHTOF(reticles\arco-body_ca.paa));
GVAR(BodyNight) = QUOTE(PATHTOF(reticles\arco-bodyNight_ca.paa));
GVAR(ReticleDay) = QUOTE(PATHTOF(reticles\arco-reticle65_ca.paa));
GVAR(ReticleNight) = QUOTE(PATHTOF(reticles\arco-reticle65Illum_ca.paa));
2015-04-04 06:51:22 +00:00
author = "$STR_ACE_Common_ACETeam";
_generalMacro = "ACE_optic_Arco_2D";
2015-04-04 07:16:41 +00:00
displayName = "$STR_ACE_optic_arco";
2015-04-04 06:51:22 +00:00
weaponInfoType = "ACE_RscWeapon_Arco";
class ItemInfo: ItemInfo {
modelOptics = QUOTE(PATHTOF(models\ace_optics_reticle90.p3d));
class OpticsModes: OpticsModes {
class ARCO2collimator: ARCO2collimator {};
class ARCO2scope: ARCO2scope {
useModelOptics = 1;
opticsZoomInit = 0.0872664626;
opticsZoomMax = 0.0872664626;
opticsZoomMin = 0.0872664626;
2015-04-04 11:15:27 +00:00
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 {
author = "$STR_ACE_Common_ACETeam";
_generalMacro = "ACE_optic_Arco_PIP";
2015-04-04 10:06:20 +00:00
scopeArsenal = 1;
2015-04-04 07:16:41 +00:00
displayName = "$STR_ACE_optic_arco_pip";
2015-04-04 06:51:22 +00:00
class ItemInfo: ItemInfo {
modelOptics = QUOTE(PATHTOF(models\ace_optics_pip.p3d));
};
};
class optic_MRCO: ItemCore {
class ItemInfo: InventoryOpticsItem_Base_F {
class OpticsModes {
class MRCOcq;
class MRCOscope;
};
};
};
class ACE_optic_MRCO_2D: optic_MRCO {
2015-04-04 11:15:27 +00:00
GVAR(BodyDay) = QUOTE(PATHTOF(reticles\mrco-body_ca.paa));
GVAR(BodyNight) = QUOTE(PATHTOF(reticles\mrco-bodyNight_ca.paa));
GVAR(ReticleDay) = QUOTE(PATHTOF(reticles\mrco-reticle556_ca.paa));
GVAR(ReticleNight) = QUOTE(PATHTOF(reticles\mrco-reticle556Illum_ca.paa));
2015-04-04 06:51:22 +00:00
author = "$STR_ACE_Common_ACETeam";
_generalMacro = "ACE_optic_MRCO_2D";
2015-04-04 07:16:41 +00:00
displayName = "$STR_ACE_optic_valdada";
2015-04-04 06:51:22 +00:00
weaponInfoType = "ACE_RscWeapon_MRCO";
class ItemInfo: ItemInfo {
modelOptics = QUOTE(PATHTOF(models\ace_optics_reticle90.p3d));
class OpticsModes: OpticsModes {
class MRCOcq: MRCOcq {};
class MRCOscope: MRCOscope {
useModelOptics = 1;
opticsZoomInit = 0.0872664626;
opticsZoomMax = 0.0872664626;
opticsZoomMin = 0.0872664626;
2015-04-04 11:15:27 +00:00
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 {
author = "$STR_ACE_Common_ACETeam";
_generalMacro = "ACE_optic_MRCO_PIP";
2015-04-04 10:06:20 +00:00
scope = 1;
scopeArsenal = 1;
2015-04-04 07:16:41 +00:00
displayName = "$STR_ACE_optic_valdada_pip";
2015-04-04 06:51:22 +00:00
class ItemInfo: ItemInfo {
modelOptics = QUOTE(PATHTOF(models\ace_optics_pip.p3d));
};
};
class optic_SOS: ItemCore {
class ItemInfo: InventoryOpticsItem_Base_F {
class OpticsModes {
class Snip;
class Iron;
};
};
};
class ACE_optic_SOS_2D: optic_SOS {
2015-04-13 10:04:05 +00:00
GVAR(BodyDay) = QUOTE(PATHTOF(reticles\sos-body_ca.paa));
GVAR(BodyNight) = QUOTE(PATHTOF(reticles\sos-bodyNight_ca.paa));
GVAR(ReticleDay) = QUOTE(PATHTOF(reticles\sos-reticleMLR_ca.paa));
GVAR(ReticleNight) = QUOTE(PATHTOF(reticles\sos-reticleMLRIllum_ca.paa));
2015-04-04 06:51:22 +00:00
author = "$STR_ACE_Common_ACETeam";
_generalMacro = "ACE_optic_SOS_2D";
2015-04-04 07:16:41 +00:00
displayName = "$STR_ACE_optic_sos";
2015-04-04 06:51:22 +00:00
weaponInfoType = "ACE_RscWeapon_SOS";
class ItemInfo: ItemInfo {
class OpticsModes: OpticsModes {
class Snip: Snip {
modelOptics[] = {QUOTE(PATHTOF(models\ace_optics_reticle90.p3d)),QUOTE(PATHTOF(models\ace_optics_reticle90.p3d))};
opticsDisablePeripherialVision = 0;
};
class Iron: Iron {};
};
};
};
class ACE_optic_SOS_PIP: ACE_optic_SOS_2D {
author = "$STR_ACE_Common_ACETeam";
_generalMacro = "ACE_optic_SOS_PIP";
2015-04-04 10:06:20 +00:00
scopeArsenal = 1;
2015-04-04 07:16:41 +00:00
displayName = "$STR_ACE_optic_sos_pip";
2015-04-04 06:51:22 +00:00
class ItemInfo: ItemInfo {
class OpticsModes: OpticsModes {
class Snip: Snip {
modelOptics[] = {QUOTE(PATHTOF(models\ace_optics_pip.p3d)),QUOTE(PATHTOF(models\ace_optics_pip.p3d))};
};
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 {
2015-04-04 11:15:27 +00:00
GVAR(BodyDay) = QUOTE(PATHTOF(reticles\sos-body_ca.paa));
GVAR(BodyNight) = QUOTE(PATHTOF(reticles\sos-bodyNight_ca.paa));
GVAR(ReticleDay) = QUOTE(PATHTOF(reticles\sos-reticleMLR_ca.paa));
GVAR(ReticleNight) = QUOTE(PATHTOF(reticles\sos-reticleMLRIllum_ca.paa));
2015-04-04 06:51:22 +00:00
author = "$STR_ACE_Common_ACETeam";
_generalMacro = "ACE_optic_LRPS_2D";
2015-04-04 07:16:41 +00:00
displayName = "$STR_ACE_optic_lrps";
2015-04-04 06:51:22 +00:00
weaponInfoType = "ACE_RscWeapon_SOS";
class ItemInfo: ItemInfo {
class OpticsModes: OpticsModes {
class Snip: Snip {
modelOptics[] = {QUOTE(PATHTOF(models\ace_optics_reticle90.p3d)),QUOTE(PATHTOF(models\ace_optics_reticle90.p3d))};
useModelOptics = 1;
opticsZoomInit = 0.01234;
opticsZoomMax = 0.04673;
opticsZoomMin = 0.01234;
discreteFOV[] = {};
2015-04-04 11:15:27 +00:00
opticsPPEffects[] = {"OpticsCHAbera1","OpticsBlur1","ACE_OpticsRadBlur1"};
2015-04-04 06:51:22 +00:00
opticsDisablePeripherialVision = 0;
};
};
};
};
class ACE_optic_LRPS_PIP: ACE_optic_LRPS_2D {
author = "$STR_ACE_Common_ACETeam";
_generalMacro = "ACE_optic_LRPS_PIP";
2015-04-04 10:06:20 +00:00
scopeArsenal = 1;
2015-04-04 07:16:41 +00:00
displayName = "$STR_ACE_optic_lrps_pip";
2015-04-04 06:51:22 +00:00
class ItemInfo: ItemInfo {
class OpticsModes: OpticsModes {
class Snip: Snip {
modelOptics[] = {QUOTE(PATHTOF(models\ace_optics_pip.p3d)),QUOTE(PATHTOF(models\ace_optics_pip.p3d))};
};
};
};
};
2015-04-03 10:33:12 +00:00
};
class SlotInfo;
class CowsSlot: SlotInfo {
2015-04-04 06:51:22 +00:00
compatibleItems[] += {
"ACE_optic_Hamr_2D",
"ACE_optic_Hamr_PIP",
"ACE_optic_Arco_2D",
"ACE_optic_Arco_PIP",
"ACE_optic_MRCO_2D",
"ACE_optic_MRCO_PIP",
"ACE_optic_SOS_2D",
"ACE_optic_SOS_PIP",
"ACE_optic_LRPS_2D",
"ACE_optic_LRPS_PIP"
//"ACE_optic_DMS"
2015-04-04 06:51:22 +00:00
};
2015-04-03 10:33:12 +00:00
};