Skip to content

Commit

Permalink
Fix: SCUD Storm Hole Worker spawns after 30 seconds instead of 20 sec…
Browse files Browse the repository at this point in the history
…onds
  • Loading branch information
xezon committed Sep 3, 2022
1 parent 582d352 commit 54fb1d3
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 2 deletions.
69 changes: 68 additions & 1 deletion Patch104pZH/GameFilesEdited/Data/INI/Object/FactionBuilding.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13557,8 +13557,14 @@ Object GLAScudStorm

End

; Patch104p @bugfix commy2 30/07/2022 Fix poor Worker dies of poison first time trying to rebuild.
; Hole objects must always be defined before any object that would require it.
;------------------------------------------------------------------------------
ObjectReskin GLAHoleScudStorm GLAHole
Object GLAHoleScudStorm

; *** ART Parameters ***
SelectPortrait = SUHole_L
ButtonImage = SUHole_L
Draw = W3DModelDraw ModuleTag_01
OkToChangeModelColor = Yes
ConditionState = NONE
Expand Down Expand Up @@ -13591,9 +13597,70 @@ ObjectReskin GLAHoleScudStorm GLAHole
; End
; End

PlacementViewAngle = -135

; ***DESIGN parameters ***
DisplayName = OBJECT:GLAHole
Side = GLA
EditorSorting = SYSTEM

Prerequisites
Object = GLACommandCenter
End

BuildCost = 100
BuildTime = 10.0 ; in seconds
EnergyProduction = 0
VisionRange = 50.0 ; Shroud clearing distance
ShroudClearingRange = 50

ArmorSet
Conditions = None
Armor = StructureArmor
DamageFX = StructureDamageFXNoShake
End

MaxSimultaneousOfType = DeterminedBySuperweaponRestriction ; Normally unlimited, but can be selected by players in multiplayer games
MaxSimultaneousLinkKey = Superweapon ; Count all superweapons **AND THE GLA SCUD STORM REBUILD HOLE** as one "type" for MaxSimultaneousOfType

; *** AUDIO Parameters ***
VoiceSelect = TunnelNetworkSelect
SoundOnDamaged = BuildingDamagedStateLight
SoundOnReallyDamaged = BuildingDestroy

UnitSpecificSounds
UnderConstruction = UnderConstructionLoop
End

; *** ENGINEERING Parameters ***
RadarPriority = STRUCTURE
KindOf = PRELOAD STRUCTURE SELECTABLE IMMOBILE REBUILD_HOLE CAN_SEE_THROUGH_STRUCTURE IMMUNE_TO_CAPTURE SCORE_DESTROY MP_COUNT_FOR_VICTORY
Body = StructureBody ModuleTag_03
; To set the health for a particular hole, edit the entry in the object
; that will leave the hole behind (edit the RebuildHoleExposeDie entry)
MaxHealth = 9999999.9 ;bigger than anything realistic we use
InitialHealth = 9999999.9 ;bigger than anything realistic we use
End
Behavior = RebuildHoleBehavior ModuleTag_04
WorkerObjectName = GLAInfantryWorker
WorkerRespawnDelay = 30100 ; Spawn just a bit after the OCL_PoisonFieldMedium to avoid voice event
HoleHealthRegen%PerSecond = 0.5% ;regen this % of HoleMaxHealth per second
End

Behavior = CreateObjectDie ModuleTag_13
CreationList = OCL_LargeStructureDebris
End
Behavior = FXListDie ModuleTag_14
DeathFX = FX_StructureSmallDeath
End

Geometry = CYLINDER
GeometryMajorRadius = 25.0
GeometryHeight = 5.0
GeometryIsSmall = No
Shadow = SHADOW_VOLUME
BuildCompletion = PLACED_BY_PLAYER

End

;------------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8599,7 +8599,7 @@ Object GC_Slth_GLAScudStorm
SubdualDamageHealAmount = 100
End
Behavior = RebuildHoleExposeDie ModuleTag_08
HoleName = GC_Slth_GLAHoleScudStorm
HoleName = GLAHoleScudStorm ; Patch104p @bugfix commy2 30/07/2022 Fix Worker dies from poison on first try.
HoleMaxHealth = 500.0
End

Expand Down

0 comments on commit 54fb1d3

Please sign in to comment.