Need help with a simple mod

TekoTeko Join Date: 2012-11-29 Member: 173634Members
edited November 2012 in Modding
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?

Comments

  • TimMcTimMc Join Date: 2012-02-06 Member: 143945Members
    edited December 2012
    Unsurprisingly, alot of this is in TechData.lua. Removing requirements for buying and building stuff there.

    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.
Sign In or Register to comment.