Aug 18 , 2006 New Features
model_animplay command
This command is used in items with the ITEM_TYPE_MODEL type to allow the use of an animated model in the menu. It's usage is as follows :
model_animplay <starting frame> <number of frames> <fps>
where <starting frame> is the starting frame of the desired animation, <number of frames> is the number of frames in the animation and <fps> is the frames per second of the animation. The animation will be infinitely repeated from the starting frame while the menu is displayed. An example of using this command is :
itemDef
{
name model
type ITEM_TYPE_MODEL
model_angle 90
rect -123 108 400 400
model_fovx 40
model_fovy 40
asset_model "models/mapobjects/meat/madman.md3"
model_animplay 0 168 30
visible MENU_TRUE
decoration
}
The madman.md3 model is animated starting at frame 0, repeating the first 168 frames at a framerate of 30 fps.