Page 1 of 1

Changing Fade Time

Posted: Fri Feb 19, 2010 3:32 pm
by Lagomorphia
Normally when you kill a unit it dies then fades instantly. I understand that leaving the bodies there would result in alot of lag but is it possible to extent the fade time to say, 30 seconds? It also occured to me that, seeing as you always wait until you fade when you are killed, would you have to wait those 30 seconds to respawn?

Re: Changing Fade Time

Posted: Fri Feb 19, 2010 3:33 pm
by DarthD.U.C.K.
no

Re: Changing Fade Time

Posted: Fri Feb 19, 2010 3:48 pm
by Lagomorphia
No to which? And could you explain why?

Re: Changing Fade Time

Posted: Fri Feb 19, 2010 3:53 pm
by kinetosimpetus
No, to both.
Hardcoded.

Re: Changing Fade Time

Posted: Fri Feb 19, 2010 4:01 pm
by Lagomorphia
Ah.
I'll just wait for those death animations Darth.D.U.C.K said he was making then.

Re: Changing Fade Time

Posted: Fri Feb 19, 2010 5:18 pm
by DarthD.U.C.K.
they are done, i just havent yet got around writing a readme and polishing them

Re: Changing Fade Time

Posted: Fri Feb 19, 2010 5:26 pm
by Maveritchell
kinetosimpetus wrote:No, to both.
Hardcoded.
I'm pretty sure respawn time is a function of the time your unit remains on the field. It's nothing so limited as you not being able to spawn, but extending it to something long with an excessively long death animation will cause issues if you have a sufficient number of units dying at once (and that is relative to the number of units allowable on the field at once).

I don't know if DarthD.U.C.K. has tested this, since the OP and he indicate that he's making death animations to (presumably) extend the time units' bodies are on the field, but I have tested this and an easy test is to reduce the unit count to 1, with an extended death animation, and try to respawn in a normal amount of time. It won't happen.

Re: Changing Fade Time

Posted: Sat Feb 20, 2010 3:56 am
by DarthD.U.C.K.
i actually meant death unitanimprops, not death animations

Re: Changing Fade Time

Posted: Sat Feb 20, 2010 5:57 am
by Lagomorphia
Do you mean dead unit props that writhe or something then?

Re: Changing Fade Time

Posted: Sat Feb 20, 2010 11:20 am
by Fiodis
Another "way around this" would be to give the unit an explosion with an effect that uses a dead play model mesh. You could then control the amount of time the "body" stays in-game, and still be able to respawn after the normal amount of time. However, I haven't tested this and aside from some obvious graphical bugs it would also cause issues if too many units died at once.

Re: Changing Fade Time

Posted: Sun Feb 21, 2010 12:18 pm
by DarthD.U.C.K.
Lagomorphia wrote:Do you mean dead unit props that writhe or something then?
no, they are just motionless dead units, but because they are animprops you can give them the modle of any unit you want