Skip to content

Commit

Permalink
Extra unit updates (#3644)
Browse files Browse the repository at this point in the history
Bugfixes for Phantom and Siegebreaker. Siegebreaker causing excessive friendly fire, and Phantom's amphib mode had some unexpected interactions due to lack of a tag.
  • Loading branch information
TheSilverHornet authored Aug 27, 2024
1 parent 9f15b98 commit c0b01ca
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 21 deletions.
4 changes: 2 additions & 2 deletions scripts/Units/corsiegebreaker_clean.bos
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ Create()
animSpeed = 100;
restore_delay = 3000;

call-script SweepFire();
//call-script SweepFire();

}

Expand Down Expand Up @@ -179,7 +179,7 @@ SweepFire()
if (isfiring == 1 AND lastfired+firetime>gameframe)
{

emit-sfx 2049 from flare;
emit-sfx 2049 from chamber_flare;


}
Expand Down
Binary file modified scripts/Units/corsiegebreaker_clean.cob
Binary file not shown.
5 changes: 3 additions & 2 deletions units/CorVehicles/T2/corphantom.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ return {
buildpic = "CORPHANTOM.DDS",
buildtime = 9000,
canmove = true,
category = "ALL TANK MOBILE WEAPON NOTSUB NOTSHIP NOTAIR NOTHOVER SURFACE EMPABLE",
category = "ALL TANK MOBILE WEAPON NOTSUB NOTSHIP NOTAIR NOTHOVER SURFACE EMPABLE CANBEUW",
cloakcost = 10,
cloakcostmoving = 30,
collisionvolumeoffsets = "0 -4 0",
Expand All @@ -23,7 +23,6 @@ return {
leavetracks = false,
health = 1400,
maxslope = 12,
speed = 72,
maxwaterdepth = 0,
mincloakdistance = 50,
movementclass = "ATANK3",
Expand All @@ -36,7 +35,9 @@ return {
seismicsignature = 4,
selfdestructas = "smallExplosionGenericSelfd",
sightdistance = 650,
sonardistance = 350,
stealth = true,
speed = 72,
trackstrength = 6,
tracktype = "corwidetracks",
trackwidth = 29,
Expand Down
34 changes: 17 additions & 17 deletions units/CorVehicles/T2/corsiegebreaker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ return {
craterboost = 0,
cratermult = 0,
edgeeffectiveness = 0.15,
energypershot = 1400,
energypershot = 1500,
explosiongenerator = "custom:laserhit-large-blue",
firestarter = 70,
fireTolerance = 1000,
Expand All @@ -159,7 +159,7 @@ return {
noselfdamage = true,
predictboost = 1,
range = 910,
reloadtime = 10,
reloadtime = 8,
rgbcolor = "0 1 0.8",
rgbcolor2 = "0.3 1 0.9",
soundhitdry = "",
Expand All @@ -172,12 +172,12 @@ return {
weapontype = "BeamLaser",
weaponvelocity = 1250,
damage = {
commanders = 25,
default = 76,
commanders = 1500,
default = 4000,--76
},
customparams = {
sweepfire=3.25,--multiplier for displayed dps during the 'bonus' sweepfire stage, needed for DPS calcs
}
--customparams = {
--sweepfire=3.25,--multiplier for displayed dps during the 'bonus' sweepfire stage, needed for DPS calcs
--}
},


Expand Down Expand Up @@ -242,16 +242,16 @@ return {
burstControlWhenOutOfArc = 2,
weaponAimAdjustPriority = 125,
},
[2] = {--not used directly, silent version for animation reasons
badtargetcategory = "VTOL GROUNDSCOUT",
def = "dreadshot",
maindir = "0 0 1",
maxangledif = 50,
onlytargetcategory = "SURFACE",
fastautoretargeting = true,
burstControlWhenOutOfArc = 2,
weaponAimAdjustPriority = 125,
},
--[2] = {--not used directly, silent version for animation reasons
--badtargetcategory = "VTOL GROUNDSCOUT",
--def = "dreadshot",
--maindir = "0 0 1",
--maxangledif = 50,
--onlytargetcategory = "SURFACE",
--fastautoretargeting = true,
--burstControlWhenOutOfArc = 2,
--weaponAimAdjustPriority = 125,
--},
},
},
}

0 comments on commit c0b01ca

Please sign in to comment.