Combo issue

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
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

Combo issue

Post by Fiodis »

I'm trying to make a single attack cost some energy. I've tried putting the EnergyCost line in the Damage section, but that didn't do anything. My latest setup doesn't work either, though, I'm afraid. How could I set it up so that it works?
Hidden/Spoiler:
[code]State("ATTACK1_LIGHT")
{
Posture("Stand");
Animation("stand_attack1a");
Sound("saber_swing");


InputLock("All", "!Thrust");
AlignedToThrust();
AnimatedMove() // animation controls velocity for entire state
{
VelocityZ(2.0);
VelocityX(0.0);
VelocityFromThrust(1.0);
VelocityFromStrafe(1.0);
}
AlignedToThrust();

Deflect()
{
DeflectAngle(-0, 0); // deflect nothing
EnergyCost(10.0);
}

Attack()
{
DamageTime(5, 9, "Frames");
DamageLength(1.5);
DamageWidth(0.75);
Damage(300);
Push(3.0);
}

Transition("ATTACK2_LIGHT")
{
If()
{
TimeStart(5, "Frames");
TimeEnd(16, "Frames");
Energy(">=", 10); // At least one swing.
Posture("Stand");
Button("Fire", "Press");
}
}
Transition("RECOVER1");
}[/code][/size]
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Combo issue

Post by Maveritchell »

Put your EnergyCost inside your Transition brackets. You'll need to add brackets for the Recover1 transition so that you have a place to put it there.
Post Reply