OFPEC Forum

Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: GalComT on 29 Oct 2002, 10:58:46

Title: Binocular Config
Post by: GalComT on 29 Oct 2002, 10:58:46
Hi i am making a new binocular model, but i have problems with the config file of it, could anyone out there give me the config for the original binocular, or any other sample for a binocular.

Greatings GalComT
Title: Re:Binocular Config
Post by: CrunchyFrog on 29 Oct 2002, 15:03:00
Sorry Lad

It aint possible to make new binoculars, nor NV goggles
Title: Re:Binocular Config
Post by: GalComT on 31 Oct 2002, 12:31:06
I think it should work, because its a weapon (weapon type 4096) and it haas a proxy (which is defined somewhere in the original config.bin), which means i have to create a weapon that weapon type 4096, i have to make it use the binoocular proxy, and i have to make an optik model for it. The ammo will be ammo that does not shoot. So do to that it should work.

So here is another request, can someone give me the part of the original config.bin where the binocular is defined.

Greatings GalComT
Title: Re:Binocular Config
Post by: CrunchyFrog on 31 Oct 2002, 19:22:56
   class Binocular: Default
   {
      scopeWeapon=2;
      scopeMagazine=1;
      model="dalekohled_proxy";
      modelOptics="optika_dalekohled";
      weaponType=4096;
      magazineType=0;
      ammo="";
      displayName="$STR_DN_BINOCULAR";
      reloadTime=0.000000;
      sound[]={"",0,1};
      canLock=0;
      optics=1;
      forceOptics=1;
      primary=0;
      opticsZoomMin=0.085000;
      opticsZoomMax=0.085000;
      magazines[]={};
   };
   class NVGoggles: Binocular
   {
      displayName="$STR_DN_NV_GOGGLES";
      showEmpty=0;
      opticsZoomMin=1.000000;
      opticsZoomMax=1.000000;
      modelOptics="optika_night";
   };
Title: Re:Binocular Config
Post by: GalComT on 02 Nov 2002, 21:21:01
thx a lot man, u will see some unique binoculars soon.


Greatings [FCF] GalComT