Files
DayZ-Epoch/SQF/redryder/config.cpp
armaWillRobinson 38bb95f12f redryder add
2014-07-17 13:49:57 -07:00

91 lines
2.2 KiB
C++

// RedRyder BB Gun by WillRobinson.
#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
class CfgPatches
{
class RedRyder
{
units[] = {};
weapons[] = {RedRyder};
requiredVersion = 1.00000;
};
};
class CfgModels
{
class Default{};
class Weapon: Default{};
class RedRyder : Weapon{};
};
class CfgAmmo
{
class BulletBase;
class 177_BB: BulletBase {
model= \addons\redryder\models\BB_Round.p3d; //will need to be changed
simulation=shotShell;
soundHit[]={,0,1};
hit=3.7;indirectHit=0;indirectHitRange=0;
visibleFire=10;
audibleFire=10;
visibleFireTime=3;
deflecting=5;
airFriction = -0.001064;
fuseDistance = 0;
CraterEffects = "";
explosionEffects = "";
muzzleEffect = "BIS_Effects_Rifle";
};
};
class CfgMagazines
{
class CA_Magazine;
class 350Rnd_BB_Magazine: CA_Magazine {
scope = 2;
model= \addons\redryder\models\bb_magazine.p3d; //will need to be changed
picture="\addons\redryder\textures\bb_magazine_picture.paa"; //will need to be changed
displayName = 350 Count 177 Cal. BBs;
count=350;
ammo = 177_BB;
initSpeed = 175;
sound[]={"\addons\redryder\M9SD_S1", db8, 1,60}; //will need to be changed
reloadMagazineSound[]={"Ca\sounds\Weapons\rifles\M1014-reload",db-40,1,20};
descriptionShort = 350 Zink Coated .177, 4.5mm BBs;
};
};
class CfgWeapons
{
class Default {};
class Rifle: Default {};
class RedRyder: Rifle {
scope = 2;
model="\addons\redryder\models\RedRyder.p3d"; //will need to be changed
displayName = "RedRyder BB Gun";
displayNameMagazine="BB";
magazines[]={"350Rnd_BB_Magazine"};
recoil = "recoil_single_pistol_2outof3";
recoilProne = "recoil_single_pistol_prone_2outof3";
reloadTime=0.45;
sound[]={"\addons\redryder\RedRyder\M9SD_S1", db8, 1,60}; //will need to be changed
dispersion=0.00045;
minRange=0;minRangeProbab=0.30;
midRange=39;midRangeProbab=0.7;
maxRange=75;maxRangeProbab=0.05;
picture="\addons\redryder\textures\redryder_picture.paa"; //will need to be changed
handAnim[]={"OFP2_ManSkeleton","\Ca\weapons\data\Anim\M24.rtm"};
};
};