Skip to content

Commit

Permalink
Disabled Hover unit affected by radiation and veins
Browse files Browse the repository at this point in the history
  • Loading branch information
dnqbob committed Jan 8, 2024
1 parent 784bfc2 commit 6636e47
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 35 deletions.
49 changes: 30 additions & 19 deletions mods/sp/rules/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2059,11 +2059,13 @@
Inherits: ^DroneSoldier
Mobile:
Locomotor: HoverInfantry
KillsSelf@DisabledOnWater:
RequiresCondition: hoverunitonwater && (WebDisable || empdisable)
GrantConditionOnTerrain:
Condition: hoverunitonwater
TerrainTypes: Water
Hovers:
RequiresCondition: !WebDisable && !empdisable
KillsSelf@DisabledOnWater:
RequiresCondition: hoverunitonwater && (WebDisable || empdisable)
LeavesTrails:
RequiresCondition: hoverunitonwater
Image: wake
Expand All @@ -2082,10 +2084,14 @@
RequiresCondition: !hoverunitonwater
SpawnActorOnDeath@conversionUpg:
RequiresCondition: !hoverunitonwater
-DamagedByTintedCells@Default:
-DamagedByTintedCells@BlueRadiation:
-DamagedByTintedCells@OrangeRadiation:
-DamagedByTintedCells@Colossus:
DamagedByTintedCells@Default:
RequiresCondition: WebDisable || empdisable
DamagedByTintedCells@BlueRadiation:
RequiresCondition: WebDisable || empdisable
DamagedByTintedCells@OrangeRadiation:
RequiresCondition: WebDisable || empdisable
DamagedByTintedCells@Colossus:
RequiresCondition: WebDisable || empdisable

^CivilianInfantry:
Inherits: ^Infantry
Expand Down Expand Up @@ -2359,6 +2365,10 @@
^HoverVehicle:
Inherits: ^Vehicle
Hovers:
RequiresCondition: !empdisable
GrantConditionOnTerrain:
Condition: hoverunitonwater
TerrainTypes: Water
Mobile:
Locomotor: Hover
TurnsWhileMoving: true
Expand All @@ -2367,7 +2377,7 @@
BackwardDuration: 5
MaxBackwardCells: -1
LeavesTrails@water:
RequiresCondition: hoverunitonwater && !inside-tunnel
RequiresCondition: hoverunitonwater && !inside-tunnel && !empdisable
Image: hoverwind
Sequences: water
Palette: effect
Expand All @@ -2379,7 +2389,7 @@
SpawnAtLastPosition: false
StartDelay: -1
LeavesTrails@land:
RequiresCondition: !hoverunitonwater && !inside-tunnel
RequiresCondition: !hoverunitonwater && !inside-tunnel && !empdisable
Image: hoverwind
Sequences: non-water
Palette: effect
Expand All @@ -2390,9 +2400,6 @@
SpawnAtLastPosition: false
TrailWhileStationary: true
StartDelay: -1
GrantConditionOnTerrain:
Condition: hoverunitonwater
TerrainTypes: Water
ExplodesAlsoTransported:
RequiresCondition: !hoverunitonwater || !empdisable
KillsSelf@DisabledOnWater:
Expand All @@ -2402,14 +2409,18 @@
Weapon: UnitDrowned
ThrowsShrapnel:
RequiresCondition: !hoverunitonwater || !empdisable
-ChangesHealth@veinholedrain:
-ExternalCondition@veinholedrain:
-WithIdleOverlay@veinholedrain:
-GrantConditionOnTerrain@VEINS:
-DamagedByTintedCells@Default:
-DamagedByTintedCells@BlueRadiation:
-DamagedByTintedCells@OrangeRadiation:
-DamagedByTintedCells@Colossus:
ChangesHealth@veinholedrain:
RequiresCondition: empdisable && veinholedrain
WithIdleOverlay@veinholedrain:
RequiresCondition: empdisable && veinholedrain
DamagedByTintedCells@Default:
RequiresCondition: empdisable
DamagedByTintedCells@BlueRadiation:
RequiresCondition: empdisable
DamagedByTintedCells@OrangeRadiation:
RequiresCondition: empdisable
DamagedByTintedCells@Colossus:
RequiresCondition: empdisable

^HoverTank:
Inherits: ^HoverVehicle
Expand Down
23 changes: 14 additions & 9 deletions mods/sp/rules/infantry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1700,6 +1700,8 @@ FLOAT:
HP: 17500
Mobile:
Locomotor: HoverInfantry
Hovers:
RequiresCondition: !WebDisable
Crushable:
WarnProbability: 0
CrushSound: squish6.aud
Expand Down Expand Up @@ -1733,10 +1735,14 @@ FLOAT:
Weapon: UnitDrownedSmall
ActorStatValues:
Damage: -40
-DamagedByTintedCells@Default:
-DamagedByTintedCells@BlueRadiation:
-DamagedByTintedCells@OrangeRadiation:
-DamagedByTintedCells@Colossus:
DamagedByTintedCells@Default:
RequiresCondition: WebDisable
DamagedByTintedCells@BlueRadiation:
RequiresCondition: WebDisable
DamagedByTintedCells@OrangeRadiation:
RequiresCondition: WebDisable
DamagedByTintedCells@Colossus:
RequiresCondition: WebDisable

BUG:
Inherits: ^ScrinSoldier
Expand Down Expand Up @@ -2415,7 +2421,6 @@ GLAD:

MOTH:
Inherits: ^HoverDroneSoldier
Inherits@TINTEDCELLS: ^DamagedByTintedCells
Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
Inherits@EXPERIENCE: ^GainsExperience
Inherits@REGENMATERIALS: ^AffectedByRegenerativeMaterials
Expand Down Expand Up @@ -2490,13 +2495,13 @@ MOTH:
RequiresCondition: !undeployed && !inside-tunnel && !WebDisable
-WithInfantryBody:
DamagedByTintedCells@Default:
RequiresCondition: deployed
RequiresCondition: deployed || WebDisable || empdisable
DamagedByTintedCells@BlueRadiation:
RequiresCondition: deployed
RequiresCondition: deployed || WebDisable || empdisable
DamagedByTintedCells@OrangeRadiation:
RequiresCondition: deployed
RequiresCondition: deployed || WebDisable || empdisable
DamagedByTintedCells@Colossus:
RequiresCondition: deployed
RequiresCondition: deployed || WebDisable || empdisable
Armament@1:
Weapon: LurkerProj
PauseOnCondition: WebDisable || empdisable || !deployed
Expand Down
18 changes: 11 additions & 7 deletions mods/sp/rules/vehicles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3037,13 +3037,17 @@ LIMPED:
Name: deployed
RequiresCondition: show-deploybody && !inside-tunnel
DamagedByTintedCells@Default:
RequiresCondition: deployed
RequiresCondition: deployed || empdisable
DamagedByTintedCells@BlueRadiation:
RequiresCondition: deployed
RequiresCondition: deployed || empdisable
DamagedByTintedCells@OrangeRadiation:
RequiresCondition: deployed
RequiresCondition: deployed || empdisable
DamagedByTintedCells@Colossus:
RequiresCondition: deployed
RequiresCondition: deployed || empdisable
-ChangesHealth@veinholedrain:
-ExternalCondition@veinholedrain:
-WithIdleOverlay@veinholedrain:
-GrantConditionOnTerrain@VEINS:
-LeavesTrails@land:
LeavesTrails@water:
Image: wake
Expand Down Expand Up @@ -3551,7 +3555,7 @@ SCRMBT:
-LeavesTrails@land:
-LeavesTrails@water:
LeavesTrails@gravity:
RequiresCondition: !inside-tunnel
RequiresCondition: !inside-tunnel && !empdisable
Image: wake
Sequences: idlescr
Palette: scrinenergystuffs
Expand Down Expand Up @@ -3639,7 +3643,7 @@ SCRGLYDER2:
-LeavesTrails@land:
-LeavesTrails@water:
LeavesTrails@gravity:
RequiresCondition: !inside-tunnel
RequiresCondition: !inside-tunnel && !empdisable
Image: wake
Sequences: idlescr
Palette: scrinenergystuffs
Expand Down Expand Up @@ -3840,7 +3844,7 @@ SCRMOBMINE:
-LeavesTrails@land:
-LeavesTrails@water:
LeavesTrails@gravity:
RequiresCondition: !inside-tunnel
RequiresCondition: !inside-tunnel && !empdisable
Image: wake
Sequences: idlescr
Palette: scrinenergystuffs
Expand Down

0 comments on commit 6636e47

Please sign in to comment.