Skip to content

Commit

Permalink
Merge pull request #11 from alanblack166/main
Browse files Browse the repository at this point in the history
Update TankGeneral.ini with scaffold building exploit fix
  • Loading branch information
xezon authored Aug 23, 2021
2 parents f10c596 + c8d5711 commit 6eeba3a
Showing 1 changed file with 164 additions and 10 deletions.
174 changes: 164 additions & 10 deletions Patch104pZH/GameFilesEdited/Data/INI/Object/TankGeneral.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6332,7 +6332,13 @@ Object Tank_ChinaNuclearMissileLauncher
ShroudClearingRange = 200
ShroudRevealToAllRange = 60 ; Reveals shroud to all players at a specific amount which can be different.
; Using same value? Then use KINDOF_REVEAL_TO_ALL instead!
CommandSet = Tank_ChinaNuclearMissileCommandSet

; @bugfix - hanfield
; Changed CommandSet to EmptyCommandSet to make in-progress buildings not have a commandset.
; This prevents building units from scaffolds.
; 23/08/2021

CommandSet = EmptyCommandSet
ArmorSet
Conditions = None
Armor = StructureArmorTough
Expand Down Expand Up @@ -6444,7 +6450,21 @@ Object Tank_ChinaNuclearMissileLauncher
Behavior = ArmorUpgrade ModuleTag_26
TriggeredBy = Upgrade_ChinaEMPMines
End


; @bugfix - hanfield
; These modules will grant the building its intended commandset once construction is complete.
; 23/08/2021

Behavior = GrantUpgradeCreate ModuleTag_ScaffoldBuildFix1
UpgradeToGrant = Upgrade_DummyUpgrade
ExemptStatus = UNDER_CONSTRUCTION
End

Behavior = CommandSetUpgrade ModuleTag_ScaffoldBuildFix2
TriggeredBy = Upgrade_DummyUpgrade
CommandSet = Tank_ChinaNuclearMissileCommandSet
End

Geometry = BOX
GeometryMajorRadius = 45.0
GeometryMinorRadius = 55.0
Expand Down Expand Up @@ -7940,8 +7960,13 @@ Object Tank_ChinaPowerPlant
Armor = StructureArmor ; Can be disabled by Microwave Tanks normally.
DamageFX = StructureDamageFXNoShake
End

CommandSet = ChinaPowerPlantCommandSet

; @bugfix - hanfield
; Changed CommandSet to EmptyCommandSet to make in-progress buildings not have a commandset.
; This prevents building units from scaffolds.
; 23/08/2021

CommandSet = EmptyCommandSet
ExperienceValue = 100 100 100 100 ; Experience point value at each level

; *** AUDIO Parameters ***
Expand Down Expand Up @@ -8044,6 +8069,15 @@ Object Tank_ChinaPowerPlant
TriggeredBy = Upgrade_DummyUpgrade
End

; @bugfix - hanfield
; This modules will grant the building its intended commandset once construction is complete.
; 23/08/2021

Behavior = CommandSetUpgrade ModuleTag_ScaffoldBuildFix1
TriggeredBy = Upgrade_DummyUpgrade
CommandSet = ChinaPowerPlantCommandSet
End

; @bugfix - hanfield
; Replaced the ArmorUpgrade that was used to trigger EMP mine availability with WeaponSetUpgrade.
; This allows the player to research EMP mines while permitting the armorset-related bugfix.
Expand Down Expand Up @@ -8616,7 +8650,13 @@ Object Tank_ChinaSupplyCenter
RefundValue = 450 ; With nothing (or zero) listed, we sell for half price.
BuildTime = 10.0 ; in seconds
EnergyProduction = -1
CommandSet = Tank_ChinaSupplyCenterCommandSet

; @bugfix - hanfield
; Changed CommandSet to EmptyCommandSet to make in-progress buildings not have a commandset.
; This prevents building units from scaffolds.
; 23/08/2021

CommandSet = EmptyCommandSet
VisionRange = 200.0 ; Shroud clearing distance
ShroudClearingRange = 200
ArmorSet
Expand Down Expand Up @@ -8716,6 +8756,20 @@ Object Tank_ChinaSupplyCenter
TriggeredBy = Upgrade_ChinaEMPMines
End

; @bugfix - hanfield
; These modules will grant the building its intended commandset once construction is complete.
; 23/08/2021

Behavior = GrantUpgradeCreate ModuleTag_ScaffoldBuildFix1
UpgradeToGrant = Upgrade_DummyUpgrade
ExemptStatus = UNDER_CONSTRUCTION
End

Behavior = CommandSetUpgrade ModuleTag_ScaffoldBuildFix2
TriggeredBy = Upgrade_DummyUpgrade
CommandSet = Tank_ChinaSupplyCenterCommandSet
End

Geometry = BOX
GeometryMajorRadius = 52.0
GeometryMinorRadius = 47.0
Expand Down Expand Up @@ -9289,7 +9343,13 @@ Object Tank_ChinaBarracks
BuildCost = 500
BuildTime = 10.0 ; in seconds
EnergyProduction = 0
CommandSet = Tank_ChinaBarracksCommandSet

; @bugfix - hanfield
; Changed CommandSet to EmptyCommandSet to make in-progress buildings not have a commandset.
; This prevents building units from scaffolds.
; 23/08/2021

CommandSet = EmptyCommandSet
VisionRange = 200.0 ; Shroud clearing distance
ShroudClearingRange = 200
ArmorSet
Expand Down Expand Up @@ -9384,6 +9444,20 @@ Object Tank_ChinaBarracks
TriggeredBy = Upgrade_ChinaEMPMines
End

; @bugfix - hanfield
; These modules will grant the building its intended commandset once construction is complete.
; 23/08/2021

Behavior = GrantUpgradeCreate ModuleTag_ScaffoldBuildFix1
UpgradeToGrant = Upgrade_DummyUpgrade
ExemptStatus = UNDER_CONSTRUCTION
End

Behavior = CommandSetUpgrade ModuleTag_ScaffoldBuildFix2
TriggeredBy = Upgrade_DummyUpgrade
CommandSet = Tank_ChinaBarracksCommandSet
End

Geometry = BOX
GeometryMajorRadius = 36.0
GeometryMinorRadius = 44.0
Expand Down Expand Up @@ -10390,7 +10464,13 @@ Object Tank_ChinaAirfield
BuildCost = 1000
BuildTime = 30.0 ; in seconds
EnergyProduction = -1
CommandSet = Tank_ChinaAirfieldCommandSet

; @bugfix - hanfield
; Changed CommandSet to EmptyCommandSet to make in-progress buildings not have a commandset.
; This prevents building units from scaffolds.
; 23/08/2021

CommandSet = EmptyCommandSet
VisionRange = 200.0 ; Shroud clearing distance
ShroudClearingRange = 200
ArmorSet
Expand Down Expand Up @@ -10484,6 +10564,20 @@ Object Tank_ChinaAirfield
TriggeredBy = Upgrade_ChinaEMPMines
End

; @bugfix - hanfield
; These modules will grant the building its intended commandset once construction is complete.
; 23/08/2021

Behavior = GrantUpgradeCreate ModuleTag_ScaffoldBuildFix1
UpgradeToGrant = Upgrade_DummyUpgrade
ExemptStatus = UNDER_CONSTRUCTION
End

Behavior = CommandSetUpgrade ModuleTag_ScaffoldBuildFix2
TriggeredBy = Upgrade_DummyUpgrade
CommandSet = Tank_ChinaAirfieldCommandSet
End

Geometry = BOX
GeometryMajorRadius = 83.0
GeometryMinorRadius = 76.0
Expand Down Expand Up @@ -11439,7 +11533,13 @@ Object Tank_ChinaWarFactory
BuildCost = 2000
BuildTime = 15.0 ; in seconds
EnergyProduction = -1
CommandSet = Tank_ChinaWarFactoryCommandSet

; @bugfix - hanfield
; Changed CommandSet to EmptyCommandSet to make in-progress buildings not have a commandset.
; This prevents building units from scaffolds.
; 23/08/2021

CommandSet = EmptyCommandSet
VisionRange = 200.0 ; Shroud clearing distance
ShroudClearingRange = 200
ArmorSet
Expand Down Expand Up @@ -11532,6 +11632,20 @@ Object Tank_ChinaWarFactory
TriggeredBy = Upgrade_ChinaEMPMines
End

; @bugfix - hanfield
; These modules will grant the building its intended commandset once construction is complete.
; 23/08/2021

Behavior = GrantUpgradeCreate ModuleTag_ScaffoldBuildFix1
UpgradeToGrant = Upgrade_DummyUpgrade
ExemptStatus = UNDER_CONSTRUCTION
End

Behavior = CommandSetUpgrade ModuleTag_ScaffoldBuildFix2
TriggeredBy = Upgrade_DummyUpgrade
CommandSet = Tank_ChinaWarFactoryCommandSet
End

Geometry = BOX
GeometryMajorRadius = 57.0
GeometryMinorRadius = 61.0
Expand Down Expand Up @@ -13180,7 +13294,13 @@ Object Tank_ChinaPropagandaCenter
Armor = StructureArmor
DamageFX = StructureDamageFXNoShake
End
CommandSet = Tank_ChinaPropagandaCenterCommandSet

; @bugfix - hanfield
; Changed CommandSet to EmptyCommandSet to make in-progress buildings not have a commandset.
; This prevents building units from scaffolds.
; 23/08/2021

CommandSet = EmptyCommandSet
ExperienceValue = 200 200 200 200 ; Experience point value at each level


Expand Down Expand Up @@ -13248,6 +13368,20 @@ Object Tank_ChinaPropagandaCenter
TriggeredBy = Upgrade_ChinaEMPMines
End

; @bugfix - hanfield
; These modules will grant the building its intended commandset once construction is complete.
; 23/08/2021

Behavior = GrantUpgradeCreate ModuleTag_ScaffoldBuildFix1
UpgradeToGrant = Upgrade_DummyUpgrade
ExemptStatus = UNDER_CONSTRUCTION
End

Behavior = CommandSetUpgrade ModuleTag_ScaffoldBuildFix2
TriggeredBy = Upgrade_DummyUpgrade
CommandSet = Tank_ChinaPropagandaCenterCommandSet
End

Geometry = BOX
GeometryMajorRadius = 33.0
GeometryMinorRadius = 57.0
Expand Down Expand Up @@ -15253,7 +15387,13 @@ Object Tank_ChinaInternetCenter
BuildCost = 1750
BuildTime = 30.0 ; in seconds
EnergyProduction = 0
CommandSet = ChinaInternetCenterCommandSetOne

; @bugfix - hanfield
; Changed CommandSet to EmptyCommandSet to make in-progress buildings not have a commandset.
; This prevents building units from scaffolds.
; 23/08/2021

CommandSet = EmptyCommandSet
VisionRange = 200.0 ; Shroud clearing distance
ShroudClearingRange = 200
ArmorSet
Expand Down Expand Up @@ -15391,6 +15531,20 @@ Object Tank_ChinaInternetCenter
ReallyDamagedParticleSystem3 = Bone:None RandomBone:No PSys:StructureTransitionMediumShockwave
End

; @bugfix - hanfield
; These modules will grant the building its intended commandset once construction is complete.
; 23/08/2021

Behavior = GrantUpgradeCreate ModuleTag_ScaffoldBuildFix1
UpgradeToGrant = Upgrade_DummyUpgrade
ExemptStatus = UNDER_CONSTRUCTION
End

Behavior = CommandSetUpgrade ModuleTag_ScaffoldBuildFix2
TriggeredBy = Upgrade_DummyUpgrade
CommandSet = ChinaInternetCenterCommandSetOne
End

Geometry = BOX
GeometryMajorRadius = 50.0
GeometryMinorRadius = 50.0
Expand Down

0 comments on commit 6eeba3a

Please sign in to comment.