Model spawning at wrong coordinates Created 2 years ago2022-03-03 21:25:29 UTC by Hatsuseno Hatsuseno

Created 2 years ago2022-03-03 21:25:29 UTC by Hatsuseno Hatsuseno

Posted 2 years ago2022-03-03 21:25:29 UTC Post #346311
Hello! I've recently been working on a model replacement pack for a mod, and I've been encountering an issue in which some of the human NPCs I've created as a replacement spawn in the wrong place in-game. More precisely, their placement is the same, only they spawn in the floor at the waist level. Of course, I probably don't even need to mention that I've only taken up modeling recently...

If someone could point me in the right direction for solving this issue, I'd be grateful.
Posted 2 years ago2022-03-06 06:04:40 UTC Post #346321
Are these models you've made yourself? I think that happens if the origin of the model is wrong.
I think player models have their origin in the centre of the model but other human models have it in the middle of the feet.
Posted 2 years ago2022-03-07 10:52:39 UTC Post #346329
I think that's indeed the problem! The models I've mentioned are based on decompiled player models, but converted to be used as NPCs instead. Is there some easy way to offset the model and all its animations through the .qc file, perhaps? I've tried using the $origin command, but haven't had much luck so far.
Posted 2 years ago2022-03-09 11:51:19 UTC Post #346334
Individual sequences can also have an origin set as well for various purposes, often corrective. It was used a lot in some models; it's worth investigating.

Here's a guide with definitions, as well as some examples further down.
https://the303.org/tutorials/gold_qc.htm
Rimrook RimrookSince 2003
You must be logged in to post a response.