Home   Help Search Login Register  

Author Topic: Help with config (M49 Binocular)  (Read 5519 times)

0 Members and 1 Guest are viewing this topic.

Teryan

  • Guest
Re:Help with config (M49 Binocular)
« Reply #15 on: 10 Apr 2004, 16:38:54 »
humm, I dont have anything named w_m49_observation.paa, but i might have had at one time (name was probly too long so i chnaged it).  Let me retexture it, back in about an hour.

DeadMeatXM2

  • Guest
Re:Help with config (M49 Binocular)
« Reply #16 on: 10 Apr 2004, 16:41:17 »
I know its a bit late to be interjecting this info, but you can NOT add new binoculars to the game, its been tried and tried, and unfortunately it just doesnt work (because the binoculars are hardcoded into the game engine, as they are bound to the 'B' key)

Sorry mate, but you're gonna have to config it as something other than Binoculars, as it will simply not work. :-\

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Help with config (M49 Binocular)
« Reply #17 on: 10 Apr 2004, 16:55:41 »
I knew there might be a problem with basing this on Binocular, but I think it is worth seeing how far it goes before trying to base it on something else.

There is no optics model defined for it yet either, so that might be another problem to come yet.


Planck
I know a little about a lot, and a lot about a little.

Teryan

  • Guest
Re:Help with config (M49 Binocular)
« Reply #18 on: 10 Apr 2004, 16:58:39 »
S@#!  :(

Thanks, might have done this all weekend if you did not tell me....  Maby do it as a gun that can go in the binocular slot?

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Help with config (M49 Binocular)
« Reply #19 on: 10 Apr 2004, 17:28:08 »
As far as I see Teryan......we have got it as far as just missing a texture for the basic telescope model.

It is easy enough to change the base class, I think you could just use Default.:

class CfgWeapons
{

  class Default {};
  class M49_Observation: Default

But I might be wrong.

The only other difficulty I can see is doing the optics model for this.


Planck
« Last Edit: 10 Apr 2004, 17:28:46 by Planck »
I know a little about a lot, and a lot about a little.

Teryan

  • Guest
Re:Help with config (M49 Binocular)
« Reply #20 on: 10 Apr 2004, 17:31:46 »
Ok, here is the new config file. How would I get it to go into the binocular slot?  No need to have only a binocular to see people and no gun to shoot them with!  ;)

Quote
#define TEast 0
#define TWest 1
#define TGuerrila 2
#define TCivilian 3
#define TSideUnknown 4
#define TEnemy 5
#define TFriendly 6
#define TLogic 7

#define true 1
#define false 0

// type scope
#define private 0
#define protected 1
#define public 2



class CfgModels
{
  class Default { };
  class M49: Default
  {
      sections[]={""};
      sectionsInherit="";
  };
};

class CfgPatches
{
class M49
{
    units[]={};
    weapons[]={M49_Observation};
    worlds[]={};
    requiredVersion=1.85;
  };
};

class CfgAmmo
{
   class default {};
   class BulletSingle: default {};
   class BulletSniper: BulletSingle {};
};


class CfgWeapons
{
   class Default {};
   class MGun: Default {};
   class Riffle: MGun {};   
   class SniperRiffle : Riffle {};
   class M21 : SniperRiffle{};
   
   class M49: M21
   {
      model="\M49\m49telecope.p3d";
      displayName="M49_Observational";
      scopeWeapon=2;
      scopeMagazine=1;
      optics = true;
   Â Â Â Â Â Â opticsZoomMin = 20;
          opticsZoomMax = 20;
      distanceZoomMin = 20;
      distanceZoomMax = 20;
         
      
   };

};


And I get the same error!  humm.....    I textured the entire thing.  that texture does not exist their.  I'll check my whole computer for it....  
Ok, thx for help again.

EDIT:  you posted wile i was writing this  ;D, I'll try that.
« Last Edit: 10 Apr 2004, 17:32:52 by Teryan »

Teryan

  • Guest
Re:Help with config (M49 Binocular)
« Reply #21 on: 10 Apr 2004, 17:40:42 »
 :wow:

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Help with config (M49 Binocular)
« Reply #22 on: 10 Apr 2004, 17:40:46 »
I don't think it will work from the Binocular slot, it might be tied to the 'B' key for binoculars.
What about the other weapon slot, the one for LAWs and such?

The observer would carry his scope on his back wouldn't he?

EDIT.........You got it there then.........good

Planck
« Last Edit: 10 Apr 2004, 17:42:05 by Planck »
I know a little about a lot, and a lot about a little.

Teryan

  • Guest
Re:Help with config (M49 Binocular)
« Reply #23 on: 10 Apr 2004, 17:42:33 »
Ok, so their is no name for it.  I just got a thing taht said "drop    "pick "up         ".  Also I could not do anything with it (it was like he had nothing in his hands).  It did not show up in the guys hands....  

Quote
#define TCivilian 3
#define TSideUnknown 4
#define TEnemy 5
#define TFriendly 6
#define TLogic 7

//true or lie
#define true 1
#define false 0

//visibility
#define private 0
#define protected 1
#define public 1

class CfgModels
{
  class Default { };
  class M49: Default
  {
      sections[]={""};
      sectionsInherit="";
  };
};

class CfgPatches
{
class M49
{
    units[]={};
    weapons[]={M49_Observation};
    worlds[]={};
    requiredVersion=1.85;
  };
};

class CfgWeapons
{
 class Default {};
 class M49_Observation: Default

  {
    scopeWeapon=2;
    scopeMagazine=1;
    model = "\M49\m49telecope.p3d";
    optics = true;
    opticsZoomMin = 20;
    opticsZoomMax = 20;
    distanceZoomMin = 20;
    distanceZoomMax = 20;
  };
};

Thanks

EDIT:  The LAW spot would be fine.
« Last Edit: 10 Apr 2004, 17:43:23 by Teryan »

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Help with config (M49 Binocular)
« Reply #24 on: 10 Apr 2004, 17:42:53 »
Emmmmmmmmmmm.........you might need to scale that down a bit.


Planck
I know a little about a lot, and a lot about a little.

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Help with config (M49 Binocular)
« Reply #25 on: 10 Apr 2004, 17:47:29 »
What LOD's have you made for this in Oxygen......not being an expert on making weapons I am not too sure which LOD' s are necessary for a weapon.

Should be easy enough to find out though.


Planck
I know a little about a lot, and a lot about a little.

Teryan

  • Guest
Re:Help with config (M49 Binocular)
« Reply #26 on: 10 Apr 2004, 17:56:22 »
Err um, I eather forgot them or did not know witch ones was needed for the binoculars.  So i'm going to put in the weapond one: zbran
and scale it.

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Help with config (M49 Binocular)
« Reply #27 on: 10 Apr 2004, 17:59:50 »
OK........good luck with it, I have to go, real life is calling.



Planck
I know a little about a lot, and a lot about a little.

Teryan

  • Guest
Re:Help with config (M49 Binocular)
« Reply #28 on: 10 Apr 2004, 20:16:12 »
Ok, thanks again for the help.
If you get a chance check back in.

I put in the zbran LOD, and still nothing.  I have a 1.000 LOD, a Memory LOD and under the memory LOD I have the zban LOD.  I still can't see it in game with the person using it.  But I can drop it and see it...  I also do not see the picture of the m49 in the gear section (when looking at the map, in equipment).  Got the name thing fixed.  Here is the updated config file:
Quote
#define TCivilian 3
#define TSideUnknown 4
#define TEnemy 5
#define TFriendly 6
#define TLogic 7

//true or lie
#define true 1
#define false 0

//visibility
#define private 0
#define protected 1
#define public 1

class CfgModels
{
  class Default { };
  class M49: Default
  {
      sections[]={""};
      sectionsInherit="";
  };
};

class CfgPatches
{
class M49
{
    units[]={};
    weapons[]={M49_Observation};
    worlds[]={};
    requiredVersion=1.85;
  };
};

class CfgWeapons
{
 class Default {};
 class M49_Observation: Default

  {
    displayName="M49";
    scopeWeapon=2;
    scopeMagazine=1;
    model = "\M49\m49telecope.p3d";
    picture="\M49\w_m49.pac";
    optics = true;
    opticsZoomMin = 20;
    opticsZoomMax = 20;
    distanceZoomMin = 20;
    distanceZoomMax = 20;
  };
};

Also how do I make it go in the LAW spot?
« Last Edit: 10 Apr 2004, 20:29:14 by Teryan »

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Help with config (M49 Binocular)
« Reply #29 on: 10 Apr 2004, 21:02:38 »
I think I am reaching the limit of my knowledge on this now.

As I said before, I have never made a weapon addon, so I think you need someone who has, to help you further.

The way I understand it though, you need your model file as a proxy anyway.

You might also need custom animations for the holding and use of this addon.

Finally, I think proxies also require a cfgnonaivehicles section in the config.cpp.

I hope someone who has experience with making weapons can help you here, but I don't and think I have helped all I can for the moment.

I will keep an eye on this thread though.  ;)


Planck
I know a little about a lot, and a lot about a little.