fireConstraintType "ResearchSubject"?

I noticed the "fireConstraintType" variable in the files, but the only states of it I found are "StarBaseUpgradeLevel" followed by "requiredStarBaseWeaponLevel 2" on Starbase weapons 2 and 3 and "CanAlwaysFire" on everything else.

Is there any parameter for fireConstraintType to allow me to do something like this?

fireConstraintType "prerequisitResearch"

Researchsubject_weapondamage_wave0

Level 1

So in words instead of code, I want to do something like with the Starbases, but instead of weapons being inactive untill a certain upgrade, they should be inactive untill a certain subject was researched.

4,043 views 3 replies
Reply #2 Top

As the wiki suggests, it's most definitely possible.  I think that the Tech Hangar Defense entity file will have what you need if you're looking for an example. 

Reply #3 Top

Ah... completely forgot about the TEC Hangar.

Thanks for pointing it out :) . It works just the way I hoped.

If anyone's interrested here's the code:

fireConstraintType "Research"
    researchPrerequisites
        NumResearchPrerequisites 1
        ResearchPrerequisite
            Subject "RESEARCHSUBJECT_WEAPONDAMAGE_WAVE0"
            Level 1