]> de.git.xonotic.org Git - xonotic/xonotic.wiki.git/blob - Framegroups.textile
(Commit created by redmine exporter script from page "Roles" version 2)
[xonotic/xonotic.wiki.git] / Framegroups.textile
1 h1. .framegroups
2
3 This file is needed to make md3 or dpm model play some animations in Xonotic
4
5
6 you name it <modelname.extension>.framegroups
7
8 for model dog.dpm you will name it dog.dpm.framegroups
9
10 inside you have definitions of animations
11 each line is one animation
12
13 syntax:
14 <start frame> <frame count> <fps> <loop/noloop>
15
16 for example 
17 1 100 30 1 
18 means 100 frame animation that start at frame 1, plays at 30 frames per second and it loops for ever :)
19
20 if you make 1 looping animation and place model on map as misc_gamemodel it will be animated
21
22 for coders:
23 to play such self playing animation you just use self.frame=1 to play 1st animation, self.frame=2 to play 2nd animation, etc
24 if its not looping it will just stop at last frame and stay there until you run other animation