Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Patrick

GZDoom modeldef question

Recommended Posts

In the modeldefs lump, i have the following code:

Model DualPistols
{
   Path "models/dual"
   Model 0 "tris.md2"
   Skin 0 "skin.pcx"
   Scale -1.0 1.0 1.0
   FrameIndex DUAL A 0 11
   //etc, etc, etc
}
Now, I do NOT have a sprite named DUAL anywhere in my pk3, but for some reason GZDoom tells me that it is an unknown sprite. I was under the assumption that there does not need to be a sprite counterpart for a model, and that one could simply create sprite names in the modeldef lump. Do I need to add sprites with corresponding names? Do I have to use an iWAD sprite name for this? Is there something which I am missing here?

Share this post


Link to post

Models need sprites to exist, for some reason. So you'll need to have the sprite DUALA0 somewhere for that model definition to work properly.

I've got no idea why.

Share this post


Link to post

In b4 Fraggle changing the thread title and scolding to use more descriptive thread titles.

Share this post


Link to post

Thanks, that clears that up. I actually just put a "blank" sprite in named DUAL (no A, or anything else) and surprisingly, it works now for all frames of my model. Weeeeiiiiirrrd.

I think I'm going to bug Graf about this now.

Share this post


Link to post
WildWeasel said:

I've got no idea why.



That's because the underlying engine (i.e. ZDoom) needs the sprites to work at all.

Share this post


Link to post

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×