Edit: Reuploaded file
http://nash.wanzafran.com/playermodel.zip
Now replace the existing modeldef.txt with below:
Code: Select all
Model DoomPlayer_ // Name of actor in DECORATE
{
Path "models/player" // Path to model in PK3
Model 0 "player.md2" // Model index, model file
Skin 0 "green.pcx" // Model index, texture (can be in any format supported by GZDoom)
Model 1 "weapon.md2"
Skin 1 "weapon.pcx"
Scale 1.2 1.2 1.2 // Scale values
// Standing
Frame NULA A 0 "stand01" // The sprite lump, sprite frame, model index, name of frame
// Running
Frame NULC A 0 "run1"
Frame NULC B 0 "run2"
Frame NULC C 0 "run3"
Frame NULC D 0 "run4"
Frame NULC E 0 "run5"
Frame NULC F 0 "run6"
// Attacking
Frame NULD A 0 "attack1"
Frame NULD B 0 "attack2"
Frame NULD C 0 "attack3"
Frame NULD D 0 "attack4"
Frame NULD E 0 "attack5"
Frame NULD F 0 "attack6"
Frame NULD G 0 "attack7"
Frame NULD H 0 "attack8"
// Pain
Frame NULE A 0 "pain101"
Frame NULE B 0 "pain102"
Frame NULE C 0 "pain103"
Frame NULE D 0 "pain104"
// Death
Frame NULF A 0 "death301"
Frame NULF B 0 "death302"
Frame NULF C 0 "death303"
Frame NULF D 0 "death304"
Frame NULF E 0 "death305"
Frame NULF F 0 "death306"
Frame NULF G 0 "death307"
Frame NULF H 0 "death308"
// Weapon model definition
// Standing
Frame NULA A 1 "stand01"
// Running
Frame NULC A 1 "run1"
Frame NULC B 1 "run2"
Frame NULC C 1 "run3"
Frame NULC D 1 "run4"
Frame NULC E 1 "run5"
Frame NULC F 1 "run6"
// Attacking
Frame NULD A 1 "attack1"
Frame NULD B 1 "attack2"
Frame NULD C 1 "attack3"
Frame NULD D 1 "attack4"
Frame NULD E 1 "attack5"
Frame NULD F 1 "attack6"
Frame NULD G 1 "attack7"
Frame NULD H 1 "attack8"
// Pain
Frame NULE A 1 "pain101"
Frame NULE B 1 "pain102"
Frame NULE C 1 "pain103"
Frame NULE D 1 "pain104"
}

Or do I just not understand how model index is supposed to work? In that case, what is the correct way to define more than one model per actor?