Okay, I'm a bit new to lua code, trying to figure this out myself, anyways, can someone explain whats wrong with this code I am editing, It's two weapons from the M9K pack, and I can equip them both at the same time.
The weapon is a "Dragunov SVD" and a "AK-47" from the M9K pack, this is what I have so far. In simplified terms, is it possible to force them onto secondary weapons so you can't equip them both at the same time. Asking because I have the same problem with a few other ones..
Dragunov SVD
Code:
--[[
? 2013 CloudSixteen.com do not share, re-distribute or modify
without permission of its author ([email protected]).
--]]
local ITEM = Clockwork.item:New("weapon_base");
ITEM.name = "Dragunov SVD";
ITEM.cost = 2100;
ITEM.model = "models/weapons/w_svd_dragunov.mdl";
ITEM.weight = 2.6;
ITEM.access = "F";
ITEM.business = true;
ITEM.uniqueID = "m9k_dragunov";
ITEM.description = "A sniper rifle manafactured in Russia which consists of metal and wood.";
ITEM.isAttachment = true;
ITEM.hasFlashlight = true;
ITEM.loweredOrigin = Vector(3, 0, -4);
ITEM.loweredAngles = Angle(0, 45, 0);
ITEM.attachmentBone = "ValveBiped.Bip01_Spine";
ITEM.attachmentOffsetAngles = Angle(0, 0, 0);
ITEM.attachmentOffsetVector = Vector(-2, 5, 4);
ITEM:Register();
AK-47
Code:
--[[
? 2013 CloudSixteen.com do not share, re-distribute or modify
without permission of its author ([email protected]).
--]]
local ITEM = Clockwork.item:New("weapon_base");
ITEM.name = "AK-47";
ITEM.cost = 1600;
ITEM.model = "models/weapons/w_ak47_m9k.mdl";
ITEM.weight = 2;
ITEM.access = "F";
ITEM.classes = {CLASS_EMP, CLASS_EOW};
ITEM.business = true;
ITEM.uniqueID = "m9k_ak47";
ITEM.description = "An assault rifle with a wooden barrel.";
ITEM.isAttachment = true;
ITEM.hasFlashlight = true;
ITEM.loweredOrigin = Vector(3, 0, -4);
ITEM.loweredAngles = Angle(0, 45, 0);
ITEM.attachmentBone = "ValveBiped.Bip01_Spine";
ITEM.attachmentOffsetAngles = Angle(0, 0, 0);
ITEM.attachmentOffsetVector = Vector(-2, 5, 4);
ITEM:Register();