Skip to content

Commit

Permalink
THWK initial implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
Inq8 committed Dec 17, 2023
1 parent 3acd0e0 commit dfb94ae
Show file tree
Hide file tree
Showing 9 changed files with 226 additions and 0 deletions.
Binary file added mods/ca/bits/thwk.shp
Binary file not shown.
Binary file added mods/ca/bits/thwkicnh.shp
Binary file not shown.
Binary file added mods/ca/bits/thwkm.shp
Binary file not shown.
Binary file added mods/ca/bits/thwktempty.shp
Binary file not shown.
Binary file added mods/ca/bits/thwktfull.shp
Binary file not shown.
109 changes: 109 additions & 0 deletions mods/ca/rules/vehicles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6851,3 +6851,112 @@ APOC.ATOMIC:
-SpawnActorOnDeath:
-UpgradeableTo:
-Upgradeable@ATOMIC:

THWK:
Inherits: ^TankTD
Inherits@GAINSEXPERIENCE: ^GainsExperience
Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
Inherits@BERSERK: ^Berserk
Inherits@SLOWCRUSH: ^SlowedByCrushing
RenderSprites:
Valued:
Cost: 1500
Tooltip:
Name: Tomahawk Launcher
UpdatesPlayerStatistics:
AddToArmyValue: true
Buildable:
BuildPaletteOrder: 240
Prerequisites: gtek, ~vehicles.htnk, ~techlevel.high
Queue: VehicleSQ, VehicleMQ
IconPalette: chrometd
Description: Long-range incendiary missile artillery.
TooltipExtras:
Strengths: • Strong vs Buildings, Defenses, Infantry, Light Armor
Weaknesses: • Weak vs Heavy Armor\n• Cannot attack Aircraft\n• Has difficulty hitting moving targets\n• Cannot fire while moving
Mobile:
Speed: 43
PauseOnCondition: aiming || being-captured || empdisable || being-warped || driver-dead || notmobile
BlockedCursor: move
Health:
HP: 30000
Armor:
Type: Light
RevealsShroud:
MinRange: 4c0
Range: 5c0
RevealGeneratedShroud: False
RevealsShroud@GAPGEN:
Range: 4c0
Turreted:
TurnSpeed: 3
RealignDelay: 0
Armament@TARGETTER:
Weapon: HonestJohnTargeting
AttackTurreted:
TargetFrozenActors: True
ForceFireIgnoresActors: True
PauseOnCondition: empdisable || being-warped
WithSpriteTurret@OneMissile:
RequiresCondition: loaded
WithSpriteTurret@NoMissiles:
RequiresCondition: !loaded
Sequence: turret0
MissileSpawnerMaster:
Actors: TH
RespawnTicks: 249
LoadedCondition: loaded
LaunchingCondition: launching
Exit:
SpawnOffset: 0,-128,0
WithSpawnerMasterPipsDecoration:
Position: BottomLeft
Margin: 4, 3
RequiresSelection: true
GrantConditionOnAttack@AIMING:
ArmamentNames: targetter
Condition: aiming
RevokeDelay: 15
RevokeAll: false
GrantConditionOnMovement@MOVING:
ValidMovementTypes: Horizontal, Vertical, Turn
Condition: moving
Explodes:
Weapon: BarrelExplode
ProducibleWithLevel:
Prerequisites: vehicles.upgraded
WithProductionIconOverlay:
Types: Veterancy
Prerequisites: vehicles.upgraded
Selectable:
DecorationBounds: 1194, 1194

TH:
Inherits: ^ShootableMissile
RenderSprites:
Palette: temptd
Valued:
Cost: 50
Tooltip:
Name: Tomahawk Missile
Tooltip@NoRow:
Name: Tomahawk Missile
Health:
HP: 5000
BallisticMissile:
LaunchAngle: 128
Speed: 165
LeavesTrailsCA:
Image: smokey2
Palette: tseffect-ignore-lighting-alpha75
MovingInterval: 3
Type: CenterPosition
Offsets: -200, 0, 0
MissileSpawnerSlave:
SpawnedExplodes:
Weapon: V3Weapon
EmptyWeapon: VisualExplodeHusk
RequiresCondition: !airborne
Explodes:
Weapon: V3ExplodeAirborne
RequiresCondition: airborne
6 changes: 6 additions & 0 deletions mods/ca/sequences/misc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -813,6 +813,12 @@ v3:
Facings: 32
ZOffset: 1023

th:
idle:
Filename: thwkm.shp
Facings: 32
ZOffset: 2046

thawk:
idle:
Filename: thawk.shp
Expand Down
34 changes: 34 additions & 0 deletions mods/ca/sequences/vehicles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2321,3 +2321,37 @@ rhin.destroyed:
Start: 32
Facings: 32
UseClassicFacings: True

thwk:
Inherits: ^VehicleOverlays
idle:
Filename: thwk.shp
Facings: 32
UseClassicFacings: True
turret:
Filename: thwktfull.shp
Facings: 32
UseClassicFacings: True
turret1:
Filename: thwktfull.shp
Facings: 32
UseClassicFacings: True
turret0:
Filename: thwktempty.shp
Facings: 32
UseClassicFacings: True
icon:
Filename: thwkicnh.shp

thwk.destroyed:
Inherits: ^VehicleOverlays
idle:
Filename: thwk.shp
Facings: 32
UseClassicFacings: True
ZOffset: -512
turret:
Filename: thwktempty.shp
Facings: 32
UseClassicFacings: True
ZOffset: -512
77 changes: 77 additions & 0 deletions mods/ca/weapons/missiles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2039,3 +2039,80 @@ RocketShells:
CruiseAltitude: 2c0
Inaccuracy: 128
AllowSnapping: true

Tomahawk:
ReloadDelay: 130
Range: 16c0
MinRange: 3c0
Report: rocket2.aud
Projectile: Bullet
Blockable: false
Shadow: true
Inaccuracy: 0c511
Image: thwkm
Palette: temptd
TrailImage: smokey
TrailDelay: 3
Speed: 210
LaunchAngle: 37
Warhead@1Dam: SpreadDamage
Spread: 512
Damage: 600
Falloff: 500, 368, 135, 50, 18, 7, 0
Versus:
None: 100
Wood: 100
Concrete: 80
Light: 70
Heavy: 35
Brick: 5
DamageTypes: Prone50Percent, TriggerProne, FireDeath, FlakVestMitigatedMinor
Warhead@2Dam: SpreadDamage
Spread: 512
Damage: 600
Falloff: 500, 368, 135, 50, 18, 7, 0
Delay: 3
Versus:
None: 100
Wood: 100
Concrete: 80
Light: 70
Heavy: 35
Brick: 5
DamageTypes: Prone50Percent, TriggerProne, FireDeath, FlakVestMitigatedMinor
Warhead@3Dam: SpreadDamage
Spread: 512
Damage: 600
Falloff: 500, 368, 135, 50, 18, 7, 0
Delay: 6
Versus:
None: 100
Wood: 100
Concrete: 80
Light: 70
Heavy: 35
Brick: 5
DamageTypes: Prone50Percent, TriggerProne, FireDeath, FlakVestMitigatedMinor
Warhead@4Dam: SpreadDamage
Spread: 512
Damage: 600
Falloff: 500, 368, 135, 50, 18, 7, 0
Delay: 9
Versus:
None: 100
Wood: 100
Concrete: 80
Light: 70
Heavy: 35
Brick: 5
DamageTypes: Prone50Percent, TriggerProne, FireDeath, FlakVestMitigatedMinor
Warhead@2Smu: LeaveSmudge
SmudgeType: Scorch
Warhead@3Eff: CreateEffect
Explosions: large_napalm
ImpactSounds: firebl3.aud
Warhead@Flames: FireCluster
Weapon: BurnFx
RandomClusterCount: 5
Dimensions: 3,3
Footprint: xxx xxx xxx

0 comments on commit dfb94ae

Please sign in to comment.