Freedom Reborn

Freedom Force Forums => Scripting Forum => Topic started by: TaskMasterX on February 24, 2009, 10:32:54 PM

Title: Flying Melee Scripted
Post by: TaskMasterX on February 24, 2009, 10:32:54 PM
Here's my version of a scripted flying melee. The command appears only on flying targets and when executed the code basically chases down the target and when it's close enough it uses a custom melee power in FFEdit with the Airborne Targets Only flag selected. Because it is a melee power the game is always going to try to force the character to land. The trick is to get the character close enough and to execute the attack fast enough before the target flies out of range. I've been able to nail down the instances where the character lands when trying to execute the attack. They are:
a.) when the target flies out of range of the melee power before all contacts are triggered.
b.) when the target is on a different Z coordinate than the attacker when the power is triggered.

To counter theses two instances you need to (a) choose a melee power that has a fast contact time in the animation. If there are multiple contacts, you run a higher risk of being force to land if the last contact takes to long and (b) try to get to the same height as the target before clicking on the command to attack.

I added in a bit of code to force the character back into the air if they land.

Even though this isn't 100% (I doubt it ever will be considering how the game handles using melee attacks in the air) it's almost there and it's probably alot easier than using my other method and hexing keyframes.

I also included another attribute that is meant to be used by giants and gargantuan characters - Swat Fliers. It works on the same principle as the flying melee attribute but without the worries of being forced to land. The giants basically run up to a flying target and execute a melee power in FFEdit with the Airborne Targets Only flag selected.

Here's the code for ffx.py:
Title: Re: Flying Melee Scripted
Post by: tommyboy on February 24, 2009, 10:37:55 PM
Excellent!
I'll have to try this out when I've time.
Title: Re: Flying Melee Scripted
Post by: Xenolith on March 23, 2009, 11:59:04 PM
Didn't work?
Title: Re: Flying Melee Scripted
Post by: Ash4fire on April 30, 2009, 08:15:41 PM
Quote from: TaskMasterX on February 24, 2009, 10:32:54 PM
Here's my version of a scripted flying melee. The command appears only on flying targets and when executed the code basically chases down the target and when it's close enough it uses a custom melee power in FFEdit with the Airborne Targets Only flag selected. Because it is a melee power the game is always going to try to force the character to land. The trick is to get the character close enough and to execute the attack fast enough before the target flies out of range. I've been able to nail down the instances where the character lands when trying to execute the attack. They are:
a.) when the target flies out of range of the melee power before all contacts are triggered.
b.) when the target is on a different Z coordinate than the attacker when the power is triggered.

To counter theses two instances you need to (a) choose a melee power that has a fast contact time in the animation. If there are multiple contacts, you run a higher risk of being force to land if the last contact takes to long and (b) try to get to the same height as the target before clicking on the command to attack.

I added in a bit of code to force the character back into the air if they land.

Even though this isn't 100% (I doubt it ever will be considering how the game handles using melee attacks in the air) it's almost there and it's probably alot easier than using my other method and hexing keyframes.

I also included another attribute that is meant to be used by giants and gargantuan characters - Swat Fliers. It works on the same principle as the flying melee attribute but without the worries of being forced to land. The giants basically run up to a flying target and execute a melee power in FFEdit with the Airborne Targets Only flag selected.

Here's the code for ffx.py:


does it work ???
Title: Re: Flying Melee Scripted
Post by: cmdrkoenig67 on April 30, 2009, 11:45:39 PM
I must be getting blind in my old age, but I don't see any code posted above.

Dana  :huh:
Title: Re: Flying Melee Scripted
Post by: Grayve on May 03, 2009, 01:21:18 AM
Quote from: cmdrkoenig67 on April 30, 2009, 11:45:39 PM
I must be getting blind in my old age, but I don't see any code posted above.

Dana  :huh:

Ditto  :blink:
Title: Re: Flying Melee Scripted
Post by: The Hitman on May 04, 2009, 07:40:27 PM
It's here if youalls want it:

http://taskmasterx.synthasite.com/flying-melee-scripted.php
Title: Re: Flying Melee Scripted
Post by: Ash4fire on May 05, 2009, 06:03:46 AM
cool i have to try it in Rumble Room !!!!
Title: Re: Flying Melee Scripted
Post by: garf35 on July 15, 2009, 08:39:42 AM
Dang, was just getting around to trying this and TaskmasterX's site seems to be down for the moment.