Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Attachment_Bipod_Atlas: AttachmentBase
- {
- scope=2;
- displayName="ATLAS Bipod";
- descriptionShort="This bipod provides solid support for longer range engagements. When bipod is deployed and the firer is prone, weapon accuracy is increased dramatically.";
- inventorySlot="weaponBipod";
- model="\DZ\weapons\attachments\support\bipod_atlas.p3d";
- dispersionModifier=-0.050000001;
- dispersionCondition="(getText(configFile >> 'CfgMovesMaleSdr2' >> 'states' >> animationState _agent >> 'bodyPosition') == 'prone') and (_this animationPhase 'bipod_left' == 1)";
- dexterityModifier=-0.2;
- dexterityCondition="true";
- class Damage
- {
- tex[]={};
- mat[]=
- {
- "DZ\weapons\attachments\data\m4_bipod.rvmat",
- "DZ\weapons\attachments\data\m4_bipod_damage.rvmat",
- "DZ\weapons\attachments\data\m4_bipod_destruct.rvmat"
- };
- };
- class EventHandlers
- {
- ItemDetached="(_this select 0) animate ['bipod_left',0];(_this select 0) animate ['bipod_right',0];";
- };
- class AnimationSources
- {
- class bipod
- {
- source="user";
- animPeriod=0.5;
- initPhase=0;
- };
- };
- class UserActions
- {
- class DeployBipod: DefaultAction
- {
- displayNameDefault="Deploy Bipod";
- displayName="Deploy Bipod";
- condition="(this animationPhase 'bipod_left' < 1) and (itemParent this isKindOf 'DefaultWeapon')";
- statement="this animate ['bipod_left',1];this animate ['bipod_right',1];";
- };
- class RetractBipod: DefaultAction
- {
- displayNameDefault="Retract Bipod";
- displayName="Retract Bipod";
- condition="(this animationPhase 'bipod_left' == 1) and (itemParent this isKindOf 'DefaultWeapon')";
- statement="this animate ['bipod_left',0];this animate ['bipod_right',0];";
- };
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment