Skip to content

Instantly share code, notes, and snippets.

@mrflay
Created June 17, 2013 08:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrflay/5795503 to your computer and use it in GitHub Desktop.
Save mrflay/5795503 to your computer and use it in GitHub Desktop.
Compound Bow Model Configuraiton
class CfgSkeletons
{
class Default
{
isDiscrete=1;
skeletonInherit="";
skeletonBones[]={};
};
class FLAY_BowSkeleton: Default
{
skeletonBones[]={
"magazine","",
"bolt",""
};
};
};
class CfgModels
{
class Default
{
sectionsInherit="";
sections[]={};
skeletonName="";
};
class FLAY_Bow: Default
{
skeletonName="FLAY_BowSkeleton";
sections[]={
"magazine",
"bolt"
};
class Animations
{
class FLAY_MagazineEmpty
{
type = "hide";
source = "revolving";
selection = "magazine";
sourceAddress = "mirror";
memory = 0;
minValue = -1.0;
maxValue = 0.0;
minPhase = -1.0;
maxPhase = 0.0;
hideValue = 0.5;
};
class FLAY_MagazineMove
{
type="translation";
source="reloadMagazine";
selection="magazine";
axis="magazine_axis";
minValue=0;
maxValue=0.02;
offset0=0;
offset1=0.87;
};
class FLAY_BoltMove
{
type="translation";
source="reloadMagazine";
selection="bolt";
axis="magazine_axis";
minValue=0;
maxValue=0.02;
offset0=0;
offset1=0.87;
};
};
};
class FLAY_CompoundBow: FLAY_Bow {};
class FLAY_RecurveBow: FLAY_Bow {};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment