Files
DayZ-Epoch/SQF/dayz_code/Configs/CfgWeapons/Rifles/XM8.hpp
A Man d9b9874532 Change scope and type of configs from name to numbers
This got discussed earlier. Since epoch got merged with DayZ Mod we have a different name for the scope and type of configs.  A proper config should use numbers for those entries. This is the same how arma configs are written.  The basicDefines.hpp has all the needed information stored.

Also, this removes the weight entries from the magazines since we have them in a separate folder, so admins can edit them.
2020-05-29 02:04:06 +02:00

477 lines
12 KiB
C++

class m8_carbine;
class XM8_DZ: m8_carbine {
scope = 2;
displayName = $STR_DZ_WPN_XM8_CARBINE_NAME;
descriptionShort = $STR_DSS_XM8;
model = "\RH_mgswp\RH_xm8.p3d";
picture = "\RH_mgswp\inv\xm8.paa";
reloadMagazineSound[] = {"\RH_mgswp\sound\xm8_reload",0.0316228,1,20};
handAnim[] = {"OFP2_ManSkeleton","\Ca\weapons\data\Anim\AK.rtm"};
magazines[] =
{
30Rnd_556x45_G36,
100Rnd_556x45_BetaCMag,
30Rnd_556x45_Stanag,
20Rnd_556x45_Stanag,
60Rnd_556x45_Stanag_Taped
};
class Single: Mode_SemiAuto
{
begin1[] = {"\RH_mgswp\sound\xm8",1.77828,1,1100};
soundBegin[] = {"begin1",1};
reloadTime = 0.08;
recoil = "recoil_single_primary_3outof10";
recoilProne = "recoil_single_primary_prone_3outof10";
dispersion = 0.00175;
minRange = 2;
minRangeProbab = 0.3;
midRange = 250;
midRangeProbab = 0.7;
maxRange = 350;
maxRangeProbab = 0.05;
};
class Burst: Mode_Burst
{
begin1[] = {"\RH_mgswp\sound\xm8",1.77828,1,1100};
soundBegin[] = {"begin1",1};
soundContinuous = 0;
reloadTime = 0.08;
soundBurst = 0;
ffCount = 3;
recoil = "recoil_auto_primary_3outof10";
recoilProne = "recoil_auto_primary_prone_3outof10";
dispersion = 0.00175;
minRange = 0;
minRangeProbab = 0.3;
midRange = 25;
midRangeProbab = 0.7;
maxRange = 70;
maxRangeProbab = 0.05;
};
class FullAuto: Mode_FullAuto
{
begin1[] = {"\RH_mgswp\sound\xm8",1.77828,1,1100};
soundBegin[] = {"begin1",1};
soundContinuous = 0;
reloadTime = 0.08;
recoil = "recoil_auto_primary_3outof10";
recoilProne = "recoil_auto_primary_prone_3outof10";
dispersion = 0.00175;
minRange = 0;
minRangeProbab = 0.3;
midRange = 25;
midRangeProbab = 0.7;
maxRange = 70;
maxRangeProbab = 0.05;
};
};
class XM8_DES_DZ: XM8_DZ {
model = "\RH_mgswp\RH_xm8d.p3d";
picture = "\RH_mgswp\inv\xm8d.paa";
};
class XM8_GREY_DZ: XM8_DZ {
model = "\Ca\Weapons_PMC\XM8\m8_carbine.p3d";
picture = "\ca\Weapons_PMC\Data\ui\w_xm8_ca.paa";
};
class XM8_GREY_2_DZ: XM8_DZ {
model = "\Ca\Weapons_PMC\XM8\m8_carbine_pmc.p3d";
picture = "\ca\Weapons_PMC\Data\ui\w_xm8_CQC_ca.paa";
handAnim[] = {"OFP2_ManSkeleton","\Ca\weapons_E\SCAR\Data\Anim\SCAR.rtm"};
};
class m8_carbineGL;
class XM8_GL_DZ: m8_carbineGL {
displayName = $STR_DZ_WPN_XM8_GL_CARBINE_NAME;
model = "\RH_mgswp\RH_xm8gl.p3d";
picture = "\RH_mgswp\inv\xm8gl.paa";
muzzles[] = {"this","XM320Muzzle"};
reloadMagazineSound[] = {"\RH_mgswp\sound\xm8_reload",0.0316228,1,20};
handAnim[] = {"OFP2_ManSkeleton","\CA\weapons2\Data\Anim\XM8GL.rtm"};
magazines[] =
{
30Rnd_556x45_G36,
100Rnd_556x45_BetaCMag,
30Rnd_556x45_Stanag,
20Rnd_556x45_Stanag,
60Rnd_556x45_Stanag_Taped
};
class Single: Mode_SemiAuto
{
begin1[] = {"\RH_mgswp\sound\xm8",1.77828,1,1100};
soundBegin[] = {"begin1",1};
reloadTime = 0.08;
recoil = "recoil_single_primary_3outof10";
recoilProne = "recoil_single_primary_prone_3outof10";
dispersion = 0.00175;
minRange = 2;
minRangeProbab = 0.3;
midRange = 250;
midRangeProbab = 0.7;
maxRange = 350;
maxRangeProbab = 0.05;
};
class Burst: Mode_Burst
{
begin1[] = {"\RH_mgswp\sound\xm8",1.77828,1,1100};
soundBegin[] = {"begin1",1};
soundContinuous = 0;
soundBurst = 0;
ffCount = 3;
reloadTime = 0.08;
recoil = "recoil_auto_primary_3outof10";
recoilProne = "recoil_auto_primary_prone_3outof10";
dispersion = 0.00175;
minRange = 0;
minRangeProbab = 0.3;
midRange = 25;
midRangeProbab = 0.7;
maxRange = 70;
maxRangeProbab = 0.05;
};
class FullAuto: Mode_FullAuto
{
begin1[] = {"\RH_mgswp\sound\xm8",1.77828,1,1100};
soundBegin[] = {"begin1",1};
soundContinuous = 0;
reloadTime = 0.08;
recoil = "recoil_auto_primary_3outof10";
recoilProne = "recoil_auto_primary_prone_3outof10";
dispersion = 0.00175;
minRange = 0;
minRangeProbab = 0.3;
midRange = 25;
midRangeProbab = 0.7;
maxRange = 70;
maxRangeProbab = 0.05;
};
};
class XM8_DES_GL_DZ: XM8_GL_DZ {
model = "\RH_mgswp\RH_xm8dgl.p3d";
picture = "\RH_mgswp\inv\xm8dgl.paa";
};
class XM8_GREY_GL_DZ: XM8_GL_DZ {
model = "\Ca\Weapons_PMC\XM8\m8_carbineGL.p3d";
picture = "\ca\Weapons_PMC\Data\ui\w_xm8_xm320_ca.paa";
};
class m8_compact;
class XM8_Compact_DZ: m8_compact {
displayName = $STR_DZ_WPN_XM8_COMPACT_NAME;
reloadMagazineSound[] = {"\RH_mgswp\sound\xm8_reload",0.0316228,1,20};
model = "\RH_mgswp\RH_xm8c.p3d";
picture = "\RH_mgswp\inv\xm8c.paa";
magazines[] =
{
30Rnd_556x45_G36,
100Rnd_556x45_BetaCMag,
30Rnd_556x45_Stanag,
20Rnd_556x45_Stanag,
60Rnd_556x45_Stanag_Taped
};
class Single: Mode_SemiAuto
{
begin1[] = {"\RH_mgswp\sound\xm8",1.77828,1,1100};
soundBegin[] = {"begin1",1};
reloadTime = 0.08;
recoil = "recoil_single_primary_3outof10";
recoilProne = "recoil_single_primary_prone_3outof10";
dispersion = 0.002;
minRange = 2;
minRangeProbab = 0.1;
midRange = 150;
midRangeProbab = 0.7;
maxRange = 300;
maxRangeProbab = 0.05;
};
class Burst: Mode_Burst
{
begin1[] = {"\RH_mgswp\sound\xm8",1.77828,1,1100};
soundBegin[] = {"begin1",1};
soundContinuous = 0;
reloadTime = 0.08;
soundBurst = 0;
ffCount = 3;
recoil = "recoil_auto_primary_3outof10";
recoilProne = "recoil_auto_primary_prone_3outof10";
dispersion = 0.002;
minRange = 1;
minRangeProbab = 0.1;
midRange = 60;
midRangeProbab = 0.7;
maxRange = 100;
maxRangeProbab = 0.05;
};
class FullAuto: Mode_FullAuto
{
begin1[] = {"\RH_mgswp\sound\xm8",1.77828,1,1100};
soundBegin[] = {"begin1",1};
soundContinuous = 0;
reloadTime = 0.08;
recoil = "recoil_auto_primary_3outof10";
recoilProne = "recoil_auto_primary_prone_3outof10";
dispersion = 0.002;
minRange = 0;
minRangeProbab = 0.1;
midRange = 20;
midRangeProbab = 0.7;
maxRange = 60;
maxRangeProbab = 0.05;
};
};
class XM8_DES_Compact_DZ: XM8_Compact_DZ {
model = "\RH_mgswp\RH_xm8dc.p3d";
picture = "\RH_mgswp\inv\xm8dc.paa";
};
class XM8_GREY_Compact_DZ: XM8_Compact_DZ {
model = "\Ca\Weapons_PMC\XM8\m8_compact.p3d";
picture = "\ca\Weapons_PMC\Data\ui\w_xm8_compact_ca.paa";
};
class XM8_GREY_2_Compact_DZ: XM8_Compact_DZ {
model = "\Ca\Weapons_PMC\XM8\m8_compact_pmc.p3d";
picture = "\ca\Weapons_PMC\Data\ui\w_xm8_compact_cco_ca.paa";
class FlashLight
{
color[] = {0.9,0.9,0.7,0.9};
ambient[] = {0.1,0.1,0.1,1.0};
position = "flash dir";
direction = "flash";
angle = 30;
scale[] = {1,1,0.5};
brightness = 0.1;
};
};
class m8_sharpshooter;
class XM8_Sharpsh_DZ: m8_sharpshooter {
displayName = $STR_DZ_WPN_XM8_SHARPSHOOTER_NAME;
reloadMagazineSound[] = {"\RH_mgswp\sound\xm8_reload",0.0316228,1,20};
model = "\RH_mgswp\RH_xm8sh.p3d";
picture = "\RH_mgswp\inv\xm8sh.paa";
magazines[] =
{
30Rnd_556x45_G36,
100Rnd_556x45_BetaCMag,
30Rnd_556x45_Stanag,
20Rnd_556x45_Stanag,
60Rnd_556x45_Stanag_Taped
};
class Single: Mode_SemiAuto
{
begin1[] = {"\RH_mgswp\sound\xm8",1.77828,1,1100};
soundBegin[] = {"begin1",1};
reloadTime = 0.08;
recoil = "recoil_single_primary_3outof10";
recoilProne = "recoil_single_primary_prone_3outof10";
dispersion = 0.0007;
minRange = 2;
minRangeProbab = 0.3;
midRange = 250;
midRangeProbab = 0.7;
maxRange = 400;
maxRangeProbab = 0.05;
};
class Burst: Mode_Burst
{
begin1[] = {"\RH_mgswp\sound\xm8",1.77828,1,1100};
soundBegin[] = {"begin1",1};
soundContinuous = 0;
reloadTime = 0.08;
soundBurst = 0;
ffCount = 3;
recoil = "recoil_auto_primary_3outof10";
recoilProne = "recoil_auto_primary_prone_3outof10";
dispersion = 0.0007;
minRange = 1;
minRangeProbab = 0.2;
midRange = 80;
midRangeProbab = 0.7;
maxRange = 120;
maxRangeProbab = 0.05;
};
class FullAuto: Mode_FullAuto
{
begin1[] = {"\RH_mgswp\sound\xm8",1.77828,1,1100};
soundBegin[] = {"begin1",1};
soundContinuous = 0;
reloadTime = 0.08;
recoil = "recoil_auto_primary_3outof10";
recoilProne = "recoil_auto_primary_prone_3outof10";
dispersion = 0.0007;
minRange = 0;
minRangeProbab = 0.1;
midRange = 25;
midRangeProbab = 0.7;
maxRange = 70;
maxRangeProbab = 0.05;
};
};
class XM8_DES_Sharpsh_DZ: XM8_Sharpsh_DZ {
model = "\RH_mgswp\RH_xm8dsh.p3d";
picture = "\RH_mgswp\inv\xm8dsh.paa";
};
class XM8_GREY_Sharpsh_DZ: XM8_Sharpsh_DZ {
model = "\Ca\Weapons_PMC\XM8\m8_sharpshooter.p3d";
picture = "\ca\Weapons_PMC\Data\ui\w_xm8_sharp_ca.paa";
};
class m8_SAW;
class XM8_SAW_DZ: m8_SAW {
displayName = $STR_DZ_WPN_XM8_SAW_NAME;
reloadMagazineSound[] = {"\RH_mgswp\sound\xm8_reload",0.0316228,1,20};
model = "\RH_mgswp\RH_xm8saw.p3d";
picture = "\RH_mgswp\inv\xm8saw.paa";
magazines[] =
{
100Rnd_556x45_BetaCMag,
30Rnd_556x45_G36,
30Rnd_556x45_Stanag,
20Rnd_556x45_Stanag,
60Rnd_556x45_Stanag_Taped
};
modes[] = {"FullAuto"};
class FullAuto: Mode_FullAuto
{
recoil = "recoil_auto_machinegun_5outof10";
recoilProne = "recoil_auto_machinegun_prone_5outof10";
dispersion = 0.002;
begin1[] = {"\RH_mgswp\sound\xm8",1.77828,1,1100};
soundBegin[] = {"begin1",1};
soundBurst = 0;
minRange = 1;
minRangeProbab = 0.3;
midRange = 5;
midRangeProbab = 0.58;
maxRange = 10;
maxRangeProbab = 0.04;
showToPlayer = 1;
};
};
class XM8_DES_SAW_DZ: XM8_SAW_DZ {
model = "\RH_mgswp\RH_xm8dsaw.p3d";
picture = "\RH_mgswp\inv\xm8dsaw.paa";
};
class XM8_GREY_SAW_DZ: XM8_SAW_DZ {
model = "\Ca\Weapons_PMC\XM8\m8_SAW.p3d";
picture = "\ca\Weapons_PMC\Data\ui\w_xm8_auto_ca.paa";
};
class XM8_SD_DZ: XM8_DZ {
displayName = $STR_DZ_WPN_XM8_CARBINE_SD_NAME;
reloadMagazineSound[] = {"\RH_mgswp\sound\xm8_reload",0.0316228,1,20};
model = "\Ca\Weapons_PMC\XM8\m8_Sup_HOLO.p3d";
picture = "\ca\Weapons_PMC\Data\ui\w_xm8_supHOLO_ca.paa";
handAnim[] = {"OFP2_ManSkeleton","\Ca\weapons_E\SCAR\Data\Anim\SCAR.rtm"};
class OpticsModes
{
class CCO
{
opticsID = 1;
useModelOptics = 0;
opticsPPEffects[] = {};
distanceZoomMin = 100;
distanceZoomMax = 100;
discreteDistance[] = {100};
discreteDistanceInitIndex = 0;
opticsZoomMin = 0.25;
opticsZoomInit = 0.5;
opticsZoomMax = 1.1;
memoryPointCamera = "eye";
visionMode[] = {};
opticsFlare = 0;
opticsDisablePeripherialVision = 0;
cameraDir = "";
};
};
magazines[] =
{
30Rnd_556x45_G36SD,
30Rnd_556x45_StanagSD
};
class FlashLight
{
color[] = {0.9,0.9,0.7,0.9};
ambient[] = {0.1,0.1,0.1,1.0};
position = "flash dir";
direction = "flash";
angle = 30;
scale[] = {1,1,0.5};
brightness = 0.1;
};
class Single: Mode_SemiAuto
{
begin1[] = {"\RH_mgswp\sound\m4sd",1.0,1,110};
soundBegin[] = {"begin1",1};
reloadTime = 0.08;
recoil = "recoil_single_primary_3outof10";
recoilProne = "recoil_single_primary_prone_3outof10";
minRange = 2;
minRangeProbab = 0.1;
midRange = 100;
midRangeProbab = 0.7;
maxRange = 150;
maxRangeProbab = 0.05;
};
class Burst: Mode_Burst
{
begin1[] = {"\RH_mgswp\sound\m4sd",1.0,1,110};
soundBegin[] = {"begin1",1};
soundContinuous = 0;
reloadTime = 0.08;
soundBurst = 0;
ffCount = 3;
recoil = "recoil_auto_primary_3outof10";
recoilProne = "recoil_auto_primary_prone_3outof10";
minRange = 1;
minRangeProbab = 0.1;
midRange = 50;
midRangeProbab = 0.7;
maxRange = 100;
maxRangeProbab = 0.05;
};
class FullAuto: Mode_FullAuto
{
begin1[] = {"\RH_mgswp\sound\m4sd",1.0,1,110};
soundBegin[] = {"begin1",1};
soundContinuous = 0;
reloadTime = 0.08;
recoil = "recoil_auto_primary_3outof10";
recoilProne = "recoil_auto_primary_prone_3outof10";
end1[] = {"ca\sounds_E\weapons_E\SCAR\SCAR_SD_single1",2.5118864,1,50};
end2[] = {"ca\sounds_E\weapons_E\SCAR\SCAR_SD_single2",2.5118864,1,50};
soundEnd[] = {"end1",0.5,"end2",0.5};
minRange = 0;
minRangeProbab = 0.1;
midRange = 20;
midRangeProbab = 0.7;
maxRange = 30;
maxRangeProbab = 0.05;
};
};