Back to List
Maintained by SmokeDragon
Last updated 3 months ago
Created 5 months ago
download JSON metadata of shield_health
shield health
PLAY THIS MOD
Maintained by SmokeDragon
Last updated 3 months ago
Created 5 months ago
download JSON metadata of shield_health
everything has thug shield.. need to fix visuals, prevent link and dynamicaly set shield max to ud.health + ratio hp vs regen
[Spoiler]
local targetNames = {
Conjurer = true,
Glaive = true,
Scythe = true,
Ronin = true,
Reaver = true,
Knight = true,
Sling = true,
Phantom = true,
Gremlin = true,
Imp = true,
Iris = true,
Convict = true,
Dirtbag = true,
Bandit = true,
Rogue = true,
Thug = true,
Outlaw = true,
Felon = true,
Racketeer = true,
Vandal = true,
Snitch = true,
Aspis = true,
Mason = true,
Dart = true,
Scorcher = true,
Fencer = true,
Ripper = true,
Ravager = true,
Dominatrix = true,
Badger = true,
Impaler = true,
Crasher = true,
Quill = true,
Dagger = true,
Scalpel = true,
Halberd = true,
Claymore = true,
Mace = true,
Lance = true,
Flail = true,
Bolas = true,
Wasp = true,
Blastwing = true,
Gnat = true,
Locust = true,
Harpy = true,
Nimbus = true,
Revenant = true,
Krow = true,
Trident = true,
Charon = true,
Hercules = true,
Crane = true,
Swift = true,
Raptor = true,
Raven = true,
Magpie = true,
Phoenix = true,
Thunderbird = true,
Likho = true,
Odin = true,
Sparrow = true,
Owl = true,
Weaver = true,
Flea = true,
Hermit = true,
Venom = true,
Redback = true,
Recluse = true,
Crab = true,
Tarantula = true,
Widow = true,
Constable = true,
Puppy = true,
Pyro = true,
Placeholder = true,
Moderator = true,
Jack = true,
Jugglenaut = true,
Firewalker = true,
Toad = true,
Skuttle = true,
Welder = true,
Kodachi = true,
Blitz = true,
Ogre = true,
Minotaur = true,
Cyclops = true,
Emissary = true,
Tremor = true,
Ettin = true,
Conch = true,
Duck = true,
Archer = true,
Bulkhead = true,
Buoy = true,
Scallop = true,
Grizzly = true,
Angler = true,
Limpet = true,
Lobster = true,
Djinn = true,
Mariner = true,
Cutter = true,
Hunter = true,
Seawolf = true,
Corsair = true,
Mistral = true,
Siren = true,
Envoy = true,
Zephyr = true,
Athena = true,
Ultimatum = true,
Scorpion = true,
Dante = true,
Merlin = true,
Funnelweb = true,
Paladin = true,
Detriment = true,
Shogun = true,
Reef = true,
Scylla = true
}
local newWeaponType = {
{
def = [[newnewnew]],
}
}
local newWeaponDef = {
newnewnew = {
name = [[Energy Shield]],
damage = {
default = 10,
},
exteriorShield = true,
shieldAlpha = 0.2,
shieldBadColor = [[1 0.1 0.1 1]],
shieldGoodColor = [[0.1 0.1 1 1]],
shieldInterceptType = 3,
shieldPower = 1200,
shieldPowerRegen = 13,
shieldPowerRegenEnergy = 0,
shieldRadius = 80,
shieldRepulser = false,
shieldStartingPower = 1200,
smartShield = true,
visibleShield = false,
visibleShieldRepulse = false,
weaponType = [[Shield]],
}
}
for name, ud in pairs(UnitDefs) do
if targetNames[ud.name] then
Spring.Echo("ud.name: " .. ud.name)
if not ud.customparams then
ud.customparams = {}
end
ud.customparams.shield_emit_height = 17
if not ud.weapondefs then
ud.weapondefs = {}
end
for defName, defData in pairs(newWeaponDef) do
ud.weapondefs[defName] = defData
end
if not ud.weapons then
ud.weapons = {}
end
for _, weaponType in ipairs(newWeaponType) do
table.insert(ud.weapons, weaponType)
end
end
end
[Spoiler]
local targetNames = {
Conjurer = true,
Glaive = true,
Scythe = true,
Ronin = true,
Reaver = true,
Knight = true,
Sling = true,
Phantom = true,
Gremlin = true,
Imp = true,
Iris = true,
Convict = true,
Dirtbag = true,
Bandit = true,
Rogue = true,
Thug = true,
Outlaw = true,
Felon = true,
Racketeer = true,
Vandal = true,
Snitch = true,
Aspis = true,
Mason = true,
Dart = true,
Scorcher = true,
Fencer = true,
Ripper = true,
Ravager = true,
Dominatrix = true,
Badger = true,
Impaler = true,
Crasher = true,
Quill = true,
Dagger = true,
Scalpel = true,
Halberd = true,
Claymore = true,
Mace = true,
Lance = true,
Flail = true,
Bolas = true,
Wasp = true,
Blastwing = true,
Gnat = true,
Locust = true,
Harpy = true,
Nimbus = true,
Revenant = true,
Krow = true,
Trident = true,
Charon = true,
Hercules = true,
Crane = true,
Swift = true,
Raptor = true,
Raven = true,
Magpie = true,
Phoenix = true,
Thunderbird = true,
Likho = true,
Odin = true,
Sparrow = true,
Owl = true,
Weaver = true,
Flea = true,
Hermit = true,
Venom = true,
Redback = true,
Recluse = true,
Crab = true,
Tarantula = true,
Widow = true,
Constable = true,
Puppy = true,
Pyro = true,
Placeholder = true,
Moderator = true,
Jack = true,
Jugglenaut = true,
Firewalker = true,
Toad = true,
Skuttle = true,
Welder = true,
Kodachi = true,
Blitz = true,
Ogre = true,
Minotaur = true,
Cyclops = true,
Emissary = true,
Tremor = true,
Ettin = true,
Conch = true,
Duck = true,
Archer = true,
Bulkhead = true,
Buoy = true,
Scallop = true,
Grizzly = true,
Angler = true,
Limpet = true,
Lobster = true,
Djinn = true,
Mariner = true,
Cutter = true,
Hunter = true,
Seawolf = true,
Corsair = true,
Mistral = true,
Siren = true,
Envoy = true,
Zephyr = true,
Athena = true,
Ultimatum = true,
Scorpion = true,
Dante = true,
Merlin = true,
Funnelweb = true,
Paladin = true,
Detriment = true,
Shogun = true,
Reef = true,
Scylla = true
}
local newWeaponType = {
{
def = [[newnewnew]],
}
}
local newWeaponDef = {
newnewnew = {
name = [[Energy Shield]],
damage = {
default = 10,
},
exteriorShield = true,
shieldAlpha = 0.2,
shieldBadColor = [[1 0.1 0.1 1]],
shieldGoodColor = [[0.1 0.1 1 1]],
shieldInterceptType = 3,
shieldPower = 1200,
shieldPowerRegen = 13,
shieldPowerRegenEnergy = 0,
shieldRadius = 80,
shieldRepulser = false,
shieldStartingPower = 1200,
smartShield = true,
visibleShield = false,
visibleShieldRepulse = false,
weaponType = [[Shield]],
}
}
for name, ud in pairs(UnitDefs) do
if targetNames[ud.name] then
Spring.Echo("ud.name: " .. ud.name)
if not ud.customparams then
ud.customparams = {}
end
ud.customparams.shield_emit_height = 17
if not ud.weapondefs then
ud.weapondefs = {}
end
for defName, defData in pairs(newWeaponDef) do
ud.weapondefs[defName] = defData
end
if not ud.weapons then
ud.weapons = {}
end
for _, weaponType in ipairs(newWeaponType) do
table.insert(ud.weapons, weaponType)
end
end
end
Zero-K is a free real time strategy (RTS), that aims to be the
best open source multi-platform strategy game available :-)