I've searched around but haven't managed to find much in the way of help for this issue. Maybe someone can enlighten me as to what I might be doing wrong, if anything.
I'm adding a bunch of MD2 models into our project. The issue I'm having is that the models will always spawn on the floor. Even if I set the z-height in the thing properties in GZDoom Builder, the model itself still spawns on the floor. This is kind of odd, as the rotation of the model does work, as does the scaling, but height, pitch, roll, don't work.
Here's an example of my decorate file for one model.
// Ceiling Fan
Actor CeilingFan 30042 {
//$Category "Props"
//$Title "Ceiling Fan"
Height 16
Radius 16
-SOLID
States
{
Spawn:
CFAN A 1
Loop
}
}
And here's a sample of my modeldef.
// Ceiling Fan
Model CeilingFan
{
Path "Models/Props/Ceiling Fan"
Model 0 "ceilingfan.md2"
Skin 0 "ceilingfan.jpg"
ROTATING
Rotation-Speed 6.0
ZOffset 200
Scale 1.0 1.0 1.0
FrameIndex CFAN A 0 0
}
If I manually set the ZOffset property in my MODELDEF I can get GZDoom to spawn the model at the right height. That wouldn't be a big deal, except that if we want to use the same model at multiple heights, I"d have to create separate actors and defs for each one. That doesn't seem like a great solution.
Does anyone know if there's a way to get GZDoom to render MD2/3 models according to the thing's z-height?
I've searched around but haven't managed to find much in the way of help for this issue. Maybe someone can enlighten me as to what I might be doing wrong, if anything.
I'm adding a bunch of MD2 models into our project. The issue I'm having is that the models will always spawn on the floor. Even if I set the z-height in the thing properties in GZDoom Builder, the model itself still spawns on the floor. This is kind of odd, as the rotation of the model does work, as does the scaling, but height, pitch, roll, don't work.
Here's an example of my decorate file for one model.
And here's a sample of my modeldef.
If I manually set the ZOffset property in my MODELDEF I can get GZDoom to spawn the model at the right height. That wouldn't be a big deal, except that if we want to use the same model at multiple heights, I"d have to create separate actors and defs for each one. That doesn't seem like a great solution.
Does anyone know if there's a way to get GZDoom to render MD2/3 models according to the thing's z-height?
Thanks.
Share this post
Link to post