Looping Animations

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
broomfighter

Looping Animations

Post by broomfighter »

How do you make an animation loop? I changed mauls deflect anim to his dashattack one and it played, just only once
i tried adding loop(1) and restartanimation(1) to the state, but no luck
heres the important part

Code: Select all

State("DEFLECT")
{
    Posture("Stand");
    Sound("imp_weap_lightsabre_block");
    Animation("stand_dashattack")
    {
        Loop(1);
        AimType("None");
        BlendInTime(0.15);
        BlendOutTime(0.15);
        LowResPose(0, "Frames");
    }
    RestartAnimation();

    Duration(0.0);  // infinite duration, looping anim

    InputLock(0.0, "All", "!Thrust");   // lock all but move controller for duration of state
    EnergyRestoreRate(0.0);   // drain energy while ready to deflect
    Deflect()
    {
        DeflectAngle(-60, 60);  // deflect anything from forward arc
        EnergyCost(10.0);

        DeflectAnimation("stand_dashattack", "Forward")
        {
            // AimType("Torso");
            BlendInTime(0.00);
            BlendOutTime(0.05);
            LowResPose(5, "Frames");
        }
        DeflectAnimation("stand_dashattack", "Forward")
        {
            // AimType("Torso");
            BlendInTime(0.00);
            BlendOutTime(0.05);
            LowResPose(5, "Frames");
        }
        DeflectAnimation("stand_dashattack", "Left")
        {
            // AimType("Torso");
            BlendInTime(0.00);
            BlendOutTime(0.05);
            LowResPose(5, "Frames");
        }
        DeflectAnimation("stand_dashattack", "Left")
        {
            // AimType("Torso");
            BlendInTime(0.00);
            BlendOutTime(0.05);
            LowResPose(5, "Frames");
        }
        DeflectAnimation("stand_dashattack", "Right")
        {
            // AimType("Torso");
            BlendInTime(0.00);
            BlendOutTime(0.05);
            LowResPose(5, "Frames");
        }
        DeflectAnimation("stand_dashattack", "Right")
        {
            // AimType("Torso");
            BlendInTime(0.00);
            BlendOutTime(0.05);
            LowResPose(5, "Frames");
        }
    }
Qdin
Old School Staff
Posts: 2059
Joined: Wed Feb 23, 2005 9:54 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

RE: Looping Animations

Post by Qdin »

why would you have it to loop..?

That'll just mean that this single animation will be played until another one is activated, right? imagine to loop the landing animation :roll: when he stands still it plays this animation over and over again... May I ask again - why, you wanna loop a deflect animation to his dashattack?
broomfighter

Post by broomfighter »

Ever played Shaakti?
lol
I ended up just using her combo
though it still isnt working right
Caleb1117
2008 Most Original Avatar
Posts: 3096
Joined: Sun Aug 20, 2006 5:55 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: X-Fire: caleb1117 ಠ_ಠ

Post by Caleb1117 »

Ah Shaak Ti Awsomeness.
I can't help you really, but If you figure something out to make that work, I would very much like it for my map.
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Post by Teancum »

Shaak Ti used custom animations I was asked not to release. The best thing you can do is just have her use someone else's combo since there's no decent animations for deflecting.
broomfighter

Post by broomfighter »

o im not doing this for shaak ti
im doing this for a magnaguard with electrostaff
Syth
General
General
Posts: 784
Joined: Thu Apr 13, 2006 8:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: happy fun island

Post by Syth »

*MODERATOR EDIT* --- Don't make assumptions that can get others in trouble.
ARC_Commander
High General
High General
Posts: 838
Joined: Tue Feb 06, 2007 7:18 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by ARC_Commander »

Hmm... It could be someone who I helped alienate from GT... :( He worked for LA.
Qdin
Old School Staff
Posts: 2059
Joined: Wed Feb 23, 2005 9:54 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Qdin »

if you're talking about Fred I have my doubts... I know that because I talk to him myself :P And he doesn't have much understanding of animations, and if I remember right there's more than him around who worked for Pandemic and/or LA:wink: Nonetheless, the final fact is that it won't be release.

Ever got the respond to your question(s), broomfighter?
Post Reply