Gorge to Build Harvesters?
Soul_Rider
Mod Bean Join Date: 2004-06-19 Member: 29388Members, Constellation, Squad Five Blue

Devs recently said on twitter that the gorge will be getting a new ability and 2 more structures.
While trying to get rid of most of the NS2 code for my mod I discovered this in the tech data code for alerts....
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->[kTechDataId] = kTechId.AlienAlertGorgeBuiltHarvester,<!--c2--></div><!--ec2-->
Is the Gorge going to be able to build harvesters again? I really hope so :)
While trying to get rid of most of the NS2 code for my mod I discovered this in the tech data code for alerts....
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->[kTechDataId] = kTechId.AlienAlertGorgeBuiltHarvester,<!--c2--></div><!--ec2-->
Is the Gorge going to be able to build harvesters again? I really hope so :)
Comments
Personally I don't think Gorge should have the ability of building a harvester, I would prefer if it had a 'syphen ability' feeding resource to team-hive, providing the option to COMM to build.
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->function Gorge:ProcessEndMode()
local ability = self:GetActiveWeapon()
if ability and ability:isa("HydraAbility") then
ability:CreateHydra(self)
elseif ability and ability:isa("HarvesterAbility") then
ability:CreateHarvester(self)
end
end
function HarvesterAbility:CreateHarvester(player)
// If team has enough carbon
if Server then
local coords, valid = self:GetPositionForHarvester(player)
local team = self:GetTeam()
local cost = LookupTechData(kTechId.Harvester, kTechDataCostKey)
if valid and (team:GetCarbon() >= cost) then
// Get resource point
local origin, resourcePoint = self:GetResourcePoint(player)
if resourcePoint ~= nil then
// Create structure
local harvester = CreateEntity( Harvester.kMapName, origin, player:GetTeamNumber() )
harvester:SetOwner(player)
if harvester:SpaceClearForEntity(origin) then
harvester:SetAngles(resourcePoint:GetAngles())
// Attach to resource point
harvester:SetAttached(resourcePoint)
player:PlaySound(player:GetPlaceBuildingSound())
team:AddCarbon( -cost )
// Trigger alert for Commander
team:TriggerAlert(kTechId.AlienAlertGorgeBuiltHarvester, harvester)
else
DestroyEntity(harvester)
end
end
end
end
end<!--c2--></div><!--ec2-->
Though, their is little point since they autobuild. However, I've used this ability to fastbuild crags/whips/shades while marines attack a hive.
Doesnt always give +5 which i assume is because the alien structures have auto-build which can get that last 1% before you...
This code is for gorges to plant harvesters, not just build them on 'e'.