Skip to content
Permalink
Browse files

Add Zaal hive

  • Loading branch information...
ForbodingAngel committed Jun 4, 2019
1 parent 42d9cfa commit f5947c73da66a4a04899d8a5ab9409e477bd206c
@@ -56,7 +56,7 @@ Shared.buildListeCommanderFactory = {
}

Shared.buildListZaal = {
[[zroost]],
[[zhive]],
[[zskirmisher]],
}

Binary file not shown.
@@ -1,4 +1,4 @@
base, emit, arm, launcher = piece('base', 'emit', 'arm', 'launcher')
base, nanopoint1, mouth = piece('base', 'nanopoint1', 'mouth')
local SIG_AIM = {}

-- state variables
@@ -16,25 +16,25 @@ common = include("headers/common_includes_lus.lua")

function BuildFX()
while(building == true) do
EmitSfx (emit, 1024)
EmitSfx (mouth, 1024)
Sleep(550)
end
end

function RestoreAfterDelay()
if building == false then
Sleep(2000)
Turn(emit, y_axis, 0, 5)
Turn(nanopoint1, y_axis, 0, 5)
end
end

local nanoPoints = piece("emit")
local nanoPoints = piece("nanopoint1")

Spring.SetUnitNanoPieces(nanoPoints)

function script.StartBuilding(heading, pitch)
-- TODO: This is where you would add your unpack / point towards animation
Turn(emit, y_axis, heading, 100)
Turn(nanopoint1, y_axis, heading, 100)
SetUnitValue(COB.INBUILDSTANCE, true)
building = true
StartThread(BuildFX)
BIN +0 Bytes (100%) UnitTextures/z_glowy.dds
Binary file not shown.
BIN +5.33 MB UnitTextures/zhive.dds
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -28,8 +28,8 @@ unitDef = {
energyUse = energyUse,
explodeAs = "largeBuildingExplosionGenericRed",
makesMetal = 0,
footprintX = 2,
footprintZ = 2,
footprintX = 16,
footprintZ = 16,
iconType = "eco",
idleAutoHeal = .5,
idleTime = 2200,
@@ -42,14 +42,15 @@ unitDef = {
metalMake = 0,
name = humanName,
objectName = objectName,
movementClass = "HOVERHBOT4",
movementClass = "EXPERIMENTALTANK12",
pushResistant = true,
script = script,
onoffable = false,
radarDistance = 0,
repairable = false,
selfDestructAs = "largeBuildingExplosionGenericRed",
selfDestructCountdown = 15,
showNanoSpray = false,
side = "CORE",
sightDistance = 200,
smoothAnim = true,
@@ -60,7 +61,7 @@ unitDef = {
ReclaimSpeed = 0,
-- 0.03125 = 1 hp per second
repairspeed = 0.5,
yardMap = "yyyyyyyyy yoooooooy yoooooooy yoooooooy yoooooooy yoooooooy yoooooooy yoooooooy yyyyyyyyy",
yardMap = "oooooooooooo oooooooooooo oooooooooooo oooooooooooo oooooooooooo oooooooooooo oooooooooooo oooooooooooo oooooooooooo oooooooooooo oooooooooooo oooooooooooo ",
sfxtypes = {
pieceExplosionGenerators = {
"deathceg3",
@@ -91,9 +92,8 @@ unitDef = {
death_sounds = "generic",
armortype = armortype,
noenergycost = true,
--normaltex = "unittextures/lego2skin_explorernormal.dds",
--buckettex = "unittextures/lego2skin_explorerbucket.dds",
factionname = "zaal",
normaltex = "unittextures/zhive_normals.dds",
factionname = "zaal",
--corpse = "energycore",
helptext = [[]],
customgrounddecal = true,
@@ -1,7 +1,7 @@
-- UNITDEF -- ZROOST --
-- UNITDEF -- ZHIVE --
--------------------------------------------------------------------------------

unitName = [[zroost]]
unitName = [[zhive]]

--------------------------------------------------------------------------------

@@ -12,15 +12,15 @@ energyUse = 0

primaryCEG = "custom:fusionreactionnuclear-1color"

humanName = [[Zaal Roost]]
humanName = [[Zaal Hive]]

objectName = [[zaal/zroost.s3o]]
script = [[zaal/zroost_lus.lua]]
objectName = [[zaal/zhive.s3o]]
script = [[zaal/zhive_lus.lua]]

techprovided = [[1 roost]]
techprovided = [[1 hive]]
armortype = [[building]]

VFS.Include("units-configs-basedefs/basedefs/zaal/zroost_basedef.lua")
VFS.Include("units-configs-basedefs/basedefs/zaal/zhive_basedef.lua")

unitDef.weaponDefs = weaponDefs
--------------------------------------------------------------------------------
@@ -12,7 +12,7 @@ humanName = "Trike"
objectName = "zaal/zskirmisher.s3o"
script = "zaal/zskirmisher.cob"

tech = [[6 roost]]
tech = [[6 hive]]
armortype = [[armored]]
supply = [[4]]

0 comments on commit f5947c7

Please sign in to comment.
You can’t perform that action at this time.