Jump to content
Sign in to follow this  
Maslow

Cfgmodell?

Recommended Posts

Well i looked at that Commented_Config.zip a while an d tried it multiple times but it seems that it just won't make it to create a proper entry into the config.cpp for a normal gun!!!

Please help me and ell me how it must look right!

C y

Maslow

Share this post


Link to post
Share on other sites

It ought to look kinda like this:

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

class CfgModels

{

class Default{};

class Weapon: Default{};

class YourAddonWeapon: Weapon{};

class optika_YourAddonWeapon: Weapon {};

}

class CfgPatches

{

class YourAddonWeapon

{

units[]={"YourAddonWeapon"};

requiredVersion=1.47;

};

};

class CfgWeapons

{

class Default {};

class MGun: Default {};

class Riffle: MGun {};

class M16: Riffle {};

class YourAddonGun: M16

{

custom values in here

};

};

<span id='postcolor'>

I've never created a weapon. So I don't know if it will work. Best thing is to DePbo a custom weapon PBO and see how it's done.

PSC

Share this post


Link to post
Share on other sites

Hmmm well after looking into the commited config there was other stuff anyway thx i'll try it.

cy

Share this post


Link to post
Share on other sites

wwwweelll sad.gif it won't work. The rest of the config.cpp i understand just the part with the cfgmodells is a secret to me. Annd to the tip to look at another addon, tell me a addon that already has this entry...........icon8.gif

Well thx anyway for the try!

Share this post


Link to post
Share on other sites

Maybe FlipeR's M4 pack. He will probably release an updated version soon.

PSC

Share this post


Link to post
Share on other sites

hey kewl thanks for the info i didn't thought about that, well i'll write him a message he will know it.

thx

cy

Share this post


Link to post
Share on other sites

Have you tried:

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

{

class Default{};

class Weapon: Default{};

class modelname: Weapon{};

};<span id='postcolor'>

Modelname should be the name of your p3d file without the p3d extension and without any pathnames.

Share this post


Link to post
Share on other sites

yyyeeessss thanks everything works perfect now thx you da man KKB icon14.gif......

cy

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  

×