Page 1 of 1

Small problem with one model

Posted: Sun Oct 14, 2007 7:43
by Reinchard
I copy model from DN Hi-Res Pack and its not work.

My DECORATE:
ACTOR Toilet 22222
{
Game Doom
Radius 25
Height 25
Mass 50000
+SOLID
+SHOOTABLE
+NOBLOOD
States
{
Spawn:
NULL A 0
Stop
}
}

My MODELDEF:
Model Toilet
{
Path "models"
Model 0 "toi.md2"
Skin 0 "toi.png"
Scale 0.82 0.82 0.70

Frame NULL A 0 "idle"
}

Model is not appear in game. Why?

Posted: Sun Oct 14, 2007 9:28
by Graf Zahl
Because the object immediately disappears as the 0 duration ot the spawn state suggests.

Posted: Sun Oct 14, 2007 9:40
by Reinchard
How can I repair this bug? I don't understand this frames and durations...

Posted: Sun Oct 14, 2007 10:08
by Graf Zahl
Replace the 0 with a -1. If you don't understand how this works try to read some docs. Otherwise you will run into other problems sooner or later.

Posted: Sun Oct 14, 2007 10:26
by Reinchard
Thanks, but now it looks like this:

DECORATE:

ACTOR Toilet 22222
{
Game Doom
Radius 25
Height 25
Mass 50000
+SOLID
+SHOOTABLE
+NOBLOOD
States
{
Spawn:
NULL A -1
Stop
}
}

MODELDEF:

Model Toilet
{
Path "models"
Model 0 "toi.md2"
Skin 0 "toi.png"
Scale 0.82 0.82 0.70

Frame NULL A 0 "idle"
}

Sprite name is NULLA0

Model not appear in game, but if I write in console "summon toilet" its appear. I read docs, but still I dont know what is wrong :(

Posted: Sun Oct 14, 2007 11:42
by Enjay
An obvious question I know but have you put a thing in your map with edit number 22222 and flagged it to appear in all game types and at all difficulties?

If so, can you put together a small test map for people to look at?

Posted: Sun Oct 14, 2007 12:37
by Reinchard
hahahah
Thanx. I just forget paste a marker to sprites!! Few houers of work for nothing :D