Skip to content

Commit

Permalink
add bixi dragon for china inf general
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickwieth committed Mar 4, 2024
1 parent c795f3c commit fa90f5f
Show file tree
Hide file tree
Showing 13 changed files with 189 additions and 2 deletions.
Binary file added mods/ca/bits/china/bixi.hva
Binary file not shown.
Binary file added mods/ca/bits/china/bixi.vxl
Binary file not shown.
Binary file added mods/ca/bits/china/bixidragonicon.shp
Binary file not shown.
Binary file added mods/ca/bits/china/bixiempty.hva
Binary file not shown.
Binary file added mods/ca/bits/china/bixiempty.vxl
Binary file not shown.
Binary file added mods/ca/bits/china/biximissile.hva
Binary file not shown.
Binary file added mods/ca/bits/china/biximissile.vxl
Binary file not shown.
20 changes: 18 additions & 2 deletions mods/ca/rules/china/commander-tree.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,22 @@ hack.cameo_filler.overlord.1:
Prerequisites: prerequisite.has_points, ~vehicles.china, ~!chinainf, ~filler.overlord2, disabled


commander_tree.Bixi_Dragon:
Inherits: ^default.commander_tree_item
RenderSprites:
Image: bixi
Tooltip:
Name: Bi Xi Dragon
Buildable:
Queue: Commander_Tree
BuildPaletteOrder: 530
ForceIconLocation: true
Prerequisites: prerequisite.has_points, techcenter, ~vehicles.chinainf
Description: Unlocks the Bi Xi Dragon.\nA long-range rocket artillery.\n
TooltipExtras:
Strengths: • Strong vs any ground target
Weaknesses: • Weak vs Aircraft, Anti-Aircraft

commander_tree.Nuke_Cannon:
Inherits: ^default.commander_tree_item
RenderSprites:
Expand All @@ -357,7 +373,7 @@ commander_tree.Nuke_Cannon:
IconPalette: chrometd
BuildPaletteOrder: 530
ForceIconLocation: true
Prerequisites: prerequisite.has_points, ~vehicles.china, ~!chinatnk
Prerequisites: prerequisite.has_points, ~vehicles.chinaatom
Description: Unlocks the Nuke Cannon.
TooltipExtras:
Strengths: • Strong vs any ground target
Expand Down Expand Up @@ -388,7 +404,7 @@ commander_tree.Nuke_Cannon.Range:
IconPalette: chrometd
BuildPaletteOrder: 532
ForceIconLocation: true
Prerequisites: prerequisite.has_points, ~vehicles.china, ~!chinatnk, ~commander_tree.nuke_cannon, ~!commander_tree.nuke_cannon.neutron
Prerequisites: prerequisite.has_points, ~vehicles.china, ~commander_tree.nuke_cannon, ~!commander_tree.nuke_cannon.neutron
Description: Increases the range of the Nuke Cannon.
TooltipExtras:
Strengths: • Strong vs any ground target
Expand Down
89 changes: 89 additions & 0 deletions mods/ca/rules/china/vehicles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1524,3 +1524,92 @@ chnukecann.Husk:
IntoActor: chnukecann
RenderSprites:
Image: chnukecann

Bixi:
Inherits: ^FightingVehicle
Inherits: ^VoxelVehicle
RenderVoxels:
Scale: 0.8
Image: bixi
WithVoxelBody:
RequiresCondition: !reloading
WithVoxelBody@deployed:
ShowShadow: true
Sequence: empty-idle
RequiresCondition: reloading
RenderSprites:
Image: bixi
Inherits: ^BiologicalDriver
Inherits: ^PrioArtillery
Inherits: ^SovietArtillery
Buildable:
Queue: Vehicle
BuildPaletteOrder: 115
Prerequisites: techcenter, ~chweap, ~commander_tree.bixi_dragon
Description: Long-range rocket artillery.\n Strong vs Buildings, Infantry\n Weak vs Vehicles, Aircraft
Valued:
Cost: 900
Tooltip:
Name: Bixi Dragon
Health:
HP: 16000
Mobile:
Speed: 56
TurnSpeed: 8
Voice: Move
PauseOnCondition: aiming || being-captured || empdisable || being-warped || driver-dead
Passenger:
Voice: Move
Armament:
Weapon: BixiLauncher
ReloadingCondition: reloading
AttackFrontal:
TargetFrozenActors: True
ForceFireIgnoresActors: True
PauseOnCondition: empdisable || being-warped
Voice: Attack
FacingTolerance: 0
GrantConditionOnAttack:
Condition: aiming
RevokeDelay: 50
RevokeAll: false
MissileSpawnerMaster:
Actors: bixi.missile,bixi.missile
SpawnAllAtOnce: True
RespawnTicks: 125
Explodes:
Weapon: BarrelExplode
Voiced:
VoiceSet: V3Voice
Exit@1:
SpawnOffset: 0,-150,350
Exit@2:
SpawnOffset: 0,150,350

Bixi.Missile:
Inherits: ^VoxelShootableMissile
RenderVoxels:
Scale: 0.8
Image: bixi.missile
RenderSprites:
Image: bixi.missile
Tooltip:
Name: Bixi Missile
Tooltip@NoRow:
Name: Bixi Missile
Health:
HP: 2500
BallisticMissile:
LaunchAngle: 95
Speed: 145
SpawnedExplodes:
Weapon: BixiWeapon
EmptyWeapon: VisualExplodeHusk
RequiresCondition: !airborne && !blacknapalm
SpawnedExplodes@black_napalm:
Weapon: BixiWeapon.Black_Napalm
EmptyWeapon: VisualExplodeHusk
RequiresCondition: !airborne && blacknapalm
Explodes:
Weapon: VisualExplodeAirborne
RequiresCondition: airborne
32 changes: 32 additions & 0 deletions mods/ca/rules/china/weapons.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1113,3 +1113,35 @@ CHMineSpawner:
Actors: chminv
Range: 0
ValidTargets: Ground, Water, Air

BixiLauncher:
Inherits: ^MissileArtillery
ReloadDelay: 5
Range: 19c511
MinRange: 5c0
Report: vv3latta.aud, vv3lattb.aud
ValidTargets: Ground, Water
Projectile: InstantHit
Warhead@1Dam: TargetDamage
ValidTargets: Ground, Water
-Warhead@2Smu: LeaveSmudge
-Warhead@3Eff: CreateEffect
-Warhead@4EffWater: CreateEffect

BixiWeapon:
Inherits: ^AntiGroundMissile
Inherits: ^NapalmMissile
ValidTargets: Ground, Trees, Water
Warhead@1: FireFragment
UseZOffsetAsAbsoluteHeight: true
Weapon: CHInfernoCannonC
ValidTargets: Air, Ground, Water
Chance: 25

BixiWeapon.Black_Napalm:
Inherits: BixiWeapon
Warhead@1: FireFragment
UseZOffsetAsAbsoluteHeight: true
Weapon: CHInfernoCannonC
ValidTargets: Air, Ground, Water
Chance: 25
34 changes: 34 additions & 0 deletions mods/ca/rules/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3980,6 +3980,40 @@ PROC.Dummy:
GrantConditionOnDamageState@SmokeTrail:
Condition: enable-smoke

^VoxelShootableMissile:
Inherits: ^ExistsInWorld
Inherits: ^SpriteActor
Inherits: ^LightArmor
Inherits: ^TSRenderVoxel
Valued:
Cost: 0
BallisticMissile:
LaunchAngle: 128
Speed: 165
AirborneCondition: airborne
MissileSpawnerSlave:
LeavesTrails:
Image: smokey2
Palette: tseffect-ignore-lighting-alpha75
MovingInterval: 3
Type: CenterPosition
Offsets: -200, 0, 0
Targetable@GROUND:
TargetTypes: Ground, Vehicle
RequiresCondition: !airborne
Targetable@AIRBORNE:
TargetTypes: Air
RequiresCondition: airborne
HiddenUnderFog:
Type: GroundPosition
Tooltip:
Name: Missile
GenericName: Missile
ShowOwnerRow: false
HitShape:
RejectsOrders:
Interactable:

^VoxelPlaneHusk:
Inherits: ^PlaneHusk
Inherits: ^TSRenderVoxel
Expand Down
9 changes: 9 additions & 0 deletions mods/ca/sequences/china.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,15 @@ chneutronmines:
icon: chneutronmines.png
AddExtension: false

bixi:
Inherits: ^VehicleOverlays
idle: invisibleitem
icon: bixidragonicon

bixi.missile:
Inherits: ^HighRes
idle: invisibleitem


icon:
chartybarr1: upartybarrage1icon
Expand Down
7 changes: 7 additions & 0 deletions mods/ca/sequences/voxels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,13 @@ nukecannon:
deployed: nukecannonchassis
turret: nukecannontur

bixi:
idle: bixi
empty-idle: bixiempty

bixi.missile:
idle: biximissile

ecm:
idle: ecm
turret: ecmtur
Expand Down

0 comments on commit fa90f5f

Please sign in to comment.