Adding AK-107 to attachment system, loot, trader

This adds 6 AK-107 versions to the dayz attachment system. There is no SD version at the moment.

The RPK-74 magazine could only be used with the AK-74 SD. This was unintentional. All AK-74 versions support the RPK-74 magazine now.

The RPK-74 and the AK-74 magazine description needed a few adjustments.
This commit is contained in:
A Man
2019-10-23 09:25:20 +02:00
parent ba8ff32cd7
commit 82485ea0c6
9 changed files with 278 additions and 6 deletions

View File

@@ -2,6 +2,7 @@
[NEW] Added 93 new zombie models with loot groups and strings for Server Admins @Airwavesman
[NEW] Zombie Loot supports backpacks now @Airwavesman
[NEW] Hide Body can be edited and toggled now. Enabled by default, configVariables.sqf/DZE_Hide_Body @AirwavesMan
[NEW] 6 AK-107 versions added with attachment support. @AirwavesMan
[FIXED] Some more occurrences of zero_building interiors misaligned or at the wrong terrain height (eaaedf2, 048caa5)
[FIXED] Player could switch into gunner's seat of ArmoredSUV while the hatch was being closed (e89eebc) #2009 @TheFirstNoob
@@ -18,6 +19,7 @@
[FIXED] Vehicles jumping into the air after flipping. @AirwavesMan
[FIXED] Crafting wooden arrows from wood piles and razors was not possible. @AirwavesMan
[FIXED] Top snap point for half cinder wall was incorrect. @ndavalos, @AirwavesMan
[FIXED] The RPK-74 magazine could not be used with all AK-74 versions. @AirwavesMan
[UPDATED] Spawning of Zombies and Loot in Safe Zones can now be toggled, disabled by default, see configVariables.sqf/DZE_SafeZoneZombieLoot (6248add, 141b25e) @oiad @_Lance_
[UPDATED] Added notification when status icons are disabled

View File

@@ -74,6 +74,7 @@ assaultrifles[] = {
{Loot_WEAPON, 0.1, AKS_GOLD},
{Loot_WEAPON, 0.5, AKM_DZ}, //AK_47_M
{Loot_WEAPON, 0.5, AK74_DZ}, //AK_74
{Loot_WEAPON, 0.5, AK107_DZ}, //AK_107
{Loot_WEAPON, 0.3, FNFAL_DZ}, //FN_FAL
{Loot_WEAPON, 0.1, FN_FAL_ANPVS4_DZE}, //FNFAL_ANPVS4_DZ is NV only _DZE is toggleable
{Loot_WEAPON, 0.5, G36A_Camo_DZ}, //G36A_camo

View File

@@ -769,6 +769,36 @@ class Category_485 {
buy[] = {-1,"ItemGoldBar"}; // Sell only
sell[] = {1,"ItemGoldBar10oz"};
};
class AK107_DZ {
type = "trade_weapons";
buy[] = {2,"ItemGoldBar"};
sell[] = {1,"ItemGoldBar"};
};
class AK107_Kobra_DZ {
type = "trade_weapons";
buy[] = {-1,"ItemGoldBar"}; // Sell only
sell[] = {3,"ItemGoldBar"};
};
class AK107_PSO1_DZ {
type = "trade_weapons";
buy[] = {-1,"ItemGoldBar"}; // Sell only
sell[] = {5,"ItemGoldBar"};
};
class AK107_GL_DZ {
type = "trade_weapons";
buy[] = {-1,"ItemGoldBar"}; // Sell only
sell[] = {3,"ItemGoldBar"};
};
class AK107_GL_Kobra_DZ {
type = "trade_weapons";
buy[] = {-1,"ItemGoldBar"}; // Sell only
sell[] = {5,"ItemGoldBar"};
};
class AK107_GL_PSO1_DZ {
type = "trade_weapons";
buy[] = {-1,"ItemGoldBar"}; // Sell only
sell[] = {7,"ItemGoldBar"};
};
class FNFAL_DZ {
type = "trade_weapons";
buy[] = {8,"ItemGoldBar"};

View File

@@ -29,6 +29,8 @@ class CfgWeapons
#include "Weapon\Sniper\M4SPR.hpp"
#include "Weapon\Sniper\VSSVintorez.hpp"
//Ak107
#include "Weapon\Assault\AK107.hpp"
//each include is preceded by its required external references.

View File

@@ -5,13 +5,14 @@ class AK74_Kobra_DZ : AK_74
model = "z\addons\dayz_communityweapons\ak74\ak74_kobra.p3d";
picture = "\z\addons\dayz_communityweapons\ak74\data\w_ak74_kobra_ca.paa";
displayName = $STR_DZ_WPN_AK74_KOBRA_NAME;
/* //Allow default A2 mags
magazines[] =
{
30Rnd_545x39_AK,
30Rnd_545x39_AKSD
30Rnd_545x39_AKSD, //Allow both SD and non-SD
75Rnd_545x39_RPK
};
*/
class Attachments
{
Attachment_GP25 = "AK74_GL_Kobra_DZ";

View File

@@ -7,7 +7,8 @@ class AKS74U_Kobra_DZ : AKS_74_U
magazines[] =
{
30Rnd_545x39_AK,
30Rnd_545x39_AKSD
30Rnd_545x39_AKSD, //Allow both SD and non-SD
75Rnd_545x39_RPK
};
class Attachments
@@ -34,7 +35,8 @@ class AKS74U_Kobra_SD_DZ : AKS_74_UN_kobra
magazines[] =
{
30Rnd_545x39_AKSD,
30Rnd_545x39_AK //Allow both SD and non-SD
30Rnd_545x39_AK, //Allow both SD and non-SD
75Rnd_545x39_RPK
};
class ItemActions

View File

@@ -0,0 +1,157 @@
class AK_107_kobra;
class AK107_Kobra_DZ : AK_107_kobra
{
displayName = $STR_DZ_WPN_AK107_KOBRA_NAME;
magazines[] =
{
30Rnd_545x39_AK,
30Rnd_545x39_AKSD, //Allow both SD and non-SD
75Rnd_545x39_RPK
};
class Attachments
{
Attachment_GP25 = "AK107_GL_Kobra_DZ";
};
class ItemActions
{
class RemoveKobra
{
text = $STR_DZ_ATT_KOBRA_RMVE;
script = "; ['Attachment_Kobra',_id,'AK107_DZ'] call player_removeAttachment";
};
};
};
class AK_107_CP;
class AK107_DZ : AK_107_CP
{
displayName = $STR_DZ_WPN_AK107_NAME;
magazines[] =
{
30Rnd_545x39_AK,
30Rnd_545x39_AKSD, //Allow both SD and non-SD
75Rnd_545x39_RPK
};
class Attachments
{
Attachment_Kobra = "AK107_Kobra_DZ";
Attachment_PSO1 = "AK107_PSO_DZ";
Attachment_GP25 = "AK107_GL_DZ";
};
class ItemActions {};
};
class AK_107_GL_CP;
class AK107_GL_DZ : AK_107_GL_CP
{
displayName = $STR_DZ_WPN_AK107_GL_NAME;
magazines[] =
{
30Rnd_545x39_AK,
30Rnd_545x39_AKSD, //Allow both SD and non-SD
75Rnd_545x39_RPK
};
class Attachments
{
Attachment_Kobra = "AK107_GL_Kobra_DZ";
Attachment_PSO1 = "AK107_GL_PSO_DZ";
};
class ItemActions
{
class RemoveGL
{
text = $STR_DZ_ATT_GP25_RMVE;
script = "; ['Attachment_GP25',_id,'AK107_DZ'] call player_removeAttachment";
};
};
};
class AK_107_pso;
class AK107_PSO_DZ : AK_107_pso
{
displayName = $STR_DZ_WPN_AK107_PSO1_NAME;
magazines[] =
{
30Rnd_545x39_AK,
30Rnd_545x39_AKSD, //Allow both SD and non-SD
75Rnd_545x39_RPK
};
class Attachments
{
Attachment_GP25 = "AK107_GL_PSO_DZ";
};
class ItemActions
{
class RemovePSO1
{
text = $STR_DZ_ATT_PSO1_RMVE;
script = "; ['Attachment_PSO1',_id,'AK107_DZ'] call player_removeAttachment";
};
};
};
class AK_107_GL_pso;
class AK107_GL_PSO_DZ : AK_107_GL_pso
{
displayName = $STR_DZ_WPN_AK107_GL_PSO1_NAME;
magazines[] =
{
30Rnd_545x39_AK,
30Rnd_545x39_AKSD, //Allow both SD and non-SD
75Rnd_545x39_RPK
};
class Attachments {};
class ItemActions
{
class RemovePSO1
{
text = $STR_DZ_ATT_PSO1_RMVE;
script = "; ['Attachment_PSO1',_id,'AK107_GL_DZ'] call player_removeAttachment";
};
class RemoveGL
{
text = $STR_DZ_ATT_GP25_RMVE;
script = "; ['Attachment_GP25',_id,'AK107_PSO_DZ'] call player_removeAttachment";
};
};
};
class AK_107_GL_kobra;
class AK107_GL_Kobra_DZ : AK_107_GL_kobra
{
displayName = $STR_DZ_WPN_AK107_GL_KOBRA_NAME;
magazines[] =
{
30Rnd_545x39_AK,
30Rnd_545x39_AKSD, //Allow both SD and non-SD
75Rnd_545x39_RPK
};
class Attachments {};
class ItemActions
{
class RemoveKobra
{
text = $STR_DZ_ATT_KOBRA_RMVE;
script = "; ['Attachment_Kobra',_id,'AK107_GL_DZ'] call player_removeAttachment";
};
class RemoveGL
{
text = $STR_DZ_ATT_GP25_RMVE;
script = "; ['Attachment_GP25',_id,'AK107_Kobra_DZ'] call player_removeAttachment";
};
};
};

View File

@@ -23,6 +23,30 @@ class AK_107_GL_pso
{
weight = 5.5;
};
class AK107_Kobra_DZ
{
weight = 3.8;
};
class AK107_GL_Kobra_DZ
{
weight = 5.3;
};
class AK107_PSO_DZ
{
weight = 4;
};
class AK107_GL_PSO_DZ
{
weight = 5.5;
};
class AK107_DZ
{
weight = 3;
};
class AK107_GL_DZ
{
weight = 4.5;
};
class AKS_74_U
{
weight = 2.7;

View File

@@ -17261,7 +17261,60 @@
<English>Leaf of a tobacco plant</English>
<German>Blatt einer Tabakpflanze</German>
<Russian>Лист табака с табачной плантации</Russian>
</Key>
</Key>
<!--New Epoch 1.0.6.3 weapon, attachment and magazine strings-->
<Key
ID="str_dss_30rnd_ak"> <!--Overwrites the Arma 2 description -->
<German>Kaliber: 5,45x39mm &lt;br/&gt;Schuss: 30 &lt;br/&gt;Eingesetzt in: AK-74, AK-74 Kobra, AKS-74U, AK-107 und RPK-74</German>
<English>Caliber: 5.45x39mm &lt;br/&gt;Rounds: 30 &lt;br/&gt;Used in: AK-74, AK-74 Kobra, AKS-74U, AK-107 and RPK-74</English>
<Italian>Calibro: 5,45x39 mm &lt;br/&gt;Munizioni: 30 &lt;br/&gt;Si usa in: AK-74, AK-74 Kobra, AKS-74U, AK-107 e RPK-74</Italian>
<Spanish>Calibre: 5,45x39 mm &lt;br/&gt;Cargas: 30 &lt;br/&gt;Uso: AK-74, AK-74 Kobra, AKS-74U, AK-107 y RPK-74</Spanish>
<French>Calibre : 5.45x39 mm &lt;br/&gt;Munitions : 30 &lt;br/&gt;Utilisé avec : AK-74, AK-74 Kobra, AKS-74U, AK-107 et RPK-74</French>
<Czech>Kalibr: 5,45x39mm &lt;br/&gt;Nábojů: 30 &lt;br/&gt;Pro: AK-74, AK-74 Kobra, AKS-74U, AK-107 a RPK-74</Czech>
<Russian>Патрон: 5.45x39 мм &lt;br/&gt;Количество: 30 &lt;br/&gt;Используется в: АК-74, АКС-74, АКС-74У, АК-107, РПК-74</Russian>
<Polish>Kaliber: 5,45x39mm &lt;br/&gt;Naboje: 30 &lt;br/&gt;Używane w: AK-74, AK-74 Kobra, AKS-74U, AK-107 i RPK-74</Polish>
<Hungarian>Kaliber: 5.45x39mm &lt;br/&gt; Töltények: 30 &lt;br/&gt; Hozzá tartozó fegyver: AK-74, AK-74 Kobra, AKS-74U, AK-107 and RPK-74</Hungarian>
</Key>
<Key
ID="str_dss_75rnd_rpk"> <!--Overwrites the Arma 2 description -->
<German>Kaliber: 5,45x39mm &lt;br/&gt;Schuss: 75 &lt;br/&gt;Eingesetzt in: AK-74, AK-74 Kobra, AKS-74U, AK-107 und RPK-74</German>
<English>Caliber: 5.45x39mm &lt;br/&gt;Rounds: 75 &lt;br/&gt;Used in: AK-74, AK-74 Kobra, AKS-74U, AK-107 and RPK-74</English>
<Italian>Calibro: 5,45x39 mm &lt;br/&gt;Munizioni: 75 &lt;br/&gt;Si usa in: AK-74, AK-74 Kobra, AKS-74U, AK-107 e RPK-74</Italian>
<Spanish>Calibre: 5,45x39 mm &lt;br/&gt;Cargas: 75 &lt;br/&gt;Uso: AK-74, AK-74 Kobra, AKS-74U, AK-107 y RPK-74</Spanish>
<French>Calibre : 5.45x39 mm &lt;br/&gt;Munitions : 75 &lt;br/&gt;Utilisé avec : AK-74, AK-74 Kobra, AKS-74U, AK-107 et RPK-74</French>
<Czech>Kalibr: 5,45x39mm &lt;br/&gt;Nábojů: 75 &lt;br/&gt;Pro: AK-74, AK-74 Kobra, AKS-74U, AK-107 a RPK-74</Czech>
<Russian>Патрон: 5.45x39 мм &lt;br/&gt;Количество: 75 &lt;br/&gt;Используется в: АК-74, АКС-74, АКС-74У, АК-107, РПК-74</Russian>
<Polish>Kaliber: 5,45x39mm &lt;br/&gt;Naboje: 75 &lt;br/&gt;Używane w: AK-74, AK-74 Kobra, AKS-74U, AK-107 i RPK-74</Polish>
<Hungarian>Kaliber: 5.45x39mm &lt;br/&gt; Töltények: 75 &lt;br/&gt; Hozzá tartozó fegyver: AK-74, AK-74 Kobra, AKS-74U, AK-107 and RPK-74</Hungarian>
</Key>
<!-- AK107 -->
<Key ID="STR_DZ_WPN_AK107_NAME">
<English>AK-107</English>
<Russian>АК-107</Russian>
</Key>
<Key ID="STR_DZ_WPN_AK107_GL_NAME">
<English>AK-107 GP-25</English>
<Russian>АК-107 ГП-25</Russian>
</Key>
<Key ID="STR_DZ_WPN_AK107_KOBRA_NAME">
<English>AK-107 Kobra</English>
<Russian>АК-107 Кобра</Russian>
</Key>
<Key ID="STR_DZ_WPN_AK107_GL_KOBRA_NAME">
<English>AK-107 GP-25 Kobra</English>
<Russian>АК-107 ГП-25 Кобра</Russian>
</Key>
<Key ID="STR_DZ_WPN_AK107_PSO1_NAME">
<English>AK-107 PSO-1</English>
<Russian>АК-107 ПСО-1</Russian>
</Key>
<Key ID="STR_DZ_WPN_AK107_GL_PSO1_NAME">
<English>AK-107 GP-25 PSO-1</English>
<Russian>АК-107 ГП-25 ПСО-1</Russian>
</Key>
<!--Namalsk compatibility-->
<Key ID="STR_EQUIP_NAME_43">
<English>Winter Ghillie Suit</English>