Fighter Spawning

Guh. Anyone know of a way to allow the TEC to spawn fighters as a special ability?

I had gone hunting in the .entity files for something equivalent to the SpawnFrigate command, and to my horror found that the Vasari Scramble Bombers thing is a seperate, specific command. Likewise, there are specific commands for the Adept Anima Aura and the rest...

Any ideas?

5,105 views 5 replies
Reply #1 Top

buffInstantActionType - CreateSquad

Reply #2 Top

...Aha, yes, that would do it. Clearly, I'm getting too tired. :)

Hm. How would one rig that to, say, spawn multiple fighters - or come as part of another Ability file?

Reply #3 Top

So, there is two different starts to make a new ability:

1. You know that there is a very similar existing ability (Scramble Bombers) to what you want, so you check it out, on which ship is it in the game, after that you open that ship's or module's entity file and find that ability. Now you know the code name of it (AbilitySpawnSquad).

2. You don't know a similar ability so you go to the Bailknight's post (https://forums.sinsofasolarempire.com/306405) and you check the buffs, maybe there is a command for what you need, and that's how I find the CreateSquad comand. After you know the command you need an example, so you don't freeze the game with a wrong ability. Run the 'Windows Grep', this program can search in files. And after that I find the AbilitySpawnSquad.entity.

In this case this ability is almost perfect, the only bad in it the lifetime limit (expiryTime) of the squadrons. You have to reset it. I think you want no time limit, so modify the values to '-1.000000' what represents the infinite.

Sorry for my first (really short) reply, but after this you can make new ability with such a few info I hope :grin:

Reply #4 Top

Aye, I looked at Scramble Bombers. Unfortunately, my question was poorly worded.

What I'm after is the ability to spawn multiple squadrons of fighters, dependant on the level of the ability. Making a single squad looks straightforward enough; I'm now pondering getting it to spawn several.

Part of this is probably that I'm just too tired - programming homework is killing my brain, but I'd feel better knowing how to do it anyway. ;)

Reply #5 Top

add multiple time the spawning command in the entity file

 

if that don't work create a buf that spawn an habilitie and create an other buff that do the same until you have the desired number of fighter