A basic QC generator for Quake .mdl model files.
It reads a .mdl file and outputs a .qc file with generated animation code for use in QuakeC.
- Python 3
kaitaistruct
Install dependencies:
pip install kaitaistruct./mdl2qc.py <model_name>
Example:
./mdl2qc.py ogre
This will read ogre.mdl and generate ogre.qc.
- Generates default animation functions (stand, walk, run, jump, shot, attack, pain, die) if matching frame names are found.
- Uses simple heuristics (e.g., frame names like walk1, run2, etc.).
- Inserts a fallback for missing stand animations.
- Includes a basic monster_ initializer function.
Notes The generated QC file is a starting point and may need manual editing.
Some animations (like pain or die) fall back to default frames if not found.