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:02 am]
Oh_Man -- whereas just "press X to get 50 health back" is pretty mindless
[05:02 am]
Oh_Man -- because it adds anotherr level of player decision-making where u dont wanna walk too far away from the medic or u lose healing value
[05:01 am]
Oh_Man -- initially I thought it was weird why is he still using the basic pre-EUD medic healing system, but it's actually genius
[03:04 am]
Ultraviolet -- Vrael
Vrael shouted: I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
With the modern EUD editors, I don't think they're calculating nearly as many offsets as you might imagine. Still some fancy ass work that I'm sure took a ton of effort
[12:51 am]
Oh_Man -- definitely EUD
[09:35 pm]
Vrael -- I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
[09:35 pm]
Vrael -- that is insane
[09:35 pm]
Vrael -- damn is that all EUD effects?
[2024-5-04. : 10:53 pm]
Oh_Man -- https://youtu.be/MHOZptE-_-c are yall seeing this map? it's insane
[2024-5-04. : 1:05 am]
Vrael -- I won't stand for people going around saying things like im not a total madman
Please log in to shout.


Members Online: jjf28