CAL File
From CryWiki
CAL is short for Character Animation List, this list points the engine to the animations a character can playback.
|
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.
|
