mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-18 09:32:02 +03:00
CFG WEAPONS DONE
This commit is contained in:
41
SQF/dayz_code/Configs/CfgMagazines/Magazines/45ACP.hpp
Normal file
41
SQF/dayz_code/Configs/CfgMagazines/Magazines/45ACP.hpp
Normal file
@@ -0,0 +1,41 @@
|
||||
class 7Rnd_45ACP_1911: CA_Magazine
|
||||
{
|
||||
model = "\dayz_equip\models\ammo_1911.p3d";
|
||||
//picture = "\dayz_equip\textures\equip_1911_ca.paa";
|
||||
|
||||
cartridgeName = "45ACP";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
COMBINE_MAG
|
||||
|
||||
class ReloadMag
|
||||
{
|
||||
text = "Combine for Revolver"; //TODO: move to stringtable
|
||||
script = "spawn player_reloadMag;";
|
||||
use[] = {"7Rnd_45ACP_1911"};
|
||||
output[] = {"6Rnd_45ACP"};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class 6Rnd_45ACP: CA_Magazine
|
||||
{
|
||||
model = "\dayz_equip\models\ammo_acp45.p3d";
|
||||
//picture = "\dayz_equip\textures\equip_45acp_ca.paa";
|
||||
|
||||
cartridgeName = "45ACP";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
COMBINE_MAG
|
||||
|
||||
class ReloadMag
|
||||
{
|
||||
text = "Combine for M1911"; //TODO: move to stringtable
|
||||
script = "spawn player_reloadMag;";
|
||||
use[] = {"6Rnd_45ACP"};
|
||||
output[] = {"7Rnd_45ACP_1911"};
|
||||
};
|
||||
};
|
||||
};
|
||||
42
SQF/dayz_code/Configs/CfgMagazines/Magazines/545x39.hpp
Normal file
42
SQF/dayz_code/Configs/CfgMagazines/Magazines/545x39.hpp
Normal file
@@ -0,0 +1,42 @@
|
||||
class 30Rnd_545x39_AK : CA_Magazine
|
||||
{
|
||||
picture = "\z\addons\dayz_communityweapons\magazines\data\m_ak74_ca.paa";
|
||||
|
||||
cartridgeName = "545x39";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
COMBINE_MAG
|
||||
};
|
||||
};
|
||||
|
||||
class 30Rnd_545x39_AKSD : 30Rnd_545x39_AK
|
||||
{
|
||||
picture = "\z\addons\dayz_communityweapons\magazines\data\m_ak74sd_ca.paa";
|
||||
|
||||
cartridgeName = "545x39_SD";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
COMBINE_MAG
|
||||
};
|
||||
};
|
||||
|
||||
class 75Rnd_545x39_RPK : CA_Magazine
|
||||
{
|
||||
model = "\ca\weapons\mag_univ.p3d";
|
||||
picture = "\CA\weapons\AK\data\equip\M_RPK_74_CA.paa";
|
||||
displayName = $STR_DZ_MAG_75RND_545X39_RPK_NAME;
|
||||
descriptionShort = $STR_DSS_75Rnd_RPK;
|
||||
|
||||
count = 75;
|
||||
tracersEvery = 4;
|
||||
lastRoundsTracer = 4;
|
||||
|
||||
cartridgeName = "545x39";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
COMBINE_MAG
|
||||
};
|
||||
};
|
||||
122
SQF/dayz_code/Configs/CfgMagazines/Magazines/556x45.hpp
Normal file
122
SQF/dayz_code/Configs/CfgMagazines/Magazines/556x45.hpp
Normal file
@@ -0,0 +1,122 @@
|
||||
class 200Rnd_556x45_M249: CA_Magazine
|
||||
{
|
||||
cartridgeName = "556x45";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
COMBINE_MAG
|
||||
};
|
||||
};
|
||||
|
||||
class 100Rnd_556x45_M249 : 200Rnd_556x45_M249
|
||||
{
|
||||
model = "z\addons\dayz_communityweapons\magazines\100rnd_m249.p3d";
|
||||
displayName = $STR_DZ_MAG_100RND_556X45_M249_NAME;
|
||||
};
|
||||
|
||||
|
||||
|
||||
/* STANAG <-> G36 */
|
||||
|
||||
class 20Rnd_556x45_Stanag;
|
||||
class 30Rnd_556x45_Stanag : 20Rnd_556x45_Stanag
|
||||
{
|
||||
//model = "\dayz_equip\models\mag30.p3d";
|
||||
|
||||
cartridgeName = "556x45";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
COMBINE_MAG
|
||||
|
||||
class ReloadMag
|
||||
{
|
||||
text=$STR_MAG_CONV_STANAG_G36;
|
||||
script="spawn player_reloadMag;";
|
||||
use[] =
|
||||
{
|
||||
"30Rnd_556x45_Stanag"
|
||||
};
|
||||
output[] =
|
||||
{
|
||||
"30Rnd_556x45_G36"
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class 30Rnd_556x45_G36 : 30Rnd_556x45_Stanag
|
||||
{
|
||||
cartridgeName = "556x45";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
COMBINE_MAG
|
||||
|
||||
class ReloadMag
|
||||
{
|
||||
text=$STR_MAG_CONV_G36_STANAG;
|
||||
script="spawn player_reloadMag;";
|
||||
use[] =
|
||||
{
|
||||
"30Rnd_556x45_G36"
|
||||
};
|
||||
output[] =
|
||||
{
|
||||
"30Rnd_556x45_Stanag"
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class 30Rnd_556x45_StanagSD : 30Rnd_556x45_Stanag
|
||||
{
|
||||
picture = "\z\addons\dayz_communityweapons\magazines\data\m_30stanagsd_ca.paa";
|
||||
|
||||
cartridgeName = "556x45_SD";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
COMBINE_MAG
|
||||
|
||||
class ReloadMag
|
||||
{
|
||||
text = $STR_MAG_CONV_STANAG_G36;
|
||||
script = "spawn player_reloadMag;";
|
||||
use[] =
|
||||
{
|
||||
"30Rnd_556x45_StanagSD"
|
||||
};
|
||||
output[] =
|
||||
{
|
||||
"30Rnd_556x45_G36SD"
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class 30Rnd_556x45_G36SD : 30Rnd_556x45_G36
|
||||
{
|
||||
picture = "\z\addons\dayz_communityweapons\magazines\data\m_g36sd_ca.paa";
|
||||
|
||||
cartridgeName = "556x45_SD";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
COMBINE_MAG
|
||||
|
||||
class ReloadMag
|
||||
{
|
||||
text = $STR_MAG_CONV_G36_STANAG;
|
||||
script = "spawn player_reloadMag;";
|
||||
use[] =
|
||||
{
|
||||
"30Rnd_556x45_G36SD"
|
||||
};
|
||||
output[] =
|
||||
{
|
||||
"30Rnd_556x45_StanagSD"
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
60
SQF/dayz_code/Configs/CfgMagazines/Magazines/762x39.hpp
Normal file
60
SQF/dayz_code/Configs/CfgMagazines/Magazines/762x39.hpp
Normal file
@@ -0,0 +1,60 @@
|
||||
/* AK47 <-> SA58 */
|
||||
|
||||
class 30Rnd_762x39_AK47 : CA_Magazine
|
||||
{
|
||||
model = "z\addons\dayz_communityweapons\magazines\ak47.p3d";
|
||||
picture = "\z\addons\dayz_communityweapons\magazines\data\m_ak47_ca.paa";
|
||||
displayName = $STR_DZ_MAG_30RND_762X39_AK47;
|
||||
|
||||
cartridgeName = "762x39";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
COMBINE_MAG
|
||||
|
||||
class ReloadMag
|
||||
{
|
||||
text = $STR_MAG_CONV_AK47_SA58;
|
||||
script = "spawn player_reloadMag;";
|
||||
use[] = {30Rnd_762x39_AK47};
|
||||
output[] = {30Rnd_762x39_SA58};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class 75Rnd_762x39_RPK : 30Rnd_762x39_AK47
|
||||
{
|
||||
model = "ca\weapons\mag_univ.p3d";
|
||||
picture = "\z\addons\dayz_communityweapons\magazines\data\m_rpk_ca.paa";
|
||||
displayName = $STR_DZ_MAG_75RND_762X39_RPK_NAME;
|
||||
descriptionShort = $STR_DZ_MAG_75RND_762X39_RPK_DESC;
|
||||
|
||||
count = 75;
|
||||
tracersEvery = 4;
|
||||
lastRoundsTracer = 4;
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
COMBINE_MAG
|
||||
};
|
||||
};
|
||||
|
||||
class 30Rnd_762x39_SA58 : CA_Magazine
|
||||
{
|
||||
model = "z\addons\dayz_communityweapons\magazines\vz58.p3d";
|
||||
|
||||
cartridgeName = "762x39";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
COMBINE_MAG
|
||||
|
||||
class ReloadMag
|
||||
{
|
||||
text = $STR_MAG_CONV_SA58_AK47;
|
||||
script = "spawn player_reloadMag;";
|
||||
use[] = {30Rnd_762x39_SA58};
|
||||
output[] = {30Rnd_762x39_AK47};
|
||||
};
|
||||
};
|
||||
};
|
||||
59
SQF/dayz_code/Configs/CfgMagazines/Magazines/762x51.hpp
Normal file
59
SQF/dayz_code/Configs/CfgMagazines/Magazines/762x51.hpp
Normal file
@@ -0,0 +1,59 @@
|
||||
class 20Rnd_762x51_FNFAL : CA_Magazine
|
||||
{
|
||||
cartridgeName = "762x51";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
COMBINE_MAG
|
||||
};
|
||||
};
|
||||
|
||||
class 20Rnd_762x51_DMR : CA_Magazine
|
||||
{
|
||||
model = "\dayz_equip\models\mag20.p3d";
|
||||
|
||||
cartridgeName = "762x51";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
COMBINE_MAG
|
||||
|
||||
class ReloadMag
|
||||
{
|
||||
text = "Split into 4 x M24";
|
||||
script = "spawn player_reloadMag;";
|
||||
use[] = {"20Rnd_762x51_DMR"};
|
||||
output[] = {"5Rnd_762x51_M24", "5Rnd_762x51_M24", "5Rnd_762x51_M24", "5Rnd_762x51_M24"};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class 5Rnd_762x51_M24 : CA_Magazine
|
||||
{
|
||||
model = "\dayz_equip\models\mag5rnd.p3d";
|
||||
|
||||
cartridgeName = "762x51";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
COMBINE_MAG
|
||||
|
||||
class ReloadMag
|
||||
{
|
||||
text = "Combine for DMR";
|
||||
script = "spawn player_reloadMag;";
|
||||
use[] = {"5Rnd_762x51_M24", "5Rnd_762x51_M24", "5Rnd_762x51_M24", "5Rnd_762x51_M24"};
|
||||
output[] = {"20Rnd_762x51_DMR"};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class 100Rnd_762x51_M240: CA_Magazine
|
||||
{
|
||||
cartridgeName = "762x51";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
COMBINE_MAG
|
||||
};
|
||||
};
|
||||
47
SQF/dayz_code/Configs/CfgMagazines/Magazines/762x54r.hpp
Normal file
47
SQF/dayz_code/Configs/CfgMagazines/Magazines/762x54r.hpp
Normal file
@@ -0,0 +1,47 @@
|
||||
class 100Rnd_762x54_PK : CA_Magazine
|
||||
{
|
||||
model = "z\addons\dayz_communityweapons\magazines\pk.p3d";
|
||||
|
||||
cartridgeName = "762x54";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
COMBINE_MAG
|
||||
};
|
||||
};
|
||||
|
||||
class 50Rnd_762x54_UK59 : 100Rnd_762x54_PK
|
||||
{
|
||||
count = 50;
|
||||
|
||||
model = "z\addons\dayz_communityweapons\magazines\uk59.p3d";
|
||||
picture = "\z\addons\dayz_communityweapons\magazines\data\m_uk59_ca.paa";
|
||||
displayName = $STR_DZ_MAG_50RND_762X54_UK59_NAME;
|
||||
descriptionShort = $STR_DZ_MAG_50RND_762X54_UK59_DESC;
|
||||
};
|
||||
|
||||
class 10Rnd_762x54_SVD : CA_Magazine
|
||||
{
|
||||
cartridgeName = "762x54";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
COMBINE_MAG
|
||||
};
|
||||
};
|
||||
|
||||
class 5Rnd_762x54_Mosin : 10Rnd_762x54_SVD
|
||||
{
|
||||
count = 5;
|
||||
model = "\dayz_equip\models\mag5rnd.p3d";
|
||||
picture = "\z\addons\dayz_communityweapons\models\mosin_nagant\images\ammo.paa";
|
||||
displayName = $STR_DZ_MAG_5RND_762X54_MOSIN_NAME;
|
||||
descriptionShort = $STR_DZ_MAG_5RND_762X54_MOSIN_DESC;
|
||||
|
||||
cartridgeName = "762x54";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
COMBINE_MAG
|
||||
};
|
||||
};
|
||||
17
SQF/dayz_code/Configs/CfgMagazines/Magazines/9x18.hpp
Normal file
17
SQF/dayz_code/Configs/CfgMagazines/Magazines/9x18.hpp
Normal file
@@ -0,0 +1,17 @@
|
||||
class 8Rnd_9x18_Makarov : CA_Magazine
|
||||
{
|
||||
class ItemActions
|
||||
{
|
||||
COMBINE_MAG
|
||||
};
|
||||
};
|
||||
|
||||
class 8Rnd_9x18_MakarovSD : 8Rnd_9x18_Makarov
|
||||
{
|
||||
picture = "\z\addons\dayz_communityweapons\magazines\data\m_makarovsd_ca.paa";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
COMBINE_MAG
|
||||
};
|
||||
};
|
||||
183
SQF/dayz_code/Configs/CfgMagazines/Magazines/9x19.hpp
Normal file
183
SQF/dayz_code/Configs/CfgMagazines/Magazines/9x19.hpp
Normal file
@@ -0,0 +1,183 @@
|
||||
/* MP5 <-> PDW*/
|
||||
|
||||
class 30Rnd_9x19_UZI : CA_Magazine
|
||||
{
|
||||
cartridgeName = "9x19";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
COMBINE_MAG
|
||||
};
|
||||
};
|
||||
|
||||
class 30Rnd_9x19_MP5 : CA_Magazine
|
||||
{
|
||||
cartridgeName = "9x19";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
COMBINE_MAG
|
||||
};
|
||||
};
|
||||
|
||||
class 30Rnd_9x19_UZI_SD : CA_Magazine
|
||||
{
|
||||
cartridgeName = "9x19_SD";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
COMBINE_MAG
|
||||
};
|
||||
};
|
||||
|
||||
class 30Rnd_9x19_MP5SD : CA_Magazine
|
||||
{
|
||||
model = "\ca\CommunityConfigurationProject_E\Gameplay_ActualModelsOfWeaponMagazinesVisibleOnTheGround\p3d\30Rnd_9x19_MP5.p3d";
|
||||
picture = "\z\addons\dayz_communityweapons\magazines\data\m_mp5sd_ca.paa";
|
||||
|
||||
cartridgeName = "9x19_SD";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
COMBINE_MAG
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
/* M9 <-> G17 */
|
||||
|
||||
class 15Rnd_9x19_M9 : CA_Magazine
|
||||
{
|
||||
cartridgeName = "9x19";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
COMBINE_MAG
|
||||
|
||||
class ReloadMag
|
||||
{
|
||||
text=$STR_MAG_CONV_M9_G17;
|
||||
script="spawn player_reloadMag;";
|
||||
use[]=
|
||||
{
|
||||
"15Rnd_9x19_M9"
|
||||
};
|
||||
output[]=
|
||||
{
|
||||
"17Rnd_9x19_glock17"
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class 17Rnd_9x19_glock17 : CA_Magazine
|
||||
{
|
||||
model = "z\addons\dayz_communityweapons\magazines\g17.p3d";
|
||||
picture = "\z\addons\dayz_communityweapons\magazines\data\m_glock17_ca.paa";
|
||||
|
||||
cartridgeName = "9x19";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
COMBINE_MAG
|
||||
|
||||
class ReloadMag
|
||||
{
|
||||
text=$STR_MAG_CONV_G17_M9;
|
||||
script="spawn player_reloadMag;";
|
||||
use[]=
|
||||
{
|
||||
"17Rnd_9x19_glock17"
|
||||
};
|
||||
output[]=
|
||||
{
|
||||
"15Rnd_9x19_M9"
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class 15Rnd_9x19_M9SD : 15Rnd_9x19_M9
|
||||
{
|
||||
cartridgeName = "9x19_SD";
|
||||
|
||||
picture = "\z\addons\dayz_communityweapons\magazines\data\m_m9sd_ca.paa";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
COMBINE_MAG
|
||||
|
||||
class ReloadMag
|
||||
{
|
||||
text=$STR_MAG_CONV_M9_G17;
|
||||
script="spawn player_reloadMag;";
|
||||
use[] =
|
||||
{
|
||||
"15Rnd_9x19_M9SD"
|
||||
};
|
||||
output[] =
|
||||
{
|
||||
"17Rnd_9x19_glock17SD"
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class 17Rnd_9x19_glock17SD : 15Rnd_9x19_M9SD
|
||||
{
|
||||
picture = "\z\addons\dayz_communityweapons\magazines\data\m_glock17sd_ca.paa";
|
||||
|
||||
displayName = $STR_DZ_MAG_17RND_9X19_GLOCK17SD;
|
||||
|
||||
count = 17;
|
||||
|
||||
cartridgeName = "9x19_SD";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
COMBINE_MAG
|
||||
|
||||
class ReloadMag
|
||||
{
|
||||
text=$STR_MAG_CONV_G17_M9;
|
||||
script="spawn player_reloadMag;";
|
||||
use[] =
|
||||
{
|
||||
"17Rnd_9x19_glock17SD"
|
||||
};
|
||||
output[] =
|
||||
{
|
||||
"15Rnd_9x19_M9SD"
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
/* Bizon */
|
||||
|
||||
class 64Rnd_9x19_Bizon : CA_Magazine
|
||||
{
|
||||
model = "z\addons\dayz_communityweapons\magazines\bizon.p3d";
|
||||
|
||||
cartridgeName = "9x19";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
COMBINE_MAG
|
||||
};
|
||||
};
|
||||
|
||||
class 64Rnd_9x19_SD_Bizon : CA_Magazine
|
||||
{
|
||||
picture = "\z\addons\dayz_communityweapons\magazines\data\m_bizonsd_ca.paa";
|
||||
|
||||
cartridgeName = "9x19_SD";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
COMBINE_MAG
|
||||
};
|
||||
};
|
||||
79
SQF/dayz_code/Configs/CfgMagazines/Magazines/Arrows.hpp
Normal file
79
SQF/dayz_code/Configs/CfgMagazines/Magazines/Arrows.hpp
Normal file
@@ -0,0 +1,79 @@
|
||||
class 1Rnd_Arrow_Wood : CA_Magazine
|
||||
{
|
||||
scope = public;
|
||||
|
||||
model = "\dayz_weapons\models\bolt_gear";
|
||||
picture = "\z\addons\dayz_communityassets\pictures\equip_warrow_ca.paa";
|
||||
displayName = $STR_ITEMWOODENARROW_CODE_NAME;
|
||||
descriptionShort = $STR_ITEMWOODENARROW_CODE_DESC;
|
||||
|
||||
count = 1;
|
||||
initSpeed = 150;
|
||||
ammo = "WoodenArrow";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
class CreateQuiver
|
||||
{
|
||||
text = $STR_ACTION_CREATEQUIVER;
|
||||
script = "spawn player_createquiver";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class 12Rnd_Quiver_Wood : 1Rnd_Arrow_Wood
|
||||
{
|
||||
type = WeaponSlotItem * 2;
|
||||
|
||||
model = "\z\addons\dayz_communityassets\models\quiver";
|
||||
picture = "\z\addons\dayz_communityassets\pictures\equip_quiver_ca.paa";
|
||||
descriptionShort = $STR_ITEMQUIVER_CODE_DESC;
|
||||
displayName = $STR_ITEMQUIVER_CODE_NAME;
|
||||
|
||||
count = 12;
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
COMBINE_MAG
|
||||
|
||||
class FillQuiver
|
||||
{
|
||||
text = $STR_ACTION_FILLQUIVER;
|
||||
script = "spawn player_fillquiver;";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class 1Rnd_Bolt_Tranquilizer : CA_Magazine
|
||||
{
|
||||
scope = public;
|
||||
type = WeaponSlotItem;
|
||||
count = 1;
|
||||
|
||||
model = "z\addons\community_crossbow\models\ammo.p3d";
|
||||
picture = "\z\addons\community_crossbow\textures\bolt_tranq.paa";
|
||||
displayName = $STR_DZ_MAG_BOLT_TRQ_NAME;
|
||||
descriptionShort = $STR_DZ_MAG_BOLT_TRQ_DESC;
|
||||
|
||||
ammo = "tranquiliser_bolt";
|
||||
};
|
||||
|
||||
class 1Rnd_Bolt_Explosive : CA_Magazine
|
||||
{
|
||||
scope = public;
|
||||
type = WeaponSlotItem;
|
||||
count = 1;
|
||||
|
||||
picture = "\z\addons\community_crossbow\textures\bolt_expl.paa";
|
||||
model = "z\addons\community_crossbow\models\ammo.p3d";
|
||||
displayName = $STR_DZ_MAG_BOLT_EXP_NAME;
|
||||
descriptionShort = $STR_DZ_MAG_BOLT_EXP_DESC;
|
||||
|
||||
ammo = "explosive_bolt";
|
||||
};
|
||||
|
||||
//TODO: Remove legacy
|
||||
class WoodenArrow : 1Rnd_Arrow_Wood {};
|
||||
class Quiver : 12Rnd_Quiver_Wood {};
|
||||
class Tranquiliser_Bolt : 1Rnd_Bolt_Tranquilizer {};
|
||||
class Crossbow_EX_Bolt : 1Rnd_Bolt_Explosive {};
|
||||
21
SQF/dayz_code/Configs/CfgMagazines/Magazines/Magazines.hpp
Normal file
21
SQF/dayz_code/Configs/CfgMagazines/Magazines/Magazines.hpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#include "Melee.hpp"
|
||||
|
||||
#define COMBINE_MAG class CombineMag\
|
||||
{\
|
||||
text = $STR_MAG_COMBINE;\
|
||||
script = "spawn player_combineMag; r_action_count = r_action_count + 1;";\
|
||||
};
|
||||
|
||||
#include "9x18.hpp" //Makarov
|
||||
#include "9x19.hpp" //MP5, PDW, Bizon, M9, G17
|
||||
#include "45ACP.hpp" //Colt M1911, Revolver
|
||||
#include "545x39.hpp" //AK74, RPK74
|
||||
#include "556x45.hpp" //M249, STANAG, G36
|
||||
#include "762x39.hpp" //AK47, SA58
|
||||
#include "762x51.hpp" //M240, FN FAL, DMR, M24
|
||||
#include "762x54r.hpp" //PK, SVD, Mosin
|
||||
#include "Misc.hpp" //CZ550, Lee-Enfield, Winchester 1866
|
||||
#include "Shotgun.hpp"
|
||||
#include "Arrows.hpp"
|
||||
|
||||
#undef COMBINE_MAG
|
||||
77
SQF/dayz_code/Configs/CfgMagazines/Magazines/Melee.hpp
Normal file
77
SQF/dayz_code/Configs/CfgMagazines/Magazines/Melee.hpp
Normal file
@@ -0,0 +1,77 @@
|
||||
class Melee_Swing : CA_Magazine
|
||||
{
|
||||
type = WeaponNoSlot;
|
||||
count = 100000;
|
||||
initSpeed = 100;
|
||||
};
|
||||
|
||||
class Hatchet_Swing : Melee_Swing
|
||||
{
|
||||
scope = public;
|
||||
|
||||
//TODO: test which one is shown and delete the rest
|
||||
displayName = "Hatchet";
|
||||
displayNameMagazine = "Hatchet1";
|
||||
shortNameMagazine = "Hatchet2";
|
||||
ammo = "Hatchet_Swing_Ammo";
|
||||
};
|
||||
|
||||
class Crowbar_Swing : Melee_Swing
|
||||
{
|
||||
scope = public;
|
||||
|
||||
displayName = "Crowbar";
|
||||
displayNameMagazine = "Crowbar";
|
||||
shortNameMagazine = "Crowbar";
|
||||
ammo = "Crowbar_Swing_Ammo";
|
||||
};
|
||||
|
||||
class Machete_Swing : Melee_Swing
|
||||
{
|
||||
scope = public;
|
||||
|
||||
displayName = "Machete";
|
||||
displayNameMagazine = "Machete";
|
||||
shortNameMagazine = "Machete";
|
||||
ammo = "Machete_Swing_Ammo";
|
||||
};
|
||||
|
||||
class Fishing_Swing : Melee_Swing
|
||||
{
|
||||
scope = public;
|
||||
|
||||
displayName = "Fishing";
|
||||
displayNameMagazine = "Fishing";
|
||||
shortNameMagazine = "Fishing";
|
||||
ammo = "Fishing_Swing_Ammo";
|
||||
};
|
||||
|
||||
class Bat_Swing : Melee_Swing
|
||||
{
|
||||
scope = public;
|
||||
|
||||
displayName = "BaseBallBat";
|
||||
displayNameMagazine = "BaseBallBat";
|
||||
shortNameMagazine = "BaseBallBat";
|
||||
ammo = "Bat_Swing_Ammo";
|
||||
};
|
||||
|
||||
class BatBarbed_Swing : Melee_Swing
|
||||
{
|
||||
scope = public;
|
||||
|
||||
displayName = "BaseBallBatBarbed";
|
||||
displayNameMagazine = "BaseBallBatBarbed";
|
||||
shortNameMagazine = "BaseBallBatBarbed";
|
||||
ammo = "BatBarbed_Swing_Ammo";
|
||||
};
|
||||
|
||||
class BatNails_Swing : Melee_Swing
|
||||
{
|
||||
scope = public;
|
||||
|
||||
displayName = "BaseBallBatNails";
|
||||
displayNameMagazine = "BaseBallBatNails";
|
||||
shortNameMagazine = "BaseBallBatNails";
|
||||
ammo = "BatNailed_Swing_Ammo";
|
||||
};
|
||||
44
SQF/dayz_code/Configs/CfgMagazines/Magazines/Misc.hpp
Normal file
44
SQF/dayz_code/Configs/CfgMagazines/Magazines/Misc.hpp
Normal file
@@ -0,0 +1,44 @@
|
||||
//CZ550
|
||||
class 5x_22_LR_17_HMR;
|
||||
class 5Rnd_17HMR : 5x_22_LR_17_HMR
|
||||
{
|
||||
model = "\dayz_equip\models\mag5rnd.p3d";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
COMBINE_MAG
|
||||
};
|
||||
};
|
||||
|
||||
//Lee-Enfield
|
||||
class 10x_303;
|
||||
class 10Rnd_303British : 10x_303
|
||||
{
|
||||
model = "\dayz_equip\models\mag10rnd.p3d";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
COMBINE_MAG
|
||||
};
|
||||
};
|
||||
|
||||
//Winchester 1866
|
||||
class 15Rnd_W1866_Slug : CA_Magazine
|
||||
{
|
||||
scope = public;
|
||||
|
||||
model = "\z\addons\dayz_communityassets\models\winammo.p3d";
|
||||
picture = "\z\addons\dayz_communityassets\pictures\equip_winammo_ca.paa";
|
||||
displayName = $STR_MAG_NAME_2;
|
||||
descriptionShort = $STR_MAG_DESC_2;
|
||||
|
||||
ammo = B_1866_Slug;
|
||||
count = 15;
|
||||
initSpeed = 396;
|
||||
displayNameShort = "Slug";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
COMBINE_MAG
|
||||
};
|
||||
};
|
||||
123
SQF/dayz_code/Configs/CfgMagazines/Magazines/Shotgun.hpp
Normal file
123
SQF/dayz_code/Configs/CfgMagazines/Magazines/Shotgun.hpp
Normal file
@@ -0,0 +1,123 @@
|
||||
/* Slugs */
|
||||
|
||||
class 8Rnd_B_Beneli_74Slug;
|
||||
class 8Rnd_12Gauge_Slug : 8Rnd_B_Beneli_74Slug
|
||||
{
|
||||
model = "\z\addons\dayz_communityassets\models\greenshotgunslugs.p3d";
|
||||
picture = "\z\addons\dayz_communityassets\pictures\equip_greenshotgunslugs_ca.paa";
|
||||
|
||||
cartridgeName = "12Gauge_Slug";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
COMBINE_MAG
|
||||
|
||||
class ReloadMag
|
||||
{
|
||||
text = "Split into 4 x 2 rounds";
|
||||
script = "spawn player_reloadMag;";
|
||||
use[] = {"8Rnd_12Gauge_Slug"};
|
||||
output[] =
|
||||
{
|
||||
"2Rnd_12Gauge_Slug",
|
||||
"2Rnd_12Gauge_Slug",
|
||||
"2Rnd_12Gauge_Slug",
|
||||
"2Rnd_12Gauge_Slug"
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class 2Rnd_12Gauge_Slug : 8Rnd_12Gauge_Slug
|
||||
{
|
||||
model = "\z\addons\dayz_communityassets\models\2shells_slugshot.p3d";
|
||||
picture = "\z\addons\dayz_communityassets\pictures\equip_2shells_slugshot_CA.paa";
|
||||
displayName = $STR_MAG_NAME_8;
|
||||
descriptionShort = $STR_MAG_DESC_8;
|
||||
|
||||
count = 2;
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
COMBINE_MAG
|
||||
|
||||
class ReloadMag
|
||||
{
|
||||
text = $STR_MAG_COMBINE_1;
|
||||
script = "spawn player_reloadMag;";
|
||||
use[] =
|
||||
{
|
||||
"2Rnd_12Gauge_Slug",
|
||||
"2Rnd_12Gauge_Slug",
|
||||
"2Rnd_12Gauge_Slug",
|
||||
"2Rnd_12Gauge_Slug"
|
||||
};
|
||||
output[] =
|
||||
{
|
||||
"8Rnd_12Gauge_Slug"
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
/* Buckshot */
|
||||
|
||||
class 8Rnd_B_Beneli_Pellets;
|
||||
class 8Rnd_12Gauge_Buck : 8Rnd_B_Beneli_Pellets
|
||||
{
|
||||
model = "\z\addons\dayz_communityassets\models\redshotgunpellets.p3d";
|
||||
picture = "\z\addons\dayz_communityassets\pictures\equip_redshotgunpellets_ca.paa";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
COMBINE_MAG
|
||||
|
||||
class ReloadMag
|
||||
{
|
||||
text = "Split into 4 x 2 rounds";
|
||||
script = "spawn player_reloadMag;";
|
||||
use[] = {"8Rnd_12Gauge_Buck"};
|
||||
output[] =
|
||||
{
|
||||
"2Rnd_12Gauge_Buck",
|
||||
"2Rnd_12Gauge_Buck",
|
||||
"2Rnd_12Gauge_Buck",
|
||||
"2Rnd_12Gauge_Buck"
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class 2Rnd_12Gauge_Buck : 8Rnd_12Gauge_Buck
|
||||
{
|
||||
model = "\z\addons\dayz_communityassets\models\2shells_slugshot.p3d";
|
||||
picture = "\z\addons\dayz_communityassets\pictures\equip_2shells_pellet_ca.paa";
|
||||
displayName = $STR_MAG_NAME_9;
|
||||
descriptionShort = $STR_MAG_DESC_9;
|
||||
|
||||
count = 2;
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
COMBINE_MAG
|
||||
|
||||
class ReloadMag
|
||||
{
|
||||
text = $STR_MAG_COMBINE_1;
|
||||
script = "spawn player_reloadMag;";
|
||||
use[] =
|
||||
{
|
||||
"2Rnd_12Gauge_Buck",
|
||||
"2Rnd_12Gauge_Buck",
|
||||
"2Rnd_12Gauge_Buck",
|
||||
"2Rnd_12Gauge_Buck"
|
||||
};
|
||||
output[] =
|
||||
{
|
||||
"8Rnd_12Gauge_Buck"
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user