diff --git a/SQF/dayz_code/Configs/CfgLoot/Groups/Weapons.hpp b/SQF/dayz_code/Configs/CfgLoot/Groups/Weapons.hpp index aa249ee5b..182c7967d 100644 --- a/SQF/dayz_code/Configs/CfgLoot/Groups/Weapons.hpp +++ b/SQF/dayz_code/Configs/CfgLoot/Groups/Weapons.hpp @@ -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}, diff --git a/SQF/dayz_code/Configs/CfgServerTrader/Category/Weapons.hpp b/SQF/dayz_code/Configs/CfgServerTrader/Category/Weapons.hpp index 38605d619..586f450e6 100644 --- a/SQF/dayz_code/Configs/CfgServerTrader/Category/Weapons.hpp +++ b/SQF/dayz_code/Configs/CfgServerTrader/Category/Weapons.hpp @@ -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"};}; diff --git a/SQF/dayz_code/Configs/CfgWeapons/CfgWeapons.hpp b/SQF/dayz_code/Configs/CfgWeapons/CfgWeapons.hpp index b0ad5fde6..37cfa4e9d 100644 --- a/SQF/dayz_code/Configs/CfgWeapons/CfgWeapons.hpp +++ b/SQF/dayz_code/Configs/CfgWeapons/CfgWeapons.hpp @@ -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" diff --git a/SQF/dayz_code/Configs/CfgWeapons/Rifles/CTAR21.hpp b/SQF/dayz_code/Configs/CfgWeapons/Rifles/CTAR21.hpp new file mode 100644 index 000000000..61b738eaf --- /dev/null +++ b/SQF/dayz_code/Configs/CfgWeapons/Rifles/CTAR21.hpp @@ -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"; + }; + }; +}; \ No newline at end of file diff --git a/SQF/dayz_code/stringtable.xml b/SQF/dayz_code/stringtable.xml index 5b81906fb..df76bdd4e 100644 --- a/SQF/dayz_code/stringtable.xml +++ b/SQF/dayz_code/stringtable.xml @@ -12639,6 +12639,17 @@ HK417 Sniper SD HK417 Sniper ПБС + + + + CTAR-21 + + + CTAR-21 CCO + + + CTAR-21 ACOG +