I already have that in the cpp, but thanks for your reply ;D
Here is the cpp code -
-----------------------------------------------------
#define WeaponSlotItem 256
#define WeaponSlotBinocular 4096
class CfgPatches
{
class NZPKOBSoldier
{
units[] = {NZPKOBSoldier};
weapons[] = {};
requiredVersion = 1.10;
};
};
class CfgWeapons
{
class default {};
class NZPKOFBinocs : Default
{
scopeWeapon = public;
scopeMagazine = protected;
model="\NZPK_OFBinocs\OFBinocs.p3d";
modelOptics="optika_dalekohled";
weaponType = WeaponSlotBinocular;
magazineType = WeaponSlotItem;
ammo=; // no ammo
displayName = "NZPK Binoculars";
reloadTime=0.0;
sound[]={,0,1};
canLock=LockNo;
optics = true;
forceOptics = true;
primary = false;
opticsZoomMin=0.085;
opticsZoomMax=0.085;
magazines[] = {};
};
};
class CfgVehicles
{
class All{};
class AllVehicles:All{};
class Land:AllVehicles{};
class Man:Land{};
class Soldier:Man{};
class SoldierWB:Soldier{};
class OfficerW : SoldierWB {};
class NZPKOBSoldier: OfficerW
{
picture=igrenadier;
vehicleClass="Men";
displayName="Officer (Binoculars) ";
scope=2;
model="mc vojakwo2.p3d";
nightVision=true;
weapons[]={"M16","Throw","Put","NZPKOFBinocs"};
magazines[]={"M16","M16","M16","M16","HandGrenade", "HandGrenade", "HandGrenade", "HandGrenade",
"SmokeShell", "SmokeShell"};
};
};
-----------------------------------------------------
Maybe i have got something wrong in it :-\ So if anybody has a solution to this it would be grateful