Files
DayZ-Epoch/SQF/dayz_code/Configs/CfgWeapons/Rifles/Mk48.hpp
A Man d9b9874532 Change scope and type of configs from name to numbers
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.
2020-05-29 02:04:06 +02:00

71 lines
1.7 KiB
C++

class Mk48_CCO_DZ : Mk_48
{
model = "z\addons\dayz_communityweapons\mk48\mk48_cco.p3d";
picture = "\z\addons\dayz_communityweapons\mk48\data\w_mk48_cco_camo_ca.paa";
displayName = $STR_DZ_WPN_MK48_CCO_NAME;
type = 1;
magazines[] = {100Rnd_762x51_M240};
distanceZoomMin = 300;
distanceZoomMax = 300;
class ItemActions
{
class RemoveCCO
{
text = $STR_DZ_ATT_CCO_RMVE;
script = "; ['Attachment_CCO',_id,'Mk48_DZ'] call player_removeAttachment";
};
};
};
class Mk48_DZ : Mk48_CCO_DZ
{
model = "z\addons\dayz_communityweapons\mk48\mk48.p3d";
picture = "\z\addons\dayz_communityweapons\mk48\data\w_mk48_camo_ca.paa";
displayName = $STR_DZ_WPN_MK48_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 = "Mk48_CCO_DZ";
Attachment_Holo = "Mk48_Holo_DZ";
};
class ItemActions {};
};
class Mk48_Holo_DZ : Mk48_CCO_DZ
{
model = "z\addons\dayz_communityweapons\mk48\mk48_holo.p3d";
picture = "\z\addons\dayz_communityweapons\mk48\data\w_mk48_holo_camo_ca.paa";
displayName = $STR_DZ_WPN_MK48_HOLO_NAME;
class ItemActions
{
class RemoveHolo
{
text = $STR_DZ_ATT_HOLO_RMVE;
script = "; ['Attachment_Holo',_id,'Mk48_DZ'] call player_removeAttachment";
};
};
};
class Mk_48_DES_EP1;
class Mk48_DES_CCO_DZ: Mk_48_DES_EP1 {
displayName = $STR_DZ_WPN_MK48_CCO_NAME;
type = 1;
weaponInfoType = "RscWeaponZeroing";
discreteDistance[] = {300,400,500,600,700,800,900,1000};
discreteDistanceInitIndex = 0;
irDistance = 150;
irLaserPos = "laser pos";
irLaserEnd = "laser dir";
};