How to unlock upgrades?
aeroripper
Join Date: 2005-02-25 Member: 42471NS1 Playtester, Forum Moderators, Constellation
in Modding
Comments
function MarineTeam:InitTechTree()
Marine_Server.lua
function Marine:InitWeapons() to give marine cetrain granades with spawning
Balance.lua if you just want to change researchtime and cost
Replace the:
self.techTree:AddResearchNode(kTechId.GrenadeTech, kTechId.Armory, kTechId.None)
self.techTree:AddTargetedBuyNode(kTechId.ClusterGrenade, kTechId.GrenadeTech)
self.techTree:AddTargetedBuyNode(kTechId.GasGrenade, kTechId.GrenadeTech)
self.techTree:AddTargetedBuyNode(kTechId.PulseGrenade, kTechId.None)
- codeline with:
self.techTree:AddResearchNode(kTechId.GrenadeTech, kTechId.None, kTechId.None)
self.techTree:AddTargetedBuyNode(kTechId.ClusterGrenade, kTechId.None)
self.techTree:AddTargetedBuyNode(kTechId.GasGrenade, kTechId.None)
self.techTree:AddTargetedBuyNode(kTechId.PulseGrenade, kTechId.None)
that should do it...
http://steamcommunity.com/sharedfiles/filedetails/?id=204003592&searchtext=
Also another question:
^ I've edited that line and added the "self:GiveItem(ClusterGrenade.kMapName)" in Marine_Server.lua to give a cluster grenade when spawning as marine. For some reason it doesn't work? That should be the proper call after looking in the clustergrenade.lua. It does occasionally spawn an exploding cluster grenade though.
Try ClusterGrenadeThrower.kMapName instead, ClusterGrenade is the projectile itself.