Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CfgSkeletons
- {
- class Default
- {
- isDiscrete = 1;
- skeletonInherit = "";
- skeletonBones[] = {};
- };
- class Weapon: Default
- {
- isDiscrete=1;
- skeletonInherit="Default";
- skeletonBones[]=
- {
- "magazine_loaded","",
- "trigger",""
- };
- };
- class Rifle: Weapon
- {
- skeletonInherit="Weapon";
- skeletonBones[]=
- {
- //"bolt","",
- //"bullet_cover","",
- //"aimpoint_cover","",
- //"aimpoint_cover02","",
- //"charging_handle","",
- //"misc_cover",""
- };
- };
- class Pistol: Weapon
- {
- skeletonInherit="Weapon";
- skeletonBones[]=
- {
- "slide","",
- "hammer","",
- "safety",""
- };
- };
- };
- class CfgModels
- {
- class Default
- {
- sections[] = {};
- sectionsInherit="";
- skeletonName = "";
- };
- class Optic: Default
- {
- sections[]=
- {
- "zasleh"
- };
- };
- class Weapon: Default
- {
- sections[]=
- {
- "zasleh"
- };
- htMin = 1; // Minimum half-cooling time (in seconds)
- htMax = 600; // Maximum half-cooling time (in seconds)
- afMax = 0; // Maximum temperature in case the model is alive (in celsius)
- mfMax = 0; // Maximum temperature when the model is moving (in celsius)
- mFact = 1; // Metabolism factor - number from interval <0, 1> (0 - metabolism has no influence, 1 - metabolism has full influence (no other temperature source will be considered)).
- tBody = 100; // Metabolism temperature of the model (in celsius)
- skeletonName="Weapon";
- class Animations
- {
- class zaslehROT
- {
- type="rotationX";
- source="ammoRandom"; //use ammo count as phase for animation
- sourceAddress="loop"; //loop when phase out of bounds
- selection="zasleh"; //selection we want to rotate
- axis=""; //no own axis - center of rotation is computed from selection
- centerFirstVertex=true; //use first vertex of selection as center of rotation
- minValue=0;
- maxValue=4; //rotation angle will be 360/4 = 90 degrees
- angle0="rad 0";
- angle1="rad 360";
- };
- class safety_rotation
- {
- type="rotationZ";
- source="weaponMuzzle";
- sourceAddress = "clamp";
- selection="safety";
- axis="safety_axis";
- memory=1;
- minValue=0.000000;
- maxValue=1.000000;
- angle0=0.0;//"rad 0"
- angle1=-0.03;//"rad -10"
- };
- class magazine_hide
- {
- type="hide";
- source="reloadMagazine";
- sourceAddress="mirror";
- selection="magazine_loaded";
- minValue=0.0;
- maxValue=1.0;
- hideValue=0.2;//0.15
- unhideValue = 0.76;//0.8
- };
- class reload_ammobelt_hide: magazine_hide
- {
- selection="ammo_belt";
- };
- class reload_ammobelt_bottom_hide: magazine_hide
- {
- selection="ammo_belt_bottom";
- };
- class ammobelt_hide: magazine_hide
- {
- source="isEmpty";
- selection="ammo_belt";
- minValue=0.000000;
- maxValue=1.000000;
- hideValue=1.000000;
- };
- class ammobelt_bottom_hide: ammobelt_hide
- {
- selection="ammo_belt_bottom";
- };
- class no_magazine
- {
- type="hide";
- source="hasMagazine";
- selection="magazine_loaded";
- minValue=0.000000;
- maxValue=1.00000;
- hideValue=0.5;
- unhideValue = -1.0;
- };
- class magazine_reload_move_1
- {
- type = "translation";
- source = "reloadMagazine";
- selection = "magazine_loaded";
- axis = "magazine_axis";
- minValue = 0.07;
- maxValue = 0.2;//0.1 works
- offset0 = 0.0;
- offset1 = 1.0;//0.5 works
- };
- class magazine_reload_move_2: magazine_reload_move_1
- {
- //source = "reloadMagazine2";
- minValue = 0.65;
- maxValue = 1.0;
- offset0 = 0.0;
- offset1 = -1.1;
- };
- };
- };
- class Pistol: Weapon
- {
- skeletonName="Pistol";
- class Animations: Animations
- {
- class trigger /// not in this model, but good to use
- {
- type = "rotation";
- source = "reload";
- sourceAddress = "clamp";
- selection = "trigger";
- axis = "trigger_axis";
- minValue = 0;
- maxValue = "1";
- angle0 = "0";
- angle1 = "rad 5";
- };
- class magazine_hide:magazine_hide
- {
- sourceAddress="mirror";
- minValue=0.0;
- maxValue=0.56;
- hideValue=0.25;//was 0.36
- };
- class slide_fire_begin
- {
- type="translation";
- source="reload";
- selection="slide";
- axis="slide_axis";
- minValue=0.000000;
- maxValue=0.500000;//0.5
- offset0=0;
- offset1=-0.200000;//0.2
- };
- class slide_fire_end:slide_fire_begin
- {
- minValue=0.5300000;
- maxValue=1.000000;
- offset0=0;
- offset1=0.200000;//0.2
- };
- class slide_empty
- {
- type="translation";
- source="isEmpty";
- selection="slide";
- axis="slide_axis";
- minValue=0.990000;
- maxValue=1.000000;
- offset0=0;
- offset1=-0.200000;
- };
- class slidesafety_fire_begin:slide_fire_begin
- {
- selection="safety";
- };
- class slidesafety_empty:slide_empty
- {
- selection="safety";
- };
- class hammer_fire_begin
- {
- type="rotation";
- source="reload";
- selection="hammer";
- axis="hammer_axis";
- memory=1;
- minValue=0.000000;
- maxValue=0.500000;//0.5
- angle0=0.000000;
- angle1=0.085;//1.221730
- };
- class hammer_fire_end:hammer_fire_begin
- {
- minValue=0.520000;
- maxValue=1.000000;
- angle0=0.000000;
- angle1=-0.085;//-1.221730
- };
- class hammer_empty
- {
- type="rotation";
- source="isEmpty";
- selection="hammer";
- axis="hammer_axis";
- memory=1;
- //minValue=0.990000;
- //maxValue=1.000000;
- minValue=0.500000;
- maxValue=0.800000;
- angle0=0.000000;
- angle1=0.000000;//1.000000
- //angle1=1.221730;
- };
- };
- };
- class bek_makarov: Pistol {};
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement