Guest User

Bipod Config

a guest
Feb 27th, 2014
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.74 KB | None | 0 0
  1. class Attachment_Bipod_Atlas: AttachmentBase
  2.     {
  3.         scope=2;
  4.         displayName="ATLAS Bipod";
  5.         descriptionShort="This bipod provides solid support for longer range engagements. When bipod is deployed and the firer is prone, weapon accuracy is increased dramatically.";
  6.         inventorySlot="weaponBipod";
  7.         model="\DZ\weapons\attachments\support\bipod_atlas.p3d";
  8.         dispersionModifier=-0.050000001;
  9.         dispersionCondition="(getText(configFile >> 'CfgMovesMaleSdr2' >> 'states' >> animationState _agent >> 'bodyPosition') == 'prone') and (_this animationPhase 'bipod_left' == 1)";
  10.         dexterityModifier=-0.2;
  11.         dexterityCondition="true";
  12.         class Damage
  13.         {
  14.             tex[]={};
  15.             mat[]=
  16.             {
  17.                 "DZ\weapons\attachments\data\m4_bipod.rvmat",
  18.                 "DZ\weapons\attachments\data\m4_bipod_damage.rvmat",
  19.                 "DZ\weapons\attachments\data\m4_bipod_destruct.rvmat"
  20.             };
  21.         };
  22.         class EventHandlers
  23.         {
  24.             ItemDetached="(_this select 0) animate ['bipod_left',0];(_this select 0) animate ['bipod_right',0];";
  25.         };
  26.         class AnimationSources
  27.         {
  28.             class bipod
  29.             {
  30.                 source="user";
  31.                 animPeriod=0.5;
  32.                 initPhase=0;
  33.             };
  34.         };
  35.         class UserActions
  36.         {
  37.             class DeployBipod: DefaultAction
  38.             {
  39.                 displayNameDefault="Deploy Bipod";
  40.                 displayName="Deploy Bipod";
  41.                 condition="(this animationPhase 'bipod_left' < 1) and (itemParent this isKindOf 'DefaultWeapon')";
  42.                 statement="this animate ['bipod_left',1];this animate ['bipod_right',1];";
  43.             };
  44.             class RetractBipod: DefaultAction
  45.             {
  46.                 displayNameDefault="Retract Bipod";
  47.                 displayName="Retract Bipod";
  48.                 condition="(this animationPhase 'bipod_left' == 1) and (itemParent this isKindOf 'DefaultWeapon')";
  49.                 statement="this animate ['bipod_left',0];this animate ['bipod_right',0];";
  50.             };
  51.         };
  52.     };
Advertisement
Add Comment
Please, Sign In to add comment