Combo special attack

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
darthhalv
Private First Class
Posts: 88
Joined: Sun Dec 05, 2010 8:40 am
Projects :: No Mod project currently.
Games I'm Playing :: starwarsbattlefront2

Combo special attack

Post by darthhalv »

Hi I wonder how I should edit my combo file to make it so the 3rd attack of the combo only works if your energy is full?
jedimoose32
Field Commander
Field Commander
Posts: 938
Joined: Thu Jan 24, 2008 12:41 am
Projects :: Engineering Degree
Location: The Flatlands of Canada

Re: Combo special attack

Post by jedimoose32 »

Code: Select all

Transition("ATTACK3")
    {
        If()
        {
	    Break(10, "Frames");
            TimeStart(6, "Frames");
            TimeEnd(16, "Frames");   //, "SyncIfOvertime");
            Posture("Stand");
            Energy(">=", 2.5);  // at least half a second worth of deflect time
            Button("Fire", "Press");
        }
    }
This is the code that I would work off of. It's cut-and-pasted from a couple sections of Obi-Wan's combo file so it may not be exactly right for what you need. Substitute 2.5 under the Energy section for whatever your characters max energy bar number is, and of course make sure all the other frame information is in line with your animations.

--edited to provide more clarity and a better code example--
darthhalv
Private First Class
Posts: 88
Joined: Sun Dec 05, 2010 8:40 am
Projects :: No Mod project currently.
Games I'm Playing :: starwarsbattlefront2

Re: Combo special attack

Post by darthhalv »

I'll try it thanks.
EDIT: It didn't work
Post Reply