Jump to content
Sign in to follow this  
rbeni12

--help--

Recommended Posts

//Nejake zakladni definice / some basic defines

#define TEast 0

#define TWest 1

#define TGuerrila 2

#define TCivilian 3

#define TSideUnknown 4

#define TEnemy 5

#define TFriendly 6

#define TLogic 7

//pravda nebo lez / true or lie

#define true 1

#define false 0

//viditelnost / visibility

#define private 0

#define protected 1

#define public 1

class CfgPatches

{

class m2nm

{

units[]={m2nm};

weapons[]={m2ammo,m2mg};

worlds[]={};

requiredVersion=1.91;

};

};

class CfgVehicles

{

class All {};

class AllVehicles: All {};

class LandVehicle: AllVehicles {};

class Tank: LandVehicle {};

class APC: Tank {};

class M113: APC {};

class M2StaticMG: M113 {};

class m2nm: M2StaticMG

{

displayName ="M2MG";

weapons[] = {"m2mg"};

magazines[] ={"m2ammo"};

};

};

class Cfgmodels

{

class Default {};

class Weapon : Default {};

class m2mn: weapon {};

};

class CfgAmmo

{

class Default {};

class BulletSingle: Default {};

class BulletSniper: BulletSingle {};

class Bullet12_7W: BulletSniper {};

class m2ammo: Bullet12_7W

{

hit=12;

minRange=100;

midRange=200;

maxRange=1000;

};

};

class CfgWeapons

{

class Default {};

class MGun: Default {};

class Riffle: MGun {};

class MachineGun7_6: Riffle {};

class MachineGun12_7: MachineGun7_6 {};

class m2mg: MachineGun12_7

{

displayName ="M2";

displayNameMagazine = ".50";

ammo="m2ammo";

sound[]={"\C8X_M16A2\Sounds\cal.50.wav",db0,1};

count=100;

reloadMagazineSound[]={"\m2nm\m2RL.ogg",0.3,1};

model="m2nm/M2_mg";

};

};

sad.gif help plzzz

Share this post


Link to post
Share on other sites

You keep chopping and changeing between m2mg and m2nm... you will want to make them all m2nm or m2mgnm to start with...(to prevent addon issues, really you should use a 3 letter tag, to prevent your addons causing classhes with other addons)

Other than that, whats the problem?? Not working ingame? Not appearing in the editor?? CTD? or an error message??

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (DeadMeatXM2 @ 02 May 2003,11:20)</td></tr><tr><td id="QUOTE">You keep chopping and changeing between m2mg and m2nm... you will want to make them all m2nm or m2mgnm to start with...(to prevent addon issues, really you should use a 3 letter tag, to prevent your addons causing classhes with other addons)

Other than that, whats the problem?? Not working ingame? Not appearing in the editor?? CTD? or an error message??<span id='postcolor'>

I had an error message:

Config: "" encountered instead of '{'

sad.gif

Now I can't fire but I corrected someething on the config .cpp

Share this post


Link to post
Share on other sites

no offense mate but the next time you must put it in the 02 or breathe topics because there are people who can awnser you and this is only for addons wink.gif so biggrin.gif

Share this post


Link to post
Share on other sites
Guest BratZ

After you fix any syntax errors add this:

class Cfgmodels

{

class Default {};

class Weapon : Default {};

class m2mn: weapon {};

};

Will get rid of the modelspecial message

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (BratZ @ 02 May 2003,14:57)</td></tr><tr><td id="QUOTE">After you fix any syntax errors add this:

class Cfgmodels

{

class Default {};

       class Weapon : Default {};

       class m2mn: weapon {};

};

Will get rid of the modelspecial message<span id='postcolor'>

THX I try then I post smile.gif

Share this post


Link to post
Share on other sites

I get the same message (I modifed the upper post config.cpp)

"Model Special"

I can't shoot ....I can read: "M2 0" it means 0 ammo How can I fix this??? plz post the fixed config.cpp

confused.gif

THX

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (CrunchyFrog @ 03 May 2003,12:17)</td></tr><tr><td id="QUOTE">Ey, If your gonna release it, please tag it<span id='postcolor'>

OK smile.gif

Share this post


Link to post
Share on other sites

Why do ppl allways copy that "some basic definitions"-stuff if they never use it anywhere.....

Anyway, error in code:

you gave the gun directly the ammo, you have to define a magazine instead (note the gun is allready a magazine, so you can load it with itself).

Code that should work:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

class CfgPatches

{

 class m2nm

 {

    units[]={m2nm};

    weapons[]={m2mg};

    worlds[]={};

    requiredVersion=1.91;

  };

};

class CfgVehicles

{

  class All {};

  class AllVehicles: All {};

  class LandVehicle: AllVehicles {};

  class Tank: LandVehicle {};

  class APC: Tank {};

  class M113: APC {};

  class M2StaticMG: M113 {};

  class m2nm: M2StaticMG

  {

     displayName ="M2MG";

     weapons[] = {m2mg};

     magazines[] ={m2mg};

  };

};

class Cfgmodels

{

class Default {};

      class Weapon : Default {};

      class m2mn: weapon {};

};

class CfgAmmo

{

  class Default {};

  class BulletSingle: Default {};

  class BulletSniper: BulletSingle {};

  class Bullet12_7W: BulletSniper {};

  class m2ammo: Bullet12_7W

  {

     hit=12;

     minRange=100;

     midRange=200;

     maxRange=1000;

  };

};

class CfgWeapons

{

  class Default {};

  class MGun: Default {};

  class Riffle: MGun {};

  class MachineGun7_6: Riffle {};

  class MachineGun12_7: MachineGun7_6 {};

  class m2mg: MachineGun12_7

  {

     displayName ="M2";

     displayNameMagazine = ".50";

     ammo="m2ammo";

     sound[]={"\C8X_M16A2\Sounds\cal.50.wav",db0,1};

     count=100;

     reloadMagazineSound[]={"\m2nm\m2RL.ogg",0.3,1};

     model="m2nm/M2_mg";

  };

};<span id='postcolor'>

Share this post


Link to post
Share on other sites

WOW THX a lot !!!

smile.gif I release my pack soon (NATOMOD) wink.gif

Share this post


Link to post
Share on other sites

sad.gif it says: Cannot open object data3d\m2nm/m2_mg.p3d

Here's the config:

//Nejake zakladni definice / some basic defines

#define TEast 0

#define TWest 1

#define TGuerrila 2

#define TCivilian 3

#define TSideUnknown 4

#define TEnemy 5

#define TFriendly 6

#define TLogic 7

//pravda nebo lez / true or lie

#define true 1

#define false 0

//viditelnost / visibility

#define private 0

#define protected 1

#define public 1

class CfgPatches

{

class m2nm

{

units[]={m2nm};

weapons[]={m2mg};

worlds[]={};

requiredVersion=1.91;

};

};

class CfgVehicles

{

class All {};

class AllVehicles: All {};

class LandVehicle: AllVehicles {};

class Tank: LandVehicle {};

class APC: Tank {};

class M113: APC {};

class M2StaticMG: M113 {};

class m2nm: M2StaticMG

{

displayName ="M2MG";

weapons[] = {m2mg};

magazines[] ={m2mg};

};

};

class Cfgmodels

{

class Default {};

class Weapon : Default {};

class m2mg: weapon {};

};

class CfgAmmo

{

class Default {};

class BulletSingle: Default {};

class BulletSniper: BulletSingle {};

class Bullet12_7W: BulletSniper {};

class m2ammo: Bullet12_7W

{

hit=12;

minRange=100;

midRange=200;

maxRange=1000;

};

};

class CfgWeapons

{

class Default {};

class MGun: Default {};

class Riffle: MGun {};

class MachineGun7_6: Riffle {};

class MachineGun12_7: MachineGun7_6 {};

class m2mg: MachineGun12_7

{

displayName ="M2";

displayNameMagazine = ".50";

ammo="m2ammo";

sound[]={"\C8X_M16A2\Sounds\cal.50.wav",db0,1};

count=100;

reloadMagazineSound[]={"\m2nm\m2RL.ogg",0.3,1};

model="m2nm/M2_mg";

};

};

I do I need to do...?

Share this post


Link to post
Share on other sites

quite easy, your model path reference is wrong:

Inestead of:

model="m2nm/M2_mg";

it has to be

model="\m2nm\M2_mg.p3d";

(.p3d is optional)

Share this post


Link to post
Share on other sites

Ohhh... tounge.gif Thx next time I will be more careful smile.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×