Melee?

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
Press_Tilty
Chief Warrant Officer
Chief Warrant Officer
Posts: 331
Joined: Fri Jun 04, 2010 10:57 pm
Projects :: Korsava IV - Pre WIP
Games I'm Playing :: MW2-Reach-BF2
Location: Seattle Area

Melee?

Post 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?
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: Melee?

Post 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
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Melee?

Post 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.
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: Melee?

Post 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.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Melee?

Post 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.
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: Melee?

Post 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:
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Melee?

Post 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?
Last edited by Fiodis on Fri Feb 18, 2011 9:02 pm, edited 1 time in total.
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: Melee?

Post 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:
Post Reply