做了一个回旋镖武器,效果是丢出一个飞盘,飞盘沿着一个近似椭圆形的路径飞行,最飞行路径上的单位造成伤害,最后回到发射点。
1.5之前效果还是正常的,1.5之后就出了一个奇怪的问题。
如上图,从造成伤害的情况来看,逻辑上飞盘还是沿着红色路径飞行的,
但是在视觉效果上,飞盘却奇葩地沿着白色路径飞了一圈。
不知道问题是出来演算体上还是移动器上,
多次尝试了修改了移动器、发射效果还有发射动作演算体,发现无论移动器中把投掷方向改成任意方向,飞盘视觉上都是从左侧发射出来,
所以我比较倾向问题是出在演算体上,但始终没能找到解决办法,求高人指点~~~
下面把这个武器的移动器、发射效果还发射动作演算体贴出来,
[codes=xml]     <CMoverMissile id="M_Tower_Energy4Missile">
        <HeightMap value="Air"/>
        <MotionPhases>
            <Driver value="Throw"/>
            <Speed value="20"/>
            <ArrivalTestType value="2D"/>
            <Outro value="2,4"/>
            <ThrowVector value="-0.4,-1,0"/>
            <ThrowBandYaw value="-360,-360,-360,-360"/>
            <ThrowBandPitch value="-360,-360,-360,-360"/>
            <YawPitchRoll value="209.8828,0,119.8828"/>
        </MotionPhases>
        <MotionPhases>
            <Driver value="Throw"/>
            <Speed value="20"/>
            <ArrivalTestType value="2D"/>
            <Outro value="5,7"/>
            <ThrowVector value="0.5,-1,0"/>
            <ThrowBandYaw value="-360,-360,-360,-360"/>
            <ThrowBandPitch value="-360,-360,-360,-360"/>
            <YawPitchRoll value="209.8828,0,119.8828"/>
        </MotionPhases>
        <MotionPhases>
            <Driver value="Guidance"/>
            <Acceleration value="-3"/>
            <MinSpeed value="5"/>
            <ArrivalTestType value="2D"/>
            <Outro value="-1,-0.5"/>
            <ThrowBandYaw value="-360,-360,-360,-360"/>
            <ThrowBandPitch value="-360,-360,-360,-360"/>
            <YawPitchRoll value="209.8828,0,119.8828"/>
        </MotionPhases>
        <MotionPhases>
            <ArrivalTestType value="2D"/>
            <ThrowBandYaw value="-360,-360,-360,-360"/>
            <ThrowBandPitch value="-360,-360,-360,-360"/>
            <YawPitchRoll value="5759.6484"/>
        </MotionPhases>
    </CMoverMissile>
    <CEffectLaunchMissile id="ELaunch_Tower_Energy4">
        <EditorCategories value="Race:Protoss"/>
        <ImpactLocation Value="SourceUnit"/>
        <LaunchEffect value="EPersistent_Tower_Energy4"/>
        <AmmoUnit value="U_Tower_Energy4Missile"/>
    </CEffectLaunchMissile>
    <CActorAction id="AAction_Tower_Energy4Weapon" parent="GenericAttackBase">
        <On Terms="Effect.EDamage_Tower_Energy4.Start; At Caster" Send="Create"/>
        <On Terms="Effect.ELaunch_Tower_Energy4.Start; At Caster" Send="Create"/>
        <LaunchAssets Model="ZeratulAttackLaunch" Sound="Zeratul_AttackLaunch"/>
        <ImpactMap index="None" Model="" Sound="Zealot_AttackImpact" ModelReaction=""/>
        <LaunchAttachQuery Methods="AMFilterWeaponRight"/>
        <Missile value="U_Tower_Energy4Missile"/>
    </CActorAction>
[/codes] |