CAL File
From CryWiki
CAL is short for Character Animation List, this list points the engine to the animations a character can playback.
Note:
Every character must have a CAL file, if you created a custom skeleton you might have to make custom animations to drive it, to do this you need to make a custom CAL file and Animation graph
Inside The CAL File
In order to preview a custom named animation you will need to add it to a CAL file. This simple text file defines the animations that your character will use and their location. Below is a basic example.
#filepath animations\human\male
$Include objects\characters\human\GlobalHuman.cal
//-------COMBAT-------
combat_idle_nw_01 combat = combat\combat_idle_nw_01.caf
- The #filepath command points this file to a folder used only for male animations.
- The $Include allows your character to read from multiple CAL files. Here it calls the GlobalHuman.cal file which in itself also calls other various CAL files.
- The // simply defines a comment.
- The last line is defining the name of the animation and its location in a subfolder of “animations\human\male” called combat. The name given on the left is what you will see in the editor and does not have to match the actual animation’s file name.
Note:
The CAL file must be located in the same folder as your character and have the same name as this CHR file, except with the CAL file extension.
The default GlobalHuman.cal file calls every animation in the game for Crysis to be listed in the Character Editor
