Jump to content
Sign in to follow this  
Scud

Quick Fix wanted

Recommended Posts

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

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 crazy_o.gif

Share this post


Link to post
Share on other sites

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

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

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

well im not good in weapon configs either, and i cant think of whats wrong sad_o.gif

Share this post


Link to post
Share on other sites

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×