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 is applied to the barrel model’s own coordinates, inside the offsets that place it, so it resizes the barrel without moving the point it is mounted at. The muzzle rides with it: VoxelBarrelOffsetToBarrelEnd is multiplied by the same figure, so a barrel drawn at three quarters size also fires from three quarters of the distance out. The three pivot offsets sit outside the scale and keep their length.
[MYARTILLERY] ; a BuildingType registered in [BuildingTypes]BarrelAnimIsVoxel=yesVoxelBarrelFile=MYARTBARVoxelBarrelScale=.75 ; three quarters of the size the model was built atOnly a BarrelAnimIsVoxel=yes building reads the setting.