ShareSource
The object type a voxel animation borrows its voxel model from.
- Applies to
- VoxelAnimType
- File
rules.ini- Section
[<ObjectType ID>]- Value
- target
- When omitted
none
ShareSource names the object type whose voxel model the animation draws. It is read only when ShareBodyData, ShareTurretData or ShareBarrelData is set, and that flag chooses which of the type’s models is used. With none of the flags set, the animation loads the .VXL file named by its Image and ignores this key.
The value is an ObjectType ID. The engine looks for it among the InfantryTypes, then the VehicleTypes, AircraftTypes and BuildingTypes, and takes the first match. The animation draws that type’s model directly, not a copy.
[VoxelAnims]20=MYTURRETDEBRIS ; a VoxelAnimType, registered here so the rules create it
[MYTURRETDEBRIS]ShareTurretData=yesShareSource=MYTANK ; a VehicleType registered in [VehicleTypes]VoxelIndex=0MinAngularVelocity=10.0MaxAngularVelocity=14.0The animation has no model when the name matches no type, or when the named type holds no model for the part the flag asks for. An infantry type drawn from shapes has no body model, and a vehicle without a turret has no turret or barrel model. A piece without a model is still created, bounces, damages what it lands on and expires, but it is never drawn.