Maslow 0 Posted June 30, 2002 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
PSC 0 Posted June 30, 2002 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
Maslow 0 Posted July 1, 2002 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
Maslow 0 Posted July 1, 2002 wwwweelll 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........... Well thx anyway for the try! Share this post Link to post Share on other sites
PSC 0 Posted July 1, 2002 Maybe FlipeR's M4 pack. He will probably release an updated version soon. PSC Share this post Link to post Share on other sites
Maslow 0 Posted July 1, 2002 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
KKB 0 Posted July 1, 2002 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
Maslow 0 Posted July 1, 2002 yyyeeessss thanks everything works perfect now thx you da man KKB ...... cy Share this post Link to post Share on other sites