Files
DayZ-Epoch/SQF/dayz_code/Configs/CfgWeapons/Rifles/DMR.hpp
AirwavesMan 6f7a17ca17 Fix DMR and MK12 SPR have always NVG
The visionMode array must be emptied otherwise both weapons have always the NVG mode even when the player has no nomral NVG. Also added a Mk12 SPR version that does not work with the NVG.
2021-04-29 20:59:44 +02:00

60 lines
1.1 KiB
C++

class DMR_DZ : DMR // Works with NVG
{
displayName = $STR_DZ_WPN_DMR_NAME;
//A2OA DMR does not allow NVG after 2018-04-05 CorePatch
visionMode[] = {};
class Attachments
{
Attachment_Ghillie = "DMR_Gh_DZ";
};
};
class DMR_SKN : DMR_DZ {};
class DMR_Gh_DZ : DMR_DZ
{
model = "z\addons\dayz_communityweapons\dmr\dmr_ghillie.p3d";
picture = "\z\addons\dayz_communityweapons\dmr\data\w_dmr_ghillie_ca.paa";
displayName = $STR_DZ_WPN_DMR_GH_NAME;
memoryPointCamera = "opticView";
class Attachments {};
class ItemActions
{
class RemoveGhillie
{
text = $STR_DZ_ATT_GHIL_RMVE;
script = "; ['Attachment_Ghillie',_id,'DMR_DZ'] call player_removeAttachment";
};
};
};
//DMR without NVG support
class DMR_DZE : DMR_DZ
{
visionMode[] = {"Normal"};
class Attachments
{
Attachment_Ghillie = "DMR_Gh_DZE";
};
};
class DMR_Gh_DZE : DMR_Gh_DZ
{
visionMode[] = {"Normal"};
class ItemActions
{
class RemoveGhillie
{
text = $STR_DZ_ATT_GHIL_RMVE;
script = "; ['Attachment_Ghillie',_id,'DMR_DZE'] call player_removeAttachment";
};
};
};