Staredit Network > Forums > Modding Assistance > Topic: Need help with some abilities
Need help with some abilities
Apr 14 2014, 7:59 am
By: Arkane  

Apr 14 2014, 7:59 am Arkane Post #1

Poopies. Just Poopies.

I wanted to give the corsair the ability to go super fast. So I thought I'd give him an afterburner esque ability. But then I realized that I have absolutely no idea how to make a new ability.

Basically, if the afterburners are off, the corsair can attack.


However, if the afterburners are on, the corsair CANNOT attack but flies really fast.


If I turned the afterburners off, the corsair gets to attack again.

How do I make that work?

Another thing is that I kinda want the Reaver to act like an actual artillery unit. It still has to build scarabs for ammo though. The thing is, how do I make the scarabs appear on the target and not on the attacker?



Sort of wish that the SCBW Modding Community was still active. </3

Apr 14 2014, 7:47 pm Sand Wraith Post #2

she/her

_AFTERBURNERS_

I don't remember if the old Valkyrie Afterburners was actually fully implemented. If they were, you might be able to implement your idea simply by correctly setting properties through Firegraft.

Otherwise: use Firegraft to set up the buttons such that it mimics the Cloak button to the extent that once you activate the Afterburners, the button set remains correct throughout the Corsair's life (ex. activating Afterburners, select a Probe, and then selecting the Corsair again shows the Corsair with the Deactivate Afterburners button).

Then, through a plugin, detect the activation of the Afterburners and the deactivation. When activating, you can try to set the Corsair's flingy or sprite properties (I don't remember which will be more relevant -- check sprites.dat and flingy.dat) so that the top speed or acceleration or so on for the Corsair is at some high value. Also set a flag for that Corsair such that it will be unable to attack (one of the bit fields in the UNIT struct will correspond to this effect -- it should be documented in the GPTP).

Conversely, when deactivating, set the top speed or acceleration back to the default value. Also revert the Corsair's attack flag. (Be aware that other property-changing abilities may conflict with this method of preventing attacks if you use the standard bit field instead of setting up a new, custom flag that runs in parallel to the standard UNIT struct. Or something.)




Apr 15 2014, 8:16 am Raygoza Post #3



By the way, do you want the corsair to be unable to attack while afterburners are on or do you want to deactivate afterburners once the corsair attacks while using afterburners?



None.

Apr 15 2014, 1:52 pm Arkane Post #4

Poopies. Just Poopies.

Quote from Raygoza
By the way, do you want the corsair to be unable to attack while afterburners are on or do you want to deactivate afterburners once the corsair attacks while using afterburners?

The first one. I want the corsair to lose its ability to attack when the AB's are on. But the corsair gets it back when its off.



Sort of wish that the SCBW Modding Community was still active. </3

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[05:19 pm]
NudeRaider -- when in doubt, Amazon
[05:11 pm]
Vrael -- hey does anyone know where I might be able to get a de-humidifer somewhere in the united kingdom?
[03:27 am]
m.0.n.3.y -- Maybe because it's an EUD map?
[03:27 am]
m.0.n.3.y -- Can't upload maps to the DB. Error says "The action you have performed caused an Error". Any word?
[2024-4-25. : 7:46 am]
RIVE -- :wob:
[2024-4-22. : 6:48 pm]
Ultraviolet -- :wob:
[2024-4-21. : 1:32 pm]
Oh_Man -- I will
[2024-4-20. : 11:29 pm]
Zoan -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
You should do my Delirus map too; it's a little cocky to say but I still think it's actually just a good game lol
[2024-4-20. : 8:20 pm]
Ultraviolet -- Goons were functioning like stalkers, I think a valk was made into a banshee, all sorts of cool shit
[2024-4-20. : 8:20 pm]
Ultraviolet -- Oh wait, no I saw something else. It was more melee style, and guys were doing warpgate shit and morphing lings into banelings (Infested terran graphics)
Please log in to shout.


Members Online: jun3hong, NudeRaider, Vrael