Scud 0 Posted June 19, 2004 Ok redoing gun for mod and cant get the empties to spit out have read and tried other post on this <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgAmmo { class Default {}; class BulletSingle : Default{}; class Bullet7_6: BulletSingle {}; class Bullet12_7: Bullet7_6 {}; class Vickers303: Bullet12_7 { model=\vickers\303cart; cartridge="\vickers\303cart.p3d"; }; }; class CfgWeapons { class Default{}; class MGun: Default{}; class MachineGun7_6: MGun{}; class MachineGun12_7: MachineGun7_6{}; class Browning: MachineGun12_7{}; class vickers: Browning { Â ammo=Vickers303; Â displayName="Vickers HMG"; Â displayNameMagazine=".303 200rnd belt"; Â shortNameMagazine=".303 belt"; Â count=200; Â initSpeed=500; Â reloadTime=0.1; Â sound[]={"\vickers\VickersFire.wss",db+130,1}; Â soundContinuous=1; Â maxLeadSpeed=865; aiRateOfFire=0.1; // delay between shots at given distance aiRateOfFireDistance=1000; // at shorter distance delay goes lineary to zero }; }; haven't done guns before so all new to me. Share this post Link to post Share on other sites
oyman 0 Posted June 20, 2004 you need a cfg vehicles part defining the cartride <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> class CfgVehicles { class All{}; class Thing: All {}; class ThingEffect: Thing {}; class 303cart: ThingEffect { model=\vickers\303cart; displayName="303Cart"; submerged=0; submergeSpeed=0; timeToLive=10.00; disappearAtContact=1; }; }; and your cfg ammo should look like this <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> class CfgAmmo { class Default {}; class BulletSingle : Default{}; class Bullet7_6: BulletSingle {}; class Bullet12_7: Bullet7_6 {}; class Vickers303: Bullet12_7 { cartridge="303cart"; }; }; i think that should work Share this post Link to post Share on other sites
Scud 0 Posted June 20, 2004 Doh I also added this in weapons cfg (wasn't mentioned in other post) cartridgePos="nabojnicestart"; cartridgeVel="nabojniceend"; will give that ago thanx heaps oyman Share this post Link to post Share on other sites
Scud 0 Posted June 20, 2004 ok tried that with no joy but now I will add this class FxCartridge: ThingEffect {}: class 303cart: FxCartridge so will see if that works Still no joy Also have checked and rechecked all spelling in mem lod. Share this post Link to post Share on other sites
oyman 0 Posted June 20, 2004 hmm maybe someone else can help.. Share this post Link to post Share on other sites
Scud 0 Posted June 20, 2004 I think you have put me on the right track its just some lil silly thing I have missed Share this post Link to post Share on other sites
oyman 0 Posted June 20, 2004 well im not good in weapon configs either, and i cant think of whats wrong Share this post Link to post Share on other sites
Scud 0 Posted June 20, 2004 Bugger it deleted the lot and did all with animations. (much easier) Now bullets feed from ammo box and emptys spit out the side. Shoulda done it in the first place. Thanx for help anyway oyman Share this post Link to post Share on other sites