redryder add

This commit is contained in:
armaWillRobinson
2014-07-17 13:49:57 -07:00
parent 8a2dcfcf10
commit 38bb95f12f
14 changed files with 199 additions and 0 deletions

90
SQF/redryder/config.cpp Normal file
View File

@@ -0,0 +1,90 @@
// 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"};
};
};

45
SQF/redryder/model.cfg Normal file
View File

@@ -0,0 +1,45 @@
class CfgSkeletons
{
class Default;
class redryder: Default
{
skeletonInherit="";
skeletonBones[]=
{
"lever",""
};
};
}
class CfgModels
{
class Default;
class redryder: Default
{
skeletonName = "redryder";
class Animations
{
class lever_up
{
type="rotation";
source="reload";
selection="lever";
axis="lever_axis";
memory=1;
minValue=0.000000;
maxValue=0.100000;
angle0=0.000000;
angle1=1.570796;
};
class lever_down:lever_up
{
minValue=0.950000;
maxValue=1.000000;
angle0=0.000000;
angle1=-1.570796;
};
};
};
};

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,32 @@
ambient[]={0.85000002,0.85000002,0.85000002,0.85000002};
diffuse[]={0.85000002,0.85000002,0.85000002,0.85000002};
forcedDiffuse[]={0,0,0,0};
emmisive[]={0,0,0,1};
specular[]={1,1,1,1};
specularPower=30;
PixelShaderID="NormalMapSpecularMap";
VertexShaderID="NormalMap";
class Stage1
{
texture="addons\redryder\textures\bb_NOHQ.paa"; //will need to be changed
uvSource="tex";
class uvTransform
{
aside[]={1,0,0};
up[]={0,1,0};
dir[]={0,0,0};
pos[]={0,0,0};
};
};
class Stage2
{
texture="addons\redryder\textures\bb_SMDI.paa"; //will need to be changed
uvSource="tex";
class uvTransform
{
aside[]={1,0,0};
up[]={0,1,0};
dir[]={0,0,0};
pos[]={0,0,0};
};
};

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,32 @@
ambient[]={0.85000002,0.85000002,0.85000002,0.85000002};
diffuse[]={0.85000002,0.85000002,0.85000002,0.85000002};
forcedDiffuse[]={0,0,0,0};
emmisive[]={0,0,0,1};
specular[]={0.80392158,0.80392158,0.80392158,1};
specularPower=150;
PixelShaderID="NormalMapSpecularMap";
VertexShaderID="NormalMap";
class Stage1
{
texture="addons\redryder\textures\redmap_NOHQ.paa"; //will need to be changed
uvSource="tex";
class uvTransform
{
aside[]={1,0,0};
up[]={0,1,0};
dir[]={0,0,0};
pos[]={0,0,0};
};
};
class Stage2
{
texture="addons\redryder\textures\redmap1sd2_SMDI.paa"; //will need to be changed
uvSource="tex";
class uvTransform
{
aside[]={1,0,0};
up[]={0,1,0};
dir[]={0,0,0};
pos[]={0,0,0};
};
};