Add Magpul PDR

This commit is contained in:
A Man
2020-02-26 12:44:06 +01:00
parent e0e7f248e7
commit 019fe28542
5 changed files with 115 additions and 3 deletions

View File

@@ -81,6 +81,7 @@ weaponsUS[] =
{Loot_WEAPON, 6, M4A1_Camo_CCO_DZ},
{Loot_WEAPON, 6, M4A1_Camo_Holo_GL_DZ},
{Loot_WEAPON, 6, M4A3_DES_CCO_DZ},
{Loot_WEAPON, 6, PDR_DZ},
{Loot_WEAPON, 6, ACR_WDL_DZ},
{Loot_WEAPON, 6, ACR_BL_DZ},

View File

@@ -162,6 +162,9 @@ class Category_16 {
class HK53A3_DZ {type = "trade_weapons";buy[] = {4,"ItemGoldBar"};sell[] = {2,"ItemGoldBar"};};
class HK53A3_CCO_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {4,"ItemGoldBar"};};
class HK53A3_Holo_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {4,"ItemGoldBar"};};
class PDR_DZ {type = "trade_weapons";buy[] = {4,"ItemGoldBar"};sell[] = {2,"ItemGoldBar"};};
class PDR_CCO_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {4,"ItemGoldBar"};};
class PDR_Holo_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {4,"ItemGoldBar"};};
class Famas_DZ {type = "trade_weapons";buy[] = {4,"ItemGoldBar"};sell[] = {2,"ItemGoldBar"};};
class Famas_CCO_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {4,"ItemGoldBar"};};
class Famas_Holo_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {4,"ItemGoldBar"};};

View File

@@ -79,11 +79,11 @@ class CfgWeapons
class M4A1;
class M4A1_AIM_SD_camo;
#include "Rifles\M4A1.hpp"
#include "Rifles\M4A3.hpp"
#include "Rifles\M4A3.hpp"
//HK53
#include "Rifles\HK53.hpp"
//Magpul PDR
#include "Rifles\PDR.hpp"
//Famas
#include "Rifles\Famas.hpp"
#include "Rifles\ACR.hpp"

View File

@@ -0,0 +1,97 @@
class PDR_DZ: M4A1
{
displayName = $STR_DZ_WPN_PDR_NAME;
model = "\RH_smg\RH_pdr.p3d";
picture = "\RH_smg\inv\pdr.paa";
handAnim[] = {"OFP2_ManSkeleton","\RH_smg\Anim\RH_pdr.rtm"};
reloadMagazineSound[] = {"\RH_smg\sound\MP5_Reload.wss",0.056234,1,25};
modes[] = {"Single","FullAuto"};
magazines[] =
{
30Rnd_556x45_Stanag,
30Rnd_556x45_G36,
100Rnd_556x45_BetaCMag,
20Rnd_556x45_Stanag,
60Rnd_556x45_Stanag_tape_ice_DZE
};
class Single: Mode_SemiAuto
{
begin1[] = {"\RH_smg\sound\pdr.wss",1.778279,1,1000};
soundBegin[] = {"begin1",1};
reloadTime = 0.09;
recoil = "recoil_single_primary_3outof10";
recoilProne = "recoil_single_primary_prone_3outof10";
dispersion = 0.0025;
minRange = 2;
minRangeProbab = 0.1;
midRange = 150;
midRangeProbab = 0.7;
maxRange = 400;
maxRangeProbab = 0.05;
};
class FullAuto: Mode_FullAuto
{
begin1[] = {"\RH_smg\sound\pdr.wss",1.778279,1,1000};
soundBegin[] = {"begin1",1};
reloadTime = 0.09;
recoil = "recoil_auto_primary_3outof10";
recoilProne = "recoil_auto_primary_prone_3outof10";
dispersion = 0.004;
minRange = 2;
minRangeProbab = 0.1;
midRange = 30;
midRangeProbab = 0.7;
maxRange = 60;
maxRangeProbab = 0.05;
};
class Attachments
{
Attachment_CCO = "PDR_CCO_DZ";
Attachment_Holo = "PDR_Holo_DZ";
};
};
class PDR_CCO_DZ: PDR_DZ
{
displayName = $STR_DZ_WPN_PDR_CCO_NAME;
model = "\RH_smg\RH_pdraim.p3d";
picture = "\RH_smg\inv\pdraim.paa";
opticsDisablePeripherialVision = 1;
distanceZoomMin = 100;
distanceZoomMax = 100;
class Attachments {};
class ItemActions
{
class RemoveCCO
{
text = $STR_DZ_ATT_CCO_RMVE;
script = "; ['Attachment_CCO',_id,'PDR_DZ'] call player_removeAttachment";
};
};
};
class PDR_Holo_DZ: PDR_DZ
{
displayName = $STR_DZ_WPN_PDR_HOLO_NAME;
model = "\RH_smg\RH_pdreot.p3d";
picture = "\RH_smg\inv\pdreot.paa";
opticsDisablePeripherialVision = 1;
distanceZoomMin = 100;
distanceZoomMax = 100;
class Attachments {};
class ItemActions
{
class RemoveHolo
{
text = $STR_DZ_ATT_HOLO_RMVE;
script = "; ['Attachment_Holo',_id,'PDR_DZ'] call player_removeAttachment";
};
};
};

View File

@@ -12328,6 +12328,17 @@
<English>HK53A3 Holo</English>
</Key>
<!-- Magpul PDR -->
<Key ID="STR_DZ_WPN_PDR_NAME">
<English>Magpul PDR</English>
</Key>
<Key ID="STR_DZ_WPN_PDR_CCO_NAME">
<English>Magpul PDR CCO</English>
</Key>
<Key ID="STR_DZ_WPN_PDR_HOLO_NAME">
<English>Magpul PDR Holo</English>
</Key>
<!-- **** MAGAZINES **** -->
<Key ID="STR_DZ_MAG_17RND_9X19_GLOCK17SD_NAME">