« Previous - Version 4/5 (diff) - Next » - Current version
PlasmaSheep, 07/15/2010 06:25 pm
error


.framegroups File

This file is needed to make md3, dpm, or iqm models play some animations in Xonotic.

For modelers

It is named <modelname.extension>.framegroups. So if you are editing Ignis, it would be called ignis.iqm.framegroups.

Inside the file, the playermodel's animations are defined one per line.

Syntax:
<start frame> <frame count> <fps> <loop/noloop> // animname

Ex.
1 100 30 0 // dieone
Defines a 100 frame death animation that start at frame 1, plays at 30 frames per second and does not loop.

Animations must be in this order (these are the values for animname):
  1. dieone
  2. dietwo
  3. draw *
  4. duck
  5. duckwalk *
  6. duckjump
  7. duckidle *
  8. idle *
  9. jump
  10. painone
  11. paintwo
  12. shoot *
  13. taunt *
  14. run *
  15. runbackwards *
  16. strafeleft *
  17. straferight *
  18. deadone
  19. deadtwo
  20. forwardright *
  21. forwardleft *
  22. backright *
  23. backleft *

Lines marked with a * need to loop (last number on the line should be 1).

If you make 1 looping animation and place model on map as misc_gamemodel it will be animated.

For coders

To play such a self-playing animation you just use self.frame=1 to play 1st animation, self.frame=2 to play 2nd animation, etc.
If the animation does not loop, it will just stop at the last frame and stay there until you run another animation.