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.
[10:41 am]
v9bettel -- Nice
[01:39 am]
Ultraviolet -- no u elky skeleton guy, I'll use em better
[10:50 pm]
Vrael -- Ultraviolet
Ultraviolet shouted: How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
hey cut it out I'm getting all the minerals
[10:11 pm]
Ultraviolet -- :P
[10:11 pm]
Ultraviolet -- How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
[2024-4-17. : 11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- if i don't gamble them away first
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- o, due to a donation i now have enough minerals to send you minerals
[2024-4-17. : 3:26 am]
O)FaRTy1billion[MM] -- i have to ask for minerals first tho cuz i don't have enough to send
[2024-4-17. : 1:53 am]
Vrael -- bet u'll ask for my minerals first and then just send me some lousy vespene gas instead
Please log in to shout.


Members Online: Roy, Dem0n