Home   Help Search Login Register  

Author Topic: reconfigured crossbow.......config help needed  (Read 1023 times)

0 Members and 2 Guests are viewing this topic.

monoloth69

  • Guest
reconfigured crossbow.......config help needed
« on: 10 Apr 2004, 07:18:44 »
I requested and received permission from Pathfinder to redo his Xbow addon for use in an upcoming campaign by Kueter(Disciples OFP Studio)  Currently I am making all new textures for the xbow, as well as adding as much detail as possible, but for what i need it to do I am having some problems..........the config is as follows:

// xbowbow by Pathfinder

// Basic def.
#define TEast 0
#define TWest 1
#define TGuerrila 2
#define TCivilian 3
#define TSideUnknown 4
#define TEnemy 5
#define TFriendly 6
#define TLogic 7

#define true 1
#define false 0

// type scope
#define private 0
#define protected 1
#define public 2


class CfgPatches
{
 class Longbow
 {
  units[]={Xbowman};
  weapons[]={Xbow};
  requiredVersion=1.91;
 };
};

class CfgModels
{
 class Default{};
  class Weapon: Default{};
  class longbow : Weapon{};

};

class CfgAmmo
{
 class default {};
 class BulletSingle: default {};
 class BulletSniper: BulletSingle {};
 class Longbow: BulletSniper {};
};


class CfgWeapons
{
  class Default {};
 class MGun: Default {};
 class Riffle: MGun {};
 class SniperRiffle : Riffle {};
 class M21 : SniperRiffle{};
 class xbow : m21
 {
  model="\Xbow\Xbow";
  displayName="xbow";
  displayNameMagazine="Xbow";
  magazines[]={"Xbow"};
  ammo=BulletSniper;
  count = 9;
  reloadTime=0.6;
  magazineType="2 * 256";
  initspeed = 650;
  picture="";
 
 };

};



class CfgVehicles
{
 class All{};
 class AllVehicles:All{};
 class Land:AllVehicles{};
 class Man:Land{};
 class Soldier:Man{}
 class soldierwb:Soldier{};

 class xbowan: soldierwb
 {
  access=2
  displayName="xbowman";
  weapons[]={"Throw","Put","xbow"};
  magazines[]={"xbow","xbow","xbow","xbow"};
 };
};

class CfgNonAIVehicles
{
 class ProxyWeapon {};
 class Proxyxbowman : ProxyWeapon {};

};

Now, what I am trying to do is make this a "repeater" crossbow, sounds hokey I know, but its going to be a custom weapon that is going to be equipped to custom units i just finished for Kueter (other half of the Disciples OFP Studio).  He is making the beginnings of a campaign (D vs The Undead) and he requested the Xbow.  So anyway.. what I would really like to do is make a custom XBow bolt that is visible, then have it have the ability to "autoload" the other 4.  Then the unit would have to manually reload the xbow with a fresh 5 bolts.  Sort of like the 6g-30 in Res, only with 5 shots.  Also, i need for it to be able to shoot straighter, for a distance of about 100-150 meters, within reason.  Right now it just "boings" out and really lobs to the target.

So here are some questions:

If I make a new bolt(arrow), how can I make it work thru the config?
how do I make it an auto-reloading weapon, until the "magazine" is empty, then have to relaod the mag?
how do i make the trajectory work?
how do i get the custom "ammo" (arrow) ingame?
I want to make sure the unit can only carry 5 total "mags" (quiver is already started and will be attached to belt )
how can i make the quiver attach to belt when a unit grabs it from the ammocrate?

I know these are pretty hefty questions, but thats where I am currently, lol.

Any and all help would be greatly appreciated, and once again, thanx a million to Pathfinder for letting me use your addon!

« Last Edit: 12 Apr 2004, 02:17:07 by monoloth69 »