mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
This got discussed earlier. Since epoch got merged with DayZ Mod we have a different name for the scope and type of configs. A proper config should use numbers for those entries. This is the same how arma configs are written. The basicDefines.hpp has all the needed information stored. Also, this removes the weight entries from the magazines since we have them in a separate folder, so admins can edit them.
79 lines
1.8 KiB
C++
79 lines
1.8 KiB
C++
class L110A1_CCO_DZ : BAF_L110A1_Aim
|
|
{
|
|
model = "z\addons\dayz_communityweapons\l110a1\l110a1_cco.p3d";
|
|
picture = "\z\addons\dayz_communityweapons\l110a1\data\w_l110a1_cco_ca.paa";
|
|
displayName = $STR_DZ_WPN_L110A1_CCO_NAME;
|
|
irDistance = 0;
|
|
type = 1;
|
|
magazines[] =
|
|
{
|
|
200Rnd_556x45_L110A1,
|
|
200Rnd_556x45_M249,
|
|
100Rnd_556x45_M249,
|
|
30Rnd_556x45_G36,
|
|
100Rnd_556x45_BetaCMag,
|
|
30Rnd_556x45_Stanag,
|
|
20Rnd_556x45_Stanag,
|
|
60Rnd_556x45_Stanag_Taped
|
|
};
|
|
class ItemActions
|
|
{
|
|
class RemoveCCO
|
|
{
|
|
text = $STR_DZ_ATT_CCO_RMVE;
|
|
script = "; ['Attachment_CCO',_id,'L110A1_DZ'] call player_removeAttachment";
|
|
};
|
|
};
|
|
};
|
|
|
|
class L110A1_Holo_DZ : L110A1_CCO_DZ
|
|
{
|
|
model = "z\addons\dayz_communityweapons\l110a1\l110a1_holo.p3d";
|
|
picture = "\z\addons\dayz_communityweapons\l110a1\data\w_l110a1_holo_ca.paa";
|
|
displayName = $STR_DZ_WPN_L110A1_HOLO_NAME;
|
|
|
|
class ItemActions
|
|
{
|
|
class RemoveHolo
|
|
{
|
|
text = $STR_DZ_ATT_HOLO_RMVE;
|
|
script = "; ['Attachment_Holo',_id,'L110A1_DZ'] call player_removeAttachment";
|
|
};
|
|
};
|
|
};
|
|
|
|
class L110A1_DZ : L110A1_CCO_DZ
|
|
{
|
|
model = "z\addons\dayz_communityweapons\l110a1\l110a1.p3d";
|
|
picture = "\z\addons\dayz_communityweapons\l110a1\data\w_l110a1_ca.paa";
|
|
displayName = $STR_DZ_WPN_L110A1_NAME;
|
|
|
|
//iron sight zeroing
|
|
weaponInfoType = "RscWeaponZeroing";
|
|
discreteDistance[] = {300,400,500,600,700,800,900,1000};
|
|
discreteDistanceInitIndex = 0;
|
|
//iron sight zeroing end
|
|
|
|
class Attachments
|
|
{
|
|
Attachment_CCO = L110A1_CCO_DZ;
|
|
Attachment_Holo = L110A1_Holo_DZ;
|
|
};
|
|
|
|
class ItemActions {};
|
|
};
|
|
|
|
class BAF_L110A1_Aim_DZE: BAF_L110A1_Aim { //Slightly different scope from L110A1_CCO_DZ, otherwise identical
|
|
type = 1;
|
|
magazines[] =
|
|
{
|
|
200Rnd_556x45_L110A1,
|
|
200Rnd_556x45_M249,
|
|
100Rnd_556x45_M249,
|
|
30Rnd_556x45_G36,
|
|
100Rnd_556x45_BetaCMag,
|
|
30Rnd_556x45_Stanag,
|
|
20Rnd_556x45_Stanag,
|
|
60Rnd_556x45_Stanag_Taped
|
|
};
|
|
}; |