Skip to content

Commit

Permalink
fix charv crash, battlemaster is now a voxel unit
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickwieth committed Jan 9, 2024
1 parent 43a57cb commit dd41979
Show file tree
Hide file tree
Showing 12 changed files with 27 additions and 21 deletions.
2 changes: 1 addition & 1 deletion AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Contributors & special thanks to:
* Bu7loos (Slingshot, Grand Cannon, Cryolauncher/Yuri Chaos Platform, Apocalypse)
* Orac (Chronoharv)
* Overwatch (Heavy Flame Tank, XO/Bastion, Support Battlefortress)
* Midian-P (Centurion/Gene Splicer, ysgen/MSG, Bastion, Chinook)
* Midian-P (Centurion/Gene Splicer, ysgen/MSG, Bastion, Chinook, China Units)
* B.A.Znd (ISU, Katyusha, BPNE/Rice Cooker)
* G-E (2S3 Akatsiya)
* partyzanPaulZy (MARV)
Expand Down
Binary file added mods/ca/bits/china/battlemaster.hva
Binary file not shown.
Binary file added mods/ca/bits/china/battlemaster.vxl
Binary file not shown.
Binary file added mods/ca/bits/china/battlemastertur.hva
Binary file not shown.
Binary file added mods/ca/bits/china/battlemastertur.vxl
Binary file not shown.
19 changes: 12 additions & 7 deletions mods/ca/rules/china/vehicles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,20 @@ CHNMCV:
chbattle:
Inherits: ^Tank
Inherits: ^TDVehicleSprite
Inherits: ^VoxelTurretedTank
RenderVoxels:
Scale: 0.7
Image: chbattle
WithVoxelBody:
ShowShadow: true
Inherits: ^BiologicalDriver
Inherits: ^PrioAntiHeavy
Inherits@GeneralsVehicle: ^GeneralsVehicle
Inherits@horde: ^HordeBonus
Inherits@atom: ^AtomicTank
Inherits@uran: ^UranShells
Inherits@announce: ^AnnounceOnBuild
Inherits@vo: ^AttackTurretedVoice
Inherits: ^GeneralsVehicle
Inherits: ^HordeBonus
Inherits: ^AtomicTank
Inherits: ^UranShells
Inherits: ^AnnounceOnBuild
Inherits: ^AttackTurretedVoice
RenderSprites:
Image: chbattle
Valued:
Expand Down Expand Up @@ -91,7 +97,6 @@ chbattle:
AttackTurreted:
PauseOnCondition: empdisable || being-warped || parachute
WithMuzzleOverlay:
WithSpriteTurret:
SelectionDecorations:
Voiced:
VoiceSet: BattlemasterTankVoice
Expand Down
6 changes: 5 additions & 1 deletion mods/ca/rules/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3837,7 +3837,7 @@
CameraPitch: 130
UseClassicPerspectiveFudge: true
RenderVoxels:
Scale: 5.5
Scale: 1
NormalsPalette: normals
PlayerPalette: playerra2
LightYaw: 800
Expand Down Expand Up @@ -3869,6 +3869,10 @@
LightPitch: 142
LightYaw: 682

^VoxelTurretedTank:
Inherits: ^TSRenderVoxel
WithVoxelTurret:

^VoxelPlane:
Inherits: ^Plane
Inherits: ^WingContrails
Expand Down
2 changes: 1 addition & 1 deletion mods/ca/rules/husks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1501,7 +1501,7 @@ FROG.Husk:
Inherits: ^VoxelPlaneHusk
RenderVoxels:
Scale: 0.6
Image: frog.husk
Image: frog
Tooltip:
Name: Frogfoot Attack Plane
RenderSprites:
Expand Down
1 change: 1 addition & 0 deletions mods/ca/rules/soviet/aircraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ FROG:
Inherits: ^VoxelPlane
RenderVoxels:
Scale: 0.6
Image: frog
Inherits: ^BomberPlane
Inherits: ^BiologicalPilot
Inherits: ^PrioAntiLight
Expand Down
8 changes: 2 additions & 6 deletions mods/ca/sequences/china.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -511,12 +511,8 @@ chlotus:
chbattle:
Inherits: ^VehicleOverlays
Inherits: ^LowRes
idle: chbattle
Facings: 32
UseClassicFacings: True
turret: chbattletur
Facings: 32
UseClassicFacings: True
idle: invisibleitem
turret: invisibleitem
muzzle: gunfire2
Length: 5
icon: chbattleicon
Expand Down
2 changes: 1 addition & 1 deletion mods/ca/sequences/vehicles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ charv:

charv.destroyed:
Inherits: ^VehicleOverlays
idle: charv
idle: chronoharv
Facings: 32
UseClassicFacings: True
ZOffset: -512
Expand Down
8 changes: 4 additions & 4 deletions mods/ca/sequences/voxels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ su47.husk:

frog:
idle: frog
su25.dirty:
Inherits: frog
frog.husk:
Inherits: frog

ocar:
idle: V22
Expand Down Expand Up @@ -68,3 +64,7 @@ huey:
idle: huey
huey.husk:
Inherits: huey

chbattle:
idle: battlemaster
turret: battlemastertur

0 comments on commit dd41979

Please sign in to comment.