Unit corpse from unit model
Moderator: Moderators
Unit corpse from unit model
Upon unit death a feature would be created using the unit model with custom defined texture and positioned accordingly with a script. Also 'dying' animation.
- Pressure Line
- Posts: 2283
- Joined: 21 May 2007, 02:09
Re: Unit corpse from unit model
death anims are possible afaik, just not used (although i think Argh did some collapsing high-rise buildings in world builder)
Re: Unit corpse from unit model
I have all sorts of death animations atm, and in WB, I do Unit-Unit swaps at death with Lua.
It's really straightforward- code the death animation in Killed(), and it will run until it reaches the return.
It's really straightforward- code the death animation in Killed(), and it will run until it reaches the return.
Re: Unit corpse from unit model
PL: look at S44 ships for death animations, most should have them.
And +1 to corpse model 'inheriting' piece positions/rotation from the unit at Killed() return.
And +1 to corpse model 'inheriting' piece positions/rotation from the unit at Killed() return.
Re: Unit corpse from unit model
i have maek lots of shitcolor textures to be place over alive unit body in anticipationof this feature,
Re: Unit corpse from unit model
+1yuritch wrote:And +1 to corpse model 'inheriting' piece positions/rotation from the unit at Killed() return.
Re: Unit corpse from unit model
That should be possible. Record the current Piece rotation states via Lua, and pass them as arguments during Create() for the death-variant's script.
I assume that there would be the usual problem of left-handed vs. right-handed coordinates, and translation, as opposed to rotation, probably won't work right (there seems to be an issue with getting the exact world-position of a Unit Piece, if anybody knows how to get that done, please let me know, that has other uses).
I assume that there would be the usual problem of left-handed vs. right-handed coordinates, and translation, as opposed to rotation, probably won't work right (there seems to be an issue with getting the exact world-position of a Unit Piece, if anybody knows how to get that done, please let me know, that has other uses).
- FireStorm_
- Posts: 666
- Joined: 19 Aug 2009, 16:09
Re: Unit corpse from unit model
First off, 'm a noob.
Having said that, to me it seems an unnecessary restriction that the 'corpse=' line in a fbi file, can only refer to a Feautue (as far as i know/tried.)
If a Unit could be manifested after a units death, instead of a Feature, this would open up a world of possibilities for wreckages and/or corpses.
Or am I way off and/or proposing something very hard to realise or perhaps even quite unachievable atm?
Having said that, to me it seems an unnecessary restriction that the 'corpse=' line in a fbi file, can only refer to a Feautue (as far as i know/tried.)
If a Unit could be manifested after a units death, instead of a Feature, this would open up a world of possibilities for wreckages and/or corpses.
Or am I way off and/or proposing something very hard to realise or perhaps even quite unachievable atm?
Re: Unit corpse from unit model
it's not hard, in fact, it's possible now - and it's a niche feature, so the engine itself will probably never do it. use synced lua for that.
- bobthedinosaur
- Blood & Steel Developer
- Posts: 2702
- Joined: 25 Aug 2004, 13:31
Re: Unit corpse from unit model
I was wondering if any one has tested the angle and movement passing on from unit to corpse? Or if any one has some examples/ ideas on how to modify the corpse model?