ivailogeimara
New member
I imported a gun, into the game, with animations for fire and reload but a perk that increases reload speed messes up the animation of the gun because the animation is timed for normal reload speed and plays for longer than the actual reload. Is there a way to speed up animations based on stat modifiers (perk, etc)?
My items.xml:
I basically replaced the model of the normal pistol instead of adding another one.
My items.xml:
Code:
<configs>
<set xpath="/items/item[@name='gunPistol']/property[@name='Meshfile']/@value">#@modfolder:Resources/M12Nova.unity3d?M12NovaPrefab</set>
<set xpath="/items/item[@name='gunPistol']/property[@name='CrosshairOnAim']/@value">false</set>
<set xpath="/items/item[@name='gunPistol']/property[@class='Action0']/property[@name='Sound_start']/@value">M12NovaFire</set>
<set xpath="/items/item[@name='gunPistol']/property[@class='Action1']/property[@name='ScopeCameraOffset']/@value">0,.025,0</set>
<append xpath="/items/item[@name='gunPistol']/effect_group[@name='gunPistol']">
<triggered_effect trigger="onSelfPrimaryActionStart" action="AnimatorFireTrigger" target="self" property="WeaponFire" value=""/>
<triggered_effect trigger="onReloadStart" action="AnimatorFireTrigger" target="self" property="TReload" value=""/>
</append>
</configs>