ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

Difference between revisions of "TurretAnim"

From ModEnc
Jump to: navigation, search
m (codez)
Line 7: Line 7:
 
.Shp turret   
 
.Shp turret   
  
To render a .shp turret on a building, list the .shp animation entry in the TurretAnim= input and see that TurretAnimIsVoxel=false ; the game will expect that the turret animation has an art.ini entry. Turrets should be 32 frames and can have shadow frames, which unlike .shp based vehicles turrets, do animate their shadows. Animation orientation should start from the ▲ direction and rotate counter clockwise like so:
+
To render a .shp turret on a building, list the .shp animation entry in the TurretAnim= input and see that TurretAnimIsVoxel=false ; the game will expect that the turret animation has an art.ini entry. Turrets should be 32 frames and can have shadow frames, which unlike .shp based vehicles turrets, do animate their shadows.
 +
It will also need these:
 +
 
 +
'''LoopStart=0'''
 +
 
 +
'''LoopEnd=32'''
 +
 
 +
'''LoopCount=-1'''
 +
 
 +
'''Rate=0'''
 +
 +
Animation orientation should start from the ▲ direction and rotate counter clockwise like so:
 +
 
 
[[File:Turretrotation.png]]
 
[[File:Turretrotation.png]]

Revision as of 00:19, 29 June 2021

TurretAnim= tag should be set to the animation to be rendered as a turret on this buildingtype. The turret animations can be two types:

Voxel turret

To render a voxel turret on a building, simply put the voxel's file name into the TurretAnim= input and give the building the additional tag TurretAnimIsVoxel=true ; the game will render the voxel directly onto the building without a need for a corresponding art.ini entry

.Shp turret

To render a .shp turret on a building, list the .shp animation entry in the TurretAnim= input and see that TurretAnimIsVoxel=false ; the game will expect that the turret animation has an art.ini entry. Turrets should be 32 frames and can have shadow frames, which unlike .shp based vehicles turrets, do animate their shadows. It will also need these:

LoopStart=0

LoopEnd=32

LoopCount=-1

Rate=0

Animation orientation should start from the ▲ direction and rotate counter clockwise like so:

Turretrotation.png