Skip to content

Commit

Permalink
More explosion death for various size of units
Browse files Browse the repository at this point in the history
  • Loading branch information
dnqbob committed Jan 10, 2024
1 parent 3396c6e commit 4fdc68f
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 31 deletions.
5 changes: 4 additions & 1 deletion mods/sp/rules/campaignstuff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,9 @@ AVATAR:
DefaultAttackSequence: shoot
RenderSprites:
WithMuzzleOverlay:
ExplodesAlsoTransported:
Weapon: UnitExplodeBigger
Offset: 0, 0, 768
# Will add new effect later, better not add another searching actor from map function
ActorStatValues:
Damage: 200
Expand Down Expand Up @@ -973,7 +976,7 @@ MWAR: ## AI control it by using McvManagerBotModule
Voice: Move
Offset: -1,-1
ExplodesAlsoTransported:
Weapon: UnitExplode
Weapon: UnitExplodeBig
RenderSprites:
Image: mwar.nod
FactionImages:
Expand Down
19 changes: 14 additions & 5 deletions mods/sp/rules/vehicles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ MMCH:
RequiresCondition: !inside-tunnel && railguns
Sequence: barrel2
WithMuzzleOverlay:
ExplodesAlsoTransported:
Offset: 0, 0, 512
Selectable:
Bounds: 903, 2533, 0, -1024
Carryable:
Expand Down Expand Up @@ -430,6 +432,8 @@ JUG:
CameraPitch: 250
Carryable:
LocalOffset: 0,0,763
ExplodesAlsoTransported:
Offset: 0, 0, 512
ActorStatValues:
Damage: 120

Expand Down Expand Up @@ -478,6 +482,8 @@ SONIC:
MuzzleSequence: muzzle
MuzzlePalette: gensmkexplocyan70
WithMuzzleOverlay:
ExplodesAlsoTransported:
Weapon: UnitExplodeBig
AttackTurreted:
Voice: Attack
PauseOnCondition: empdisable
Expand Down Expand Up @@ -588,7 +594,7 @@ G4TNK:
Selectable:
Bounds: 1250, 1900, 0, -200
ExplodesAlsoTransported:
Weapon: BigUnitExplode
Weapon: UnitExplodeBig
ActorStatValues:
Stats: Armor, Sight, Speed, Damage, ReloadDelay, MinRange, None, MaxRange

Expand Down Expand Up @@ -2827,7 +2833,8 @@ CENTURION:
Carryable:
LocalOffset: 0,0,512
ExplodesAlsoTransported:
Weapon: BigUnitExplode
Weapon: UnitExplodeBigger
Offset: 0, 0, 512
ActorStatValues:
Damage: 15

Expand Down Expand Up @@ -3180,7 +3187,7 @@ CABAPC:
Position: BottomLeft
RequiresSelection: true
ExplodesAlsoTransported:
Weapon: BigUnitExplode
Weapon: UnitExplodeLarge
ActorStatValues:
Stats: Armor, Sight, Speed, None, None, None, Cargo

Expand Down Expand Up @@ -3234,7 +3241,8 @@ SPIDERARTY:
Selectable:
Bounds: 1810, 3920, 0, -844
ExplodesAlsoTransported:
Weapon: BigUnitExplode
Weapon: UnitExplodeLarge
Offset: 0, 0, 512
Carryable:
LocalOffset: 0,0,763
ActorStatValues:
Expand Down Expand Up @@ -3298,7 +3306,8 @@ PALADIN:
FloatingSpriteEmitter@spawnsmoke:
Offset: 0,0,1000
ExplodesAlsoTransported:
Weapon: BigUnitExplode
Weapon: UnitExplodeBigger
Offset: 0, 0, 768
ActorStatValues:
Damage: 200

Expand Down
8 changes: 7 additions & 1 deletion mods/sp/sequences/effectsseq.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,14 @@ explosion:
Filename: twlt036.shp
medium_twlt:
Filename: twlt050.shp
large_twlt:
big_twlt:
Filename: twlt070.shp
Scale: 0.85
bigger_twlt:
Filename: twlt070.shp
large_twlt:
Filename: twlt100.shp
Scale: 0.85
verylarge_twlt:
Filename: twlt100.shp
tiny_grey_explosion:
Expand Down
62 changes: 39 additions & 23 deletions mods/sp/weapons/explosionweapons.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,25 +85,6 @@ BigScrinAircraftShrapnel:
Warhead@op: FireRadius
Weapon: SmallDebrisScrin

UnitExplodeSmall:
Inherits@2: ^Small_Brnl
Warhead@2Eff: CreateEffect
ValidTargets: Ground, Air, Water
Delay: 5
-ImpactSounds:
Warhead@4Eff: CreateEffect
Explosions: medium_twlt
ValidTargets: Ground, Air, Water
ImpactActors: false
ImpactSounds: expnew14.aud, expnew19.aud, expnew18.aud
-Warhead@3EffWater:
Warhead@2: SpawnSmokeParticle
ImpactActors: false
Duration: 100, 200
Image: explosion
Sequences: fire3
Palette: effect

UnitDrowned:
Warhead@1EffWater: CreateEffect
Explosions: large_watersplash
Expand All @@ -123,8 +104,28 @@ UnitDrownedSmall:
Warhead@2EffWater: CreateEffect
Delay: 10

UnitExplodeSmall:
Inherits@2: ^Small_Brnl
Warhead@2Eff: CreateEffect
ValidTargets: Ground, Air, Water
Delay: 5
-ImpactSounds:
Warhead@4Eff: CreateEffect
Explosions: medium_twlt
ValidTargets: Ground, Air, Water
ImpactActors: false
ImpactSounds: expnew14.aud, expnew19.aud, expnew18.aud
-Warhead@3EffWater:
Warhead@2: SpawnSmokeParticle
ImpactActors: false
Duration: 100, 200
Image: explosion
Sequences: fire3
Palette: effect

ReaperExplode:
Inherits@2: UnitExplodeSmall
Inherits@2: ^Medium_Brnl
-Warhead@3EffWater:
Warhead@3Eff: CreateEffect
Explosions: infdeathexplo1, infdeathexplo2, infdeathexplo3
ExplosionPalette: gensmkexploj
Expand All @@ -137,6 +138,11 @@ ReaperExplode:
InitialSmudgeLevel: 3, 4
Delay: 34
Warhead@2: SpawnSmokeParticle
ImpactActors: false
Duration: 100, 200
Image: explosion
Sequences: fire3
Palette: effect
Delay: 34
Warhead@op: FireRadius
Weapon: SmallDebris
Expand Down Expand Up @@ -206,7 +212,7 @@ UnitExplode:
Warhead@2Eff: CreateEffect
ValidTargets: Ground, Air, Water
Warhead@4Eff: CreateEffect
Explosions: large_twlt
Explosions: big_twlt
ValidTargets: Ground, Air, Water
ImpactActors: false
-Warhead@3EffWater:
Expand All @@ -217,7 +223,12 @@ UnitExplode:
Sequences: fire2
Palette: effect

BigUnitExplode:
UnitExplodeBig:
Inherits@2: UnitExplode
Warhead@4Eff: CreateEffect
Explosions: bigger_twlt

UnitExplodeBigger:
Inherits@2: ^GreyExplo
Inherits@3: ^DelayedSmokeEffect
Warhead@2Eff: CreateEffect
Expand All @@ -226,7 +237,7 @@ BigUnitExplode:
-ImpactSounds:
-Warhead@3EffWater:
Warhead@4Eff: CreateEffect
Explosions: verylarge_twlt
Explosions: large_twlt
ImpactSounds: expnew14.aud, expnew19.aud, expnew18.aud
ValidTargets: Ground, Air, Water
ImpactActors: false
Expand All @@ -237,6 +248,11 @@ BigUnitExplode:
Sequences: fire1
Palette: effect

UnitExplodeLarge:
Inherits@2: UnitExplodeBigger
Warhead@4Eff: CreateEffect
Explosions: verylarge_twlt

ScrinUnitExplode:
Inherits: ^ExploDefaults
Inherits@3: ^DelayedSmokeEffect
Expand Down
2 changes: 1 addition & 1 deletion mods/sp/weapons/mutweapons.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ BombTruckExplo:
Amount: 5

NukeLeak:
Inherits@1: BigUnitExplode
Inherits@1: UnitExplodeLarge
ValidTargets: Ground, Water, Air
Warhead@5Sharpnel: FireRadius
Weapon: NukeFuelDrop
Expand Down

0 comments on commit 4fdc68f

Please sign in to comment.