There will never be one if modelers don't help us making one.
http://emptyset.endoftheinternet.org/~r ... _export.py
is my version of the HL2 SMD export script, and it should work for Nexuiz. However, you need zmodel installed in your PATH (on OS X, you have to compile zmodel and put it in /usr/local/bin).
1. Download and install Xcode (somewhere on the Apple site)
2. Get zmodel.c and makefile from
http://svn.icculus.org/twilight/trunk/zmodel/, and run "make" in that directory (using Terminal.app).
3. Do "sudo mv zmodel /usr/local/bin/"
4. (enter password)
Then move hl2_smd_mesh_export.py to whereever OS X Blender expects its scripts in.
For using that script, you have to know:
- The script exports a SINGLE mesh with an attached armature. If you have multiple meshes, JOIN (J key) them first. You can't have multiple armatures.
- The script creates the .zym file and a directory named like your model with SMD files. The .zym file can be used as Nexuiz player model. In case you need to edit something in the control file, the .txt file is included too, and you can run zmodel on it (from Terminal.app, again).
- The actions for the model animations have to be named like follows (without the stuff in the parentheses):
0-die1-20n (0.5 seconds)
1-die2-20n (0.5 seconds)
2-draw-20n (0.35 seconds)
3-duck-20n (any duration, but should be instant)
4-duckwalk-20 (any duration)
5-duckjump-20 (any duration, but should be instant)
6-duckidle-20 (any duration)
7-idle-20 (any duration)
8-jump-20n (any duration, but should be instant)
9-pain1-20n (2 seconds)
10-pain2-20n (2 seconds)
11-shoot-20n (0.2 second recommended, but cut off when shooting anim is over)
12-taunt-20n (unused by the code, 1 second allocated)
13-run-20 (any duration)
14-runbackwards-20 (any duration)
15-strafeleft-20 (any duration)
16-straferight-20 (any duration)
17-dead1-20 (must be identical to the last frame of die1)
18-dead2-20 (must be identical to the last frame of die2)
19-forwardright-20 (any duration)
20-forwardleft-20 (any duration)
21-backright-20 (any duration)
22-backleft-20 (any duration)
That is because the export script sorts them by the number in front, and the number at the end is the frame rate (you may change that to your preferred frame rate). Currently, the frame rate set globally in blender is ignored (because I have no idea how to get that in the export script API). The "n" means "not looped".
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again
You can vary the number of "MS", so you can clearly see it's MS which is causing it.