Need help with a simple mod
My mod needs to do 4 things.
1. Make it so some structures can never be built.
2. Make it so all tech is researched when the game starts.
3. Make it so some structures cannot be damaged.
4. Make it so resource nodes produce res at a faster rate.
Which lua files must i edit to accomplish this?
1. Make it so some structures can never be built.
2. Make it so all tech is researched when the game starts.
3. Make it so some structures cannot be damaged.
4. Make it so resource nodes produce res at a faster rate.
Which lua files must i edit to accomplish this?
Comments
In AlienCommander.lua and MarineCommander.lua you can find the buttons. Remove the button and they won't be able to build them. Eg gAlienMenuButtons
To simulate research being done, remove the requirement from techdata and remove the research button from its structures lua.
For making something immune to damage, you can probably add a function to the structures lua: ComputeDamageOverride. Have it return 0.
For res, look at Balance.lua:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->kResourceTowerResourceInterval = 6
kTeamResourcePerTick = 1
kPlayerResPerInterval = 0.125<!--c2--></div><!--ec2-->
This is per harvester.
Hope that helps.