Jump to content

Loading a Q3A character


Josh
 Share

Recommended Posts

Quake 3 Arena player models are split into three parts. If you want to load them up, this is how:

//Load Quake 3 plugin
auto md3loader = LoadPlugin("Plugins/MD3.dll");

//Load Q3A character
auto head = LoadModel(world, "Models/MD3/bitterman/head.md3");
auto torso = LoadModel(world, "Models/MD3/bitterman/upper.md3");
auto lower = LoadModel(world, "Models/MD3/bitterman/lower.md3");

auto tag_head = torso->FindChild("tag_head");
head->SetParent(tag_head, false);
auto tag_torso = lower->FindChild("tag_torso");
torso->SetParent(tag_torso, false);

 

  • Like 1

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...