ARMA 3 模组 制作 如何 配置动作文件 展示

动作配置的官方链接https://community.bistudio.com/wiki/CfgMoves_Config_Reference

这里演示添加4个新动作

原版Acts_CrouchingCoveringRifle01人物死亡时动画还是会继续,改进后的人物死亡动作终止。

原版AmovPercMevaSrasWrflDfl_AmovpknlMstpSrasWrflDnon 无法开火改进版任何时候都能开火,当然开火不一定你能打准目标。但允许你开火了。 

配置方法在config文件中写

class CfgPatches

{

class PikoAddon

{


name = "P_move";

author = "Piko";

url = "";

requiredVersion =0.1; 

requiredAddons[] = {"A3_Anims_F"};

units[] = {};

weapons[] = {};

};

};

//引用基础动画类

class CfgMovesBasic;


///重构人物动作类

class CfgMovesMaleSdr: CfgMovesBasic

{

skeletonName = "OFP2_ManSkeleton";

gestures = "CfgGesturesMale";

///引用基础状态

class StandBase;

class SprintBaseDf;

class States

{

///创建新动作基础属性


//class AmovPercMevaSrasWrflDf_AmovpknlMstpSrasWrflDnon;

//class AmovPercMevaSrasWrflDfr_AmovpknlMstpSrasWrflDnon;

//class AmovPercMevaSrasWrflDfl_AmovpknlMstpSrasWrflDnon;


class P_anim_base: StandBase

{

actions = "RifleStandActions";

adjstance = "m";

aiming = "Empty";

aimingBody = "Empty";

aimPrecision = 1;

boundingSphere = 1;

camShakeFire = 1;

canBlendStep = 0;

canPullTrigger = 1;

canReload = 1;

collisionShape = "A3\anims_f\Data\Geom\Sdr\Perc_Wrfl.p3d";

collisionShapeSafe = "";

connectAs = "";

connectFrom[] = {};

ConnectTo[] = {};

disableWeapons = 0;

disableWeaponsLong = 0;

duty = 1;

enableAutoActions = 0;

enableBinocular = 1;

enableDirectControl = 1;

enableMissile = 0;

enableOptics = 1;

equivalentTo = "";

file = "\A3\anims_f\Data\Anim\Sdr\ovr\erc\stp\ras\rfl\AovrPercMstpSrasWrflDf";

forceAim = 1;

GetOutPara = "";

hasCollShapeSafe = 0;

head = "headDefault";

headBobMode = 2;

headBobStrength = -0.5;

idle = "idleDefault";

ignoreMinPlayTime[] = {"Unconscious"};

interpolateFrom[] = {};

InterpolateTo[] = {};

interpolateWith[] = {};

interpolationrestart = 1;

interpolationspeed = 200;

leaning = "Empty";

leaningFactorBeg = 1;

leaningFactorEnd = 1;

leaningFactorZeroPoint = -1;

leftHandIKBeg = 1;

leftHandIKCurve[] = {1};

leftHandIKEnd = 1;

legs = "Empty";

limitGunMovement = 1;

looped = 0;

minPlayTime = 0.69;

onLadder = 0;

onLandBeg = 0;

onLandEnd = 0;

preload = 0;

ragdoll = 0;

relSpeedMax = 1;

relSpeedMin = 0.5;

rightHandIKBeg = 1;

rightHandIKCurve[] = {1};

rightHandIKEnd = 1;

showHandGun = 0;

showItemInHand = 0;

showItemInRightHand = 0;

showWeaponAim = 1;

soundEdge[] = {0.4,0.75,0.9};

soundOverride = "crawl";

soundEnabled = 1;

speed = 0.6;

static = 1;

terminal = 0;

useIdles = 1;

variantAfter[] = {30,30,30};

variantsAI[] = {};

variantsPlayer[] = {};

visibleSize = 0.700121;

Walkcycles = 1;

weaponIK = 1;

weaponLowered = 0;

};

///创建新动作下一个动作为如下基础动作

class P_anim_base_rfl: P_anim_base

{

weaponIK = 0;

disableWeapons = 0;

//leftHandIKCurve[] = {0,0,0.5,1};

//rightHandIKCurve[] = {1,1,0.5,1};

connectTo[] = {};

connectFrom[] = {};

InterpolateTo[] = {"amovpercmstpsraswrfldnon",0.02,"amovpercmrunsraswrfldf",0.02,"amovpercmevasraswrfldf",0.02,"amovpercmtacsraswrfldf",0.02,"amovpercmwlksraswrfldf",0.02,"asswpercmstpsnonwnondnon",0.2};

interpolatefrom[] = {"amovpercmstpsraswrfldnon",0.02,"amovpercmrunsraswrfldf",0.02,"amovpercmevasraswrfldf",0.02,"amovpercmtacsraswrfldf",0.02,"amovpercmwlksraswrfldf",0.02,"asswpercmstpsnonwnondnon",0.2};

};



////重构回避动作后的连接动作

class P_Acts_CrouchingCoveringRifle01:P_anim_base_rfl

{

speed = 0.3;

file = "a3\anims_f\data\anim\sdr\cts\cts_crouchingcoveringrifle01.rtm";

//connectTo[] = {"AmovpknlMstpSrasWrflDnon",0.02};

InterpolateTo[] = {"Unconscious",0.02,"AmovpknlMstpSrasWrflDnon",0.02,"P_Acts_CrouchingCoveringRifle01",1};


};

class AmovPercMevaSrasWrflDf: SprintBaseDf

{

speed = 1.60971;

weaponIK = 1;

headBobStrength = 0.25;

duty = 1;

disableWeapons = 0;

disableWeaponsLong = 0;

collisionShape = "A3\anims_f\Data\Geom\Sdr\Perc_Wrfl_offset.p3d";

ConnectTo[] = {"AovrPercMrunSrasWrflDf",1.202};

InterpolateTo[] = {"AovrPercMstpSrasWrflDf",0.232,"AmovPercMrunSlowWrflDf",0.025,"AmovPercMwlkSrasWrflDf",0.025,"AmovPercMrunSrasWrflDf",0.025,"AmovPercMrunSrasWrflDf_ldst",0.025,"AmovPercMsprSlowWrflDf_AmovPpneMstpSrasWrflDnon",0.02,"AmovpknlMevaSrasWrflDf",0.025,"AmovPercMevaSlowWrflDf",0.02,"Unconscious",0.02,"P_AmovPercMevaSrasWrflDf_AmovpknlMstpSrasWrflDnon",0.02,"AmovPercMtacSrasWrflDf",0.02,"AmovPercMtacSrasWrflDfl",0.02,"AmovPercMtacSrasWrflDfr",0.02,"AmovPercMstpSrasWrflDnon",0.02,"AmovPercMevaSrasWrflDfl",0.02,"AmovPercMevaSrasWrflDfr",0.02,"AmovPercMrunSrasWrflDf",0.025,"AmovPercMrunSrasWrflDf",0.025};

};



class P_AmovPercMevaSrasWrflDf_AmovpknlMstpSrasWrflDnon: AmovPercMevaSrasWrflDf

{ interpolationRestart = 1;

aiming = "aimingDefault";

aimingBody = "aimingUpDefault";

looped = 0;

file = "a3\anims_f\data\anim\sdr\mov\erc\spr\low\rfl\amovpercmsprsraswrfldf_amovpknlmstpsraswrfldnon.rtm";

speed = 1.3;

limitGunMovement = 1;

ConnectTo[] = {"AmovpknlMstpSrasWrflDnon",0.02};

InterpolateTo[] = {};


};

class P_AmovPercMevaSrasWrflDfr_AmovpknlMstpSrasWrflDnon: P_AmovPercMevaSrasWrflDf_AmovpknlMstpSrasWrflDnon

{

file = "a3\anims_f\data\anim\sdr\mov\erc\spr\low\rfl\amovpercmsprsraswrfldfr_amovpknlmstpsraswrfldnon.rtm";

speed = 0.9;

};

class P_AmovPercMevaSrasWrflDfl_AmovpknlMstpSrasWrflDnon: P_AmovPercMevaSrasWrflDf_AmovpknlMstpSrasWrflDnon

{

file = "a3\anims_f\data\anim\sdr\mov\erc\spr\low\rfl\amovpercmsprsraswrfldfl_amovpknlmstpsraswrfldnon.rtm";

speed = 0.9;

};


class AmovPercMevaSrasWrflDfr: AmovPercMevaSrasWrflDf

{

file = "a3\anims_f\data\anim\sdr\mov\erc\spr\low\rfl\amovpercmsprslowwrfldfr.rtm";

actions = "RifleStandEvasiveActionsFR";

InterpolateTo[] = {"AmovPercMstpSrasWrflDnon",0.02,"P_AmovPercMevaSrasWrflDfr_AmovpknlMstpSrasWrflDnon",0.02,"AmovPercMrunSlowWrflDfr",0.025,"AmovPercMwlkSrasWrflDfr",0.025,"AmovPercMrunSrasWrflDfr_ldst",0.025,"AmovPercMrunSrasWrflDr",0.05,"AmovPercMrunSrasWrflDfr",0.025,"AmovPercMsprSlowWrflDf_AmovPpneMstpSrasWrflDnon",0.02,"AmovpknlMevaSrasWrflDfr",0.025,"AmovPercMevaSlowWrflDfr",0.025,"AmovPercMevaSrasWrflDfl",0.02,"Unconscious",0.02,"AmovPercMevaSrasWrflDf",0.02,"AmovPercMtacSrasWrflDf",0.02,"AmovPercMtacSrasWrflDfl",0.02,"AmovPercMtacSrasWrflDfr",0.02,"AmovPercMevaSrasWrflDr",0.025};

};

class AmovPercMevaSrasWrflDfl: AmovPercMevaSrasWrflDf

{

relSpeedMax = 1.1;

file = "a3\anims_f\data\anim\sdr\mov\erc\spr\low\rfl\amovpercmsprslowwrfldfl.rtm";

actions = "RifleStandEvasiveActionsFL";

InterpolateTo[] = {"AmovPercMstpSrasWrflDnon",0.02,"P_AmovPercMevaSrasWrflDfl_AmovpknlMstpSrasWrflDnon",0.02,"AmovPercMrunSlowWrflDfl",0.025,"AmovPercMwlkSrasWrflDfl",0.025,"AmovPercMrunSrasWrflDfl",0.025,"AmovPercMrunSrasWrflDl",0.05,"AmovPercMrunSrasWrflDfl_ldst",0.025,"AmovPercMsprSlowWrflDf_AmovPpneMstpSrasWrflDnon",0.02,"AmovpknlMevaSrasWrflDfl",0.025,"AmovPercMevaSlowWrflDfl",0.025,"Unconscious",0.02,"AmovPercMevaSrasWrflDf",0.02,"AmovPercMevaSrasWrflDfr",0.02,"AmovPercMtacSrasWrflDf",0.02,"AmovPercMtacSrasWrflDfl",0.02,"AmovPercMtacSrasWrflDfr",0.02,"AmovPercMevaSrasWrflDl",0.025};

};


};

};


本文为我原创

本文禁止转载或摘编

-- --
  • 投诉或建议
评论