Permalink
Browse files

Set static gravity for all weapons

Bombers use a missile now... suck less?
New sound for fighter bullets
Maybe springignore works properly now?
  • Loading branch information...
ForbodingAngel committed Oct 9, 2018
1 parent cc3ac34 commit 695908158ea331cd9242687c018342d8540edb26
@@ -187,7 +187,7 @@ function WeaponDef_Post(name, wDef)
wDef.targetborder = tonumber(wDef.customparams.targetborderoverride)
end
-- weapon reloadTime and stockpileTime were seperated in 77b1
-- weapon reloadTime and stockpileTime were separated in 77b1
if (tobool(wDef.stockpile) and (wDef.stockpiletime==nil)) then
wDef.stockpiletime = wDef.reloadtime
--wDef.reloadtime = 2 -- 2 seconds
@@ -205,6 +205,8 @@ function WeaponDef_Post(name, wDef)
wDef.edgeeffectiveness = 1
end
--Override map gravity for all weapons
wDef.mygravity = 0.14
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- Set up params for Point Defense turrets
@@ -16,7 +16,7 @@ unitDef = {
canstop = true,
category = "ARMORED VTOL",
collide = true,
cruiseAlt = 1000,
cruiseAlt = 300,
description = [[Unit Type: Bomber • Uses +]] .. supply .. [[ Supply]],
energyMake = 0,
energyStorage = 0,
@@ -43,7 +43,7 @@ unitDef = {
repairable = false,
selfDestructAs = "largeExplosionGeneric",
side = "CORE",
sightDistance = 1500,
sightDistance = 800,
smoothAnim = true,
stealth = false,
transportbyenemy = false;
@@ -74,8 +74,8 @@ unitDef = {
},
weapons = {
[1] = {
def = "clusterbombs",
onlytargetcategory = "BUILDING",
def = "missile",
onlyTargetCategory = "BUILDING",
noChaseCategory = "VTOL LIGHT ARMORED",
},
},
@@ -98,41 +98,8 @@ unitDef = {
weaponDefs = {
clusterbombs = {
AreaOfEffect = 150,
avoidFriendly = false,
avoidFeature = false,
collideFriendly = false,
collideFeature = false,
burst = 20,
burstrate = 0.1,
--cegTag = "antiassualtshot2",
explosionGenerator = "custom:genericshellexplosion-medium",
energypershot = 0,
impulseFactor = 0,
interceptedByShieldType = 4,
name = unitName .. "Weapon",
range = 800,
reloadtime = 10,
size = 2,
weaponType = "Cannon",
soundHit = "explosions/bombhit.wav",
soundStart = "weapons/18393_inferno_reject.wav",
sprayangle = 10000,
tolerance = 2000,
turret = false,
weaponVelocity = 200,
customparams = {
isupgraded = isUpgraded,
damagetype = "ebomber",
},
damage = {
default = 50,
},
},
missile = {
AreaOfEffect = 1,
AreaOfEffect = 300,
avoidFriendly = false,
avoidFeature = false,
collideFriendly = false,
@@ -151,23 +118,23 @@ weaponDefs = {
metalpershot = 0,
model = "missile.s3o",
name = "Rockets",
range = 650,
reloadtime = 3,
range = 800,
reloadtime = 6,
weaponType = "MissileLauncher",
smokeTrail = false,
soundHit = "explosions/unitexplodebig.wav",
soundHit = "other/18402_inferno_xplo.wav",
soundHitWet = "explosions/subhitbomb.wav",
soundHitVolume = 10,
soundStart = "weapons/bomberlaunch.wav",
soundStartVolume = 10,
startVelocity = 500,
startVelocity = 200,
tolerance = 8000,
turnRate = 10000,
turnRate = 15000,
tracks = false,
turret = true,
weaponAcceleration = 10,
turret = false,
weaponAcceleration = 50,
waterweapon = true,
flightTime = 10,
weaponVelocity = 800,
@@ -119,7 +119,7 @@ weaponDefs = {
rgbColor = "1 0.5 0",
rgbColor2 = "1 1 1",
soundTrigger = true,
soundstart = "weapons/tmediumtankfire.wav",
soundstart = "other/ejerikfiresingle.wav",
sprayangle = 1000,
size = 4,
--texture1 = "shot",
View
@@ -2,6 +2,7 @@
# This should allow to play multiplayer directly using a clone of the repo.
#
./.git
/.git
/.svn
/*/.svn

0 comments on commit 6959081

Please sign in to comment.