Monster_generic with player.mdl model stuck in the ground Created 9 months ago2023-07-14 12:09:54 UTC by Wogor Wogor

Created 9 months ago2023-07-14 12:09:54 UTC by Wogor Wogor

Posted 9 months ago2023-07-14 12:09:54 UTC Post #347702
Hello everyone, my problem is that when I put the hl1 player model on a monster_generic the model just spawns halfway into the ground, how can i fix this issue?
Posted 9 months ago2023-07-14 12:46:40 UTC Post #347703
That's not a problem with monster_generic but rather that player models have their origin in the center of the model, unlike monsters which have the origin at their feet.

Just move the monster_generic up by 36 units (half of the player height, 72 units).
Posted 9 months ago2023-07-14 23:46:11 UTC Post #347706
the problem is that even when i move it up by 36 units the model falls back down into the ground when i compile the map, i cant have invisible 36 unit tall floors just so the npc can walk properly and i tried moving the origin in blender yet it changed nothing (unless i did something wrong but i doubt it)
as for blender whenever i move the origin up or down it doesnt affect the model at all yet when i move it to the side it breaks the whole model, absolutely no clue how to fix the model problem at all
Posted 9 months ago2023-07-15 07:44:29 UTC Post #347707
monster_generic is affected by gravity so you can't use it for props.
Posted 9 months ago2023-07-15 08:29:02 UTC Post #347708
If you're making changes to player.mdl for something like this, it's best to save the modified version as a new file.
Now, when translating the model in Blender, did you apply All Transformations afterwards?

It should be noted it's not necessary to even open the model in Blender at all. With a model viewer like HLAM you can apply transformations directly to the model without any decompilation.

An alternative is to just decompile the model and add the $origin 0 0 -36 option in the .qc file.
You must be logged in to post a response.