Skip to content

Instantly share code, notes, and snippets.

@MustaphaTR
Created December 23, 2018 09:28
Show Gist options
  • Save MustaphaTR/f9865476e2318de5a5ebefdd76843209 to your computer and use it in GitHub Desktop.
Save MustaphaTR/f9865476e2318de5a5ebefdd76843209 to your computer and use it in GitHub Desktop.
^EngineerBuilding:
GrantConditionOnDeploy@REMOVE:
DeployedCondition: deployed
SkipMakeAnimation: true
DeploySound: cashturn.aud
PauseOnCondition: deployed
RequiresCondition: removeable
KillsSelf@REMOVE:
Delay: 50
RemoveInstead: true
RequiresCondition: deployed
ExternalCondition@REMOVE:
Condition: removeable
E6:
Inherits: ^Soldier
Inherits@EXTERNAL-ARMOR: ^ProvidesExternalArmorCratePowerup
Inherits@EXTERNAL-FIREPOWER: ^ProvidesExternalFirepowerCratePowerup
Inherits@EXTERNAL-RANGE: ^ProvidesExternalRangeCratePowerup
Inherits@EXTERNAL-ROF: ^ProvidesExternalROFCratePowerup
Inherits@EXTERNAL-SIGHT: ^ProvidesExternalSightCratePowerup
Valued:
Cost: 500
Tooltip:
Name: Engineer
Buildable:
BuildPaletteOrder: 30
Prerequisites: barracks
Queue: Infantry.GDI, Infantry.Nod
Description: Damages and captures enemy structures.\n Repairs destroyed vehicles\n Unarmed
Mobile:
Speed: 48
Health:
HP: 3000
Passenger:
PipType: Yellow
GivesBuildableArea:
AreaTypes: building
ProvidesPrerequisite:
Production:
Produces: Defence
ProductionQueue:
Type: Defence
Group: Defence
QueuedAudio: Building
ReadyAudio: ConstructionComplete
LimitedAudio: BuildingInProgress
OnHoldAudio: OnHold
CancelledAudio: Cancelled
LowPowerModifier: 300
ProximityExternalCondition@REMOVE:
Range: 1c512
ValidStances: Ally
Condition: removeable
UnitStatValues:
Damage: 3000
Range: 6c0
ReloadDelay: 25
GUN:
Inherits: ^Defense
Inherits@AUTOTARGET: ^AutoTargetGround
Inherits@CRATE: ^AcceptsCratePowerups
Inherits@ENGINEER: ^EngineerBuilding
Inherits@EXTERNAL-ARMOR: ^RequiresExternalArmorCratePowerup
Inherits@EXTERNAL-FIREPOWER: ^RequiresExternalFirepowerCratePowerup
Inherits@EXTERNAL-RANGE: ^RequiresExternalRangeCratePowerup
Inherits@EXTERNAL-ROF: ^RequiresExternalROFCratePowerup
Inherits@EXTERNAL-SIGHT: ^RequiresExternalSightCratePowerup
Selectable:
Bounds: 24,24
Valued:
Cost: 0
Tooltip:
Name: Turret
Buildable:
BuildPaletteOrder: 10
Queue: Defence
BuildDurationModifier: 0
Description: Basic Anti-Tank defense.\n Strong vs Tanks, Vehicles\n Weak vs Infantry
Prerequisites: !gun.husk
BuildLimit: 1
Health:
HP: 40000
Armor:
Type: Heavy
RevealsShroud:
Range: 6c0
WithBuildingBib:
HasMinibib: Yes
Turreted:
TurnSpeed: 12
InitialFacing: 56
-WithSpriteBody:
WithEmbeddedTurretSpriteBody:
Armament:
Weapon: TurretGun
LocalOffset: 512,0,112
MuzzleSequence: muzzle
AttackTurreted:
RequiresCondition: !build-incomplete && !deployed
WithMuzzleOverlay:
-WithDeathAnimation:
BodyOrientation:
UseClassicFacingFudge: True
SpawnActorOnDeath@HUSK:
Actor: GUN.husk
SpawnAfterDefeat: false
GUN.husk:
Inherits: ^CivBuildingHusk
Inherits@ENGINEER: ^EngineerBuilding
ConditionManager:
OwnerLostAction:
Action: Kill
-Interactable:
Selectable:
Bounds: 24,24
Priority: 3
SelectionDecorations:
Turreted:
-WithSpriteBody:
WithEmbeddedTurretSpriteBody:
Tooltip:
Name: Gun Turret (Destroyed)
GenericStancePrefix: true
ShowOwnerRow: true
ProvidesPrerequisite@buildingname:
GTWR:
Inherits: ^Defense
Inherits@AUTOTARGET: ^AutoTargetGround
Inherits@CRATE: ^AcceptsCratePowerups
Inherits@ENGINEER: ^EngineerBuilding
Inherits@EXTERNAL-ARMOR: ^RequiresExternalArmorCratePowerup
Inherits@EXTERNAL-FIREPOWER: ^RequiresExternalFirepowerCratePowerup
Inherits@EXTERNAL-RANGE: ^RequiresExternalRangeCratePowerup
Inherits@EXTERNAL-ROF: ^RequiresExternalROFCratePowerup
Inherits@EXTERNAL-SIGHT: ^RequiresExternalSightCratePowerup
Selectable:
Bounds: 24,24
Valued:
Cost: 0
Tooltip:
Name: Guard Tower
Buildable:
BuildPaletteOrder: 0
Queue: Defence
BuildDurationModifier: 0
Description: Basic defensive structure.\n Strong vs Infantry\n Weak vs Tanks
Prerequisites: !gtwr.husk
BuildLimit: 1
Building:
Health:
HP: 40000
RevealsShroud:
Range: 6c0
WithBuildingBib:
HasMinibib: Yes
Armament:
Weapon: HighV
LocalOffset: 256,0,256
MuzzleSequence: muzzle
AttackTurreted:
RequiresCondition: !build-incomplete && !deployed
-WithDeathAnimation:
BodyOrientation:
QuantizedFacings: 8
WithMuzzleOverlay:
Turreted:
TurnSpeed: 255
SpawnActorOnDeath@HUSK:
Actor: GTWR.husk
SpawnAfterDefeat: false
GTWR.husk:
Inherits: ^CivBuildingHusk
Inherits@ENGINEER: ^EngineerBuilding
ConditionManager:
OwnerLostAction:
Action: Kill
-Interactable:
Selectable:
Bounds: 24,24
Priority: 3
SelectionDecorations:
Tooltip:
Name: Guard Tower (Destroyed)
GenericStancePrefix: true
ShowOwnerRow: true
ProvidesPrerequisite@buildingname:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment