Files
DayZ-Epoch/SQF/dayz_code/Configs/CfgWeapons/Rifles/M240.hpp
ebaydayz 61f38fc259 Use number instead of string for weapon slot type in configs
This is consistent with the rest of the weapon configs.

It also avoids issues with using isNumber or getNumber to check slot
type in scripts.
2016-09-18 14:58:35 -04:00

55 lines
1.2 KiB
C++

class M240_DZ : M240
{
picture = "\z\addons\dayz_communityweapons\m240\data\w_m240_ca.paa";
displayName = $STR_DZ_WPN_M240_NAME;
type = WeaponSlotPrimary;
magazines[] = {100Rnd_762x51_M240};
class Attachments
{
Attachment_CCO = M240_CCO_DZ;
Attachment_Holo = M240_Holo_DZ;
};
};
class M240_CCO_DZ : M240_DZ
{
model = "z\addons\dayz_communityweapons\m240\m240_cco.p3d";
picture = "\z\addons\dayz_communityweapons\m240\data\w_m240_cco_ca.paa";
displayName = $STR_DZ_WPN_M240_CCO_NAME;
class Attachments {};
class ItemActions
{
class RemoveCCO
{
text = $STR_DZ_ATT_CCO_RMVE;
script = "; ['Attachment_CCO',_id,'M240_DZ'] call player_removeAttachment";
};
};
};
class M240_Holo_DZ : M240_CCO_DZ
{
model = "z\addons\dayz_communityweapons\m240\m240_holo.p3d";
picture = "\z\addons\dayz_communityweapons\m240\data\w_m240_holo_ca.paa";
displayName = $STR_DZ_WPN_M240_HOLO_NAME;
class Attachments {};
class ItemActions
{
class RemoveHolo
{
text = $STR_DZ_ATT_HOLO_RMVE;
script = "; ['Attachment_Holo',_id,'M240_DZ'] call player_removeAttachment";
};
};
};
class m240_scoped_EP1_DZE:m240_scoped_EP1 { //has m145 scope
type = WeaponSlotPrimary;
};