Back to List
Maintained by SmokeDragon
Last updated 3 months ago
Created 3 months ago
download JSON metadata of mega_funnel
mega funnel
PLAY THIS MOD
Maintained by SmokeDragon
Last updated 3 months ago
Created 3 months ago
download JSON metadata of mega_funnel
[Spoiler]
local validUDNames = {
["dynrecon1"] = true,
["dynstrike1"] = true,
["dynsupport1"] = true,
["dynassault1"] = true
}
local function MakeWDForUD(ud)
local explosionGenerators = ud.explosiongenerators or {}
table.insert(explosionGenerators, "custom:RAIDMUZZLE")
table.insert(explosionGenerators, "custom:VINDIBACK")
table.insert(explosionGenerators, "custom:RIOTBALL")
return {
areaOfEffect = 500,
craterBoost = 1,
craterMult = 3.5,
edgeEffectiveness = 0.4,
explosionGenerator = "custom:riotballplus2_purple_limpet",
explosionSpeed = 10,
impulseBoost = 0,
impulseFactor = 0.3,
name = "Slowing Explosion",
soundHit = [[weapon/aoe_aura2]],
soundHitVolume = 4,
damage = {
default = 120.1,
},
customParams = {
lups_explodespeed = 0.54,
lups_explodelife = 0.88,
timeslow_damagefactor = 10,
timeslow_overslow_frames = 2*30,
nofriendlyfire = 1,
light_color = [[4 4 4]],
light_radius = 3200,
spawns_name = "striderfunnelweb",
spawns_expire = 60,
force_ignore_ground = [[1]],
},
explosiongenerators = explosionGenerators,
}
end
local function SetWDForUD(ud)
ud.weapondefs = ud.weapondefs or {}
ud.weapondefs.spawnme = MakeWDForUD(ud)
end
for name, ud in pairs(UnitDefs) do
if (
(validUDNames[name]) and
(ud.metalcost > 0) and
(not (ud.selfDestructCountdown and ud.selfDestructCountdown < 1))
) then
SetWDForUD(ud)
ud.explodeas = "spawnme"
ud.selfdestructas = "spawnme"
ud.autoheal = -100
ud.customParams = ud.customParams or {}
ud.customParams.stats_show_death_explosion = true
end
end
did mot work.. think i know why.. going to try a new aproach
local validUDNames = {
["dynrecon1"] = true,
["dynstrike1"] = true,
["dynsupport1"] = true,
["dynassault1"] = true
}
local function MakeWDForUD(ud)
local explosionGenerators = ud.explosiongenerators or {}
table.insert(explosionGenerators, "custom:RAIDMUZZLE")
table.insert(explosionGenerators, "custom:VINDIBACK")
table.insert(explosionGenerators, "custom:RIOTBALL")
return {
areaOfEffect = 500,
craterBoost = 1,
craterMult = 3.5,
edgeEffectiveness = 0.4,
explosionGenerator = "custom:riotballplus2_purple_limpet",
explosionSpeed = 10,
impulseBoost = 0,
impulseFactor = 0.3,
name = "Slowing Explosion",
soundHit = [[weapon/aoe_aura2]],
soundHitVolume = 4,
damage = {
default = 120.1,
},
customParams = {
lups_explodespeed = 0.54,
lups_explodelife = 0.88,
timeslow_damagefactor = 10,
timeslow_overslow_frames = 2*30,
nofriendlyfire = 1,
light_color = [[4 4 4]],
light_radius = 3200,
spawns_name = "striderfunnelweb",
spawns_expire = 60,
force_ignore_ground = [[1]],
},
explosiongenerators = explosionGenerators,
}
end
local function SetWDForUD(ud)
ud.weapondefs = ud.weapondefs or {}
ud.weapondefs.spawnme = MakeWDForUD(ud)
end
for name, ud in pairs(UnitDefs) do
if (
(validUDNames[name]) and
(ud.metalcost > 0) and
(not (ud.selfDestructCountdown and ud.selfDestructCountdown < 1))
) then
SetWDForUD(ud)
ud.explodeas = "spawnme"
ud.selfdestructas = "spawnme"
ud.autoheal = -100
ud.customParams = ud.customParams or {}
ud.customParams.stats_show_death_explosion = true
end
end
did mot work.. think i know why.. going to try a new aproach
Zero-K is a free real time strategy (RTS), that aims to be the
best open source multi-platform strategy game available :-)