Add CTAR-21

This commit is contained in:
A Man
2020-03-04 17:42:00 +01:00
parent 171fe9eb50
commit eb65843e90
5 changed files with 147 additions and 0 deletions

View File

@@ -77,6 +77,7 @@ weaponsUS[] =
{Loot_WEAPON, 3, Mac10_DZ},
// Assault Rifles
{Loot_WEAPON, 6, CTAR21_DZ},
{Loot_WEAPON, 6, KAC_PDW_DZ},
{Loot_WEAPON, 6, M16A2_DZ},
{Loot_WEAPON, 6, M16A4_ACOG_DZ},

View File

@@ -182,6 +182,9 @@ class Category_16 {
class KAC_PDW_CCO_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {4,"ItemGoldBar"};};
class KAC_PDW_Holo_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {4,"ItemGoldBar"};};
class KAC_PDW_ACOG_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {6,"ItemGoldBar"};};
class CTAR21_DZ {type = "trade_weapons";buy[] = {4,"ItemGoldBar"};sell[] = {2,"ItemGoldBar"};};
class CTAR21_CCO_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {4,"ItemGoldBar"};};
class CTAR21_ACOG_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {6,"ItemGoldBar"};};
class m8_compact {type = "trade_weapons";buy[] = {4,"ItemGoldBar"};sell[] = {2,"ItemGoldBar"};};
class m8_sharpshooter {type = "trade_weapons";buy[] = {8,"ItemGoldBar"};sell[] = {4,"ItemGoldBar"};};
class m8_holo_sd {type = "trade_weapons";buy[] = {8,"ItemGoldBar"};sell[] = {4,"ItemGoldBar"};};

View File

@@ -89,6 +89,8 @@ class CfgWeapons
#include "Rifles\Famas.hpp"
#include "Rifles\ACR.hpp"
#include "Rifles\KACPDW.hpp"
//CTAR-21
#include "Rifles\CTAR21.hpp"
class M14_EP1;
#include "Rifles\M14.hpp"

View File

@@ -0,0 +1,130 @@
class CTAR21_DZ: M4A1
{
scope = public;
displayName = $STR_DZ_WPN_CTAR21_NAME;
model = "\RH_hk416\RH_ctar21.p3d";
picture = "\RH_hk416\inv\ctar21.paa";
handAnim[] = {"OFP2_ManSkeleton","\CA\weapons\Data\Anim\Bizon.rtm"};
reloadMagazineSound[] = {"\RH_hk416\sound\ctar21_Reload.wss",0.056234,1,20};
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\HK53.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\HK53.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 = "CTAR21_CCO_DZ";
Attachment_ACOG = "CTAR21_ACOG_DZ";
};
};
class CTAR21_CCO_DZ: CTAR21_DZ
{
displayName = $STR_DZ_WPN_CTAR21_CCO_NAME;
model = "\RH_hk416\RH_ctar21m.p3d";
picture = "\RH_hk416\inv\ctar21m.paa";
class Attachments {};
class ItemActions
{
class RemoveCCO
{
text = $STR_DZ_ATT_CCO_RMVE;
script = "; ['Attachment_CCO',_id,'CTAR21_DZ'] call player_removeAttachment";
};
};
};
class CTAR21_ACOG_DZ: CTAR21_DZ
{
displayName = $STR_DZ_WPN_CTAR21_ACOG_NAME;
model = "\RH_hk416\RH_star21.p3d";
picture = "\RH_hk416\inv\star21.paa";
modelOptics = "\Ca\weapons_E\SCAR\ACOG_TA31_optic_4x.p3d";
class OpticsModes
{
class ACOG
{
opticsID = 1;
useModelOptics = true;
opticsFlare = true;
opticsDisablePeripherialVision = true;
opticsZoomMin = 0.0623;
opticsZoomMax = 0.0623;
opticsZoomInit = 0.0623;
distanceZoomMin = 300;
distanceZoomMax = 300;
memoryPointCamera = "opticView";
visionMode[] = {"Normal"};
opticsPPEffects[] = {"OpticsCHAbera3","OpticsBlur3"};
cameraDir = "";
};
class Iron
{
opticsID = 2;
useModelOptics = false;
opticsFlare = false;
opticsDisablePeripherialVision = false;
opticsZoomMin = 0.25;
opticsZoomMax = 1.1;
opticsZoomInit = 0.5;
distanceZoomMin = 100;
distanceZoomMax = 100;
memoryPointCamera = "eye";
visionMode[] = {};
opticsPPEffects[] = {};
cameraDir = "";
};
};
class Attachments {};
class ItemActions
{
class RemoveACOG
{
text = $STR_DZ_ATT_ACOG_RMVE;
script = "; ['Attachment_ACOG',_id,'CTAR21_DZ'] call player_removeAttachment";
};
};
};

View File

@@ -12639,6 +12639,17 @@
<English>HK417 Sniper SD</English>
<Russian>HK417 Sniper ПБС</Russian>
</Key>
<!-- CTAR21 -->
<Key ID="STR_DZ_WPN_CTAR21_NAME">
<English>CTAR-21</English>
</Key>
<Key ID="STR_DZ_WPN_CTAR21_CCO_NAME">
<English>CTAR-21 CCO</English>
</Key>
<Key ID="STR_DZ_WPN_CTAR21_ACOG_NAME">
<English>CTAR-21 ACOG</English>
</Key>
<!-- **** MAGAZINES **** -->