Skip to content

teiman/mdl2qc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mdl2qc

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.

Requirements

Install dependencies:

pip install kaitaistruct

Usage

./mdl2qc.py <model_name>

Example:

./mdl2qc.py ogre This will read ogre.mdl and generate ogre.qc.

Features

  • 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.

About

Generates a QC file from a MDL file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages