VoxelBarrelScale
The size a building's voxel barrel is drawn at, as a multiple of the model's own.
Specification
- Applies to
- BuildingType
- File
rules.ini- Section
[<ObjectType ID>]- Value
- floating point
- When omitted
1.0
The scale resizes the barrel model about the point the three pivot offsets place it at, so the barrel’s mount does not move. Those pivot offsets keep their length whatever the scale.
The shots scale with the barrel. VoxelBarrelOffsetToBarrelEnd is multiplied by the same value, so a barrel drawn at three quarters size also fires from three quarters of the distance out. The scale does not move the shots when the building’s art entry sets PrimaryFirePixelOffset, because shots then start from that offset.
[MYARTILLERY] ; a BuildingType registered in [BuildingTypes]BarrelAnimIsVoxel=yesVoxelBarrelFile=MYARTBARVoxelBarrelScale=.75 ; three quarters of the size the model was built atOnly a BarrelAnimIsVoxel=yes building uses the setting.