Page 1 of 1

Melee?

Posted: Fri Jan 14, 2011 12:18 am
by Press_Tilty
Hey, I'm back! Did'ja miss me?

I'm just wrapping up a project, and I'm putting up a WIP soon. But I was just curious, would it be possible to map a punching anim to the crouch button (who crouches, anyway?) to some sort of melee attack?

Obviously you can change the anim, but what about damage?

Re: Melee?

Posted: Fri Jan 14, 2011 8:06 am
by THEWULFMAN
Press_Tilty wrote:Hey, I'm back! Did'ja miss me?

I'm just wrapping up a project, and I'm putting up a WIP soon. But I was just curious, would it be possible to map a punching anim to the crouch button (who crouches, anyway?) to some sort of melee attack?

Obviously you can change the anim, but what about damage?
Obviously you can change the anim,
Sorta, but it would not work properly. Yes
but what about damage?
Sorry, but uh in regard to the damage.
no

Re: Melee?

Posted: Fri Jan 14, 2011 9:48 am
by Fiodis
THEWULFMAN wrote:
Obviously you can change the anim,
Sorta, but it would not work properly. Yes
but what about damage?
Sorry, but uh in regard to the damage.
no
If you're using a combo, actually it's yes to both of those. Look at Maul's kick for an example of a melee attack like that.

Re: Melee?

Posted: Fri Jan 14, 2011 3:43 pm
by THEWULFMAN
Fiodis wrote:
THEWULFMAN wrote:
Obviously you can change the anim,
Sorta, but it would not work properly. Yes
but what about damage?
Sorry, but uh in regard to the damage.
no
If you're using a combo, actually it's yes to both of those. Look at Maul's kick for an example of a melee attack like that.
True, but thats not what he asking. He wants to turn the crouch button into a melee attack button, which you can not do that.

Re: Melee?

Posted: Fri Jan 14, 2011 5:21 pm
by Fiodis
Fiodis wrote:If you're using a combo, actually it's yes to both of those.
In other words, you can turn the crouch button into an attack button.

Re: Melee?

Posted: Fri Jan 14, 2011 7:04 pm
by THEWULFMAN
Fiodis wrote:
Fiodis wrote:If you're using a combo, actually it's yes to both of those.
In other words, you can turn the crouch button into an attack button.
Really, hmm, maybe you are right. I guess the .combo does have some control over crouch as your lightsaber disapears when you crouch. Idk. I will believe it when I see it. Sorry for the slight misunderstanding Fiodis. "runs off to look into this" :runaway:

Re: Melee?

Posted: Sat Jan 15, 2011 10:21 am
by Fiodis
No, no, it's my fault as well. I should have clarified. Sorry about that.

In the combo you can set various buttons to trigger transitions from one state to the next. An example would be the following:

Code: Select all

    Transition("ATTACK1")
    {
        If()
        {
            Break();    // all transitions are breaking if Duration is 0
            Posture("Stand", "Crouch");
            Button("Fire", "Press");
        }
    }
This would be in a Jedi's idle state, and it's telling the game that when you press the primary fire button you transition to the ATTACK1 state (first saber swing). You can replace any transition button with any of the following:

Code: Select all

Fire
FireSecondary
Jump
Sprint
Crouch
Reload ---> This one has doubtful effects.  It's worked sometimes when I've tried it, but not every time - maybe whether or not the unit has a gun as well as a melee weapon affects this.
FireBoth (Fire and FireSecondary together)
The second parameter in the Button(); part of the transition is how you press the button. Options for that are:

Code: Select all

Tap
DoubleTap
Hold (Button pressed, held down briefly, then released)
Down (Whenever the button is down; this can pass for all other types)
I've used these before to make a superjedi with a fair arsenal of hidden attacks to suddenly unleash. :P Only he couldn't jump or crouch or run, but who needs that when you can suddenly go into lightsaber-porcupine mode?

Re: Melee?

Posted: Sat Jan 15, 2011 3:23 pm
by THEWULFMAN
This is awesome, I am getting better at .combo files, I will experiment around with this, should be fun. what idiot ever crouches as a jedi :plokoon: anyway, only infantry need to do that. :clone: