Skip to content

Commit

Permalink
Hopefully fix the battle sounds issues
Browse files Browse the repository at this point in the history
Add Damgam's simple AIs
Make the kite's ceg on hit a little less large
Lower mex cost for Zaal a bit
Lower energy output of Energy Spire and Fission Generator to 5, halve cost (Smoother econ ramp up)
  • Loading branch information
ForbodingAngel committed May 1, 2021
1 parent 6bf462a commit 995bcbd
Show file tree
Hide file tree
Showing 11 changed files with 766 additions and 80 deletions.
4 changes: 2 additions & 2 deletions Gamedata/alldefs_post.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ SaveDefsToCustomParams = false
-------------------------
unitHealthModifier = tonumber(Spring.GetModOptions().unithealthmodifier)
if unitHealthModifier == nil then
unitHealthModifier = 250
unitHealthModifier = 500
end
unitHealthModifier = unitHealthModifier * 0.01

Expand Down Expand Up @@ -358,7 +358,7 @@ function ModOptions_Post (UnitDefs, WeaponDefs)
for id,wDef in pairs(WeaponDefs) do
if wDef.customparams and wDef.customparams.effectedbyunithealthmodifier == true then
if wDef.damage.default then
wDef.damage.default = wDef.damage.default * unitHealthModifier
wDef.damage.default = wDef.damage.default * (unitHealthModifier * 0.33)
end
--Spring.Echo(wDef.damage.default)
end
Expand Down
112 changes: 56 additions & 56 deletions Gamedata/sounds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -252,65 +252,65 @@ local Sounds = {
},
}

local files = VFS.DirList("sounds/deathsounds/generic/")
local t = Sounds.SoundItems
for i=1,#files do
local fileName = files[i]
t[fileName] = {
file = fileName;
pitchmod = 0.3;
--gainmod = 0.2;
maxconcurrent = 16;
rolloff = 2,
dopplerscale = 2,
in3d = true,
}
end
-- local files = VFS.DirList("sounds/deathsounds/generic/")
-- local t = Sounds.SoundItems
-- for i=1,#files do
-- local fileName = files[i]
-- t[fileName] = {
-- file = fileName;
-- pitchmod = 0.3;
----gainmod = 0.2;
-- maxconcurrent = 16;
-- rolloff = 2,
-- dopplerscale = 2,
-- in3d = true,
-- }
-- end

local files = VFS.DirList("sounds/explosions/")
local t = Sounds.SoundItems
for i=1,#files do
local fileName = files[i]
t[fileName] = {
file = fileName;
pitchmod = 0.3;
--gainmod = 0.2;
maxconcurrent = 16;
rolloff = 2,
dopplerscale = 2,
in3d = true,
}
end
-- local files = VFS.DirList("sounds/explosions/")
-- local t = Sounds.SoundItems
-- for i=1,#files do
-- local fileName = files[i]
-- t[fileName] = {
-- file = fileName;
-- pitchmod = 0.3;
----gainmod = 0.2;
-- maxconcurrent = 16;
-- rolloff = 2,
-- dopplerscale = 2,
-- in3d = true,
-- }
-- end

local files = VFS.DirList("sounds/deathsounds/nuke/")
local t = Sounds.SoundItems
for i=1,#files do
local fileName = files[i]
t[fileName] = {
file = fileName;
pitchmod = 0.3;
--gainmod = 0.2;
maxconcurrent = 16;
rolloff = 2,
dopplerscale = 2,
in3d = true,
}
end
-- local files = VFS.DirList("sounds/deathsounds/nuke/")
-- local t = Sounds.SoundItems
-- for i=1,#files do
-- local fileName = files[i]
-- t[fileName] = {
-- file = fileName;
-- pitchmod = 0.3;
----gainmod = 0.2;
-- maxconcurrent = 16;
-- rolloff = 2,
-- dopplerscale = 2,
-- in3d = true,
-- }
-- end

local files = VFS.DirList("sounds/weapons/")
local t = Sounds.SoundItems
for i=1,#files do
local fileName = files[i]
t[fileName] = {
file = fileName;
pitchmod = 0.2;
--gainmod = 0.2;
maxconcurrent = 16;
rolloff = 2,
dopplerscale = 1.5,
in3d = true,
}
end
-- local files = VFS.DirList("sounds/weapons/")
-- local t = Sounds.SoundItems
-- for i=1,#files do
-- local fileName = files[i]
-- t[fileName] = {
-- file = fileName;
-- pitchmod = 0.2;
----gainmod = 0.2;
-- maxconcurrent = 16;
-- rolloff = 2,
-- dopplerscale = 1.5,
-- in3d = true,
-- }
-- end

local files = VFS.DirList("sounds/selfdcountdown/")
local t = Sounds.SoundItems
Expand Down
32 changes: 24 additions & 8 deletions LuaAI.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,30 @@ return {
-- name = 'DAI',
-- desc = 'Shard by AF for Spring Lua',
-- },
{
name = 'ScavengersAI',
desc = 'scavs',
},
{
name = 'Sandbox',
desc = 'Does absolutely Nothing',
},
{
name = 'ScavengersAI',
desc = 'scavs',
},
{
name = 'Sandbox',
desc = 'Does absolutely Nothing',
},
{
name = 'SimpleAI',
desc = 'EasyAI (Simple)',
},
{
name = 'SimpleCheaterAI',
desc = 'EasyAI (Cheater)',
},
{
name = 'SimpleDefenderAI',
desc = 'EasyAI (Defender)',
},
{
name = 'SimpleConstructorAI',
desc = 'EasyAI (Constructor)',
},
}


Expand Down
Loading

0 comments on commit 995bcbd

Please sign in to comment.