Unit corpse from unit model

Unit corpse from unit model

Requests for features in the spring code.

Moderator: Moderators

Post Reply
Regret
Posts: 2086
Joined: 18 Aug 2007, 19:04

Unit corpse from unit model

Post by Regret »

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.
User avatar
Pressure Line
Posts: 2283
Joined: 21 May 2007, 02:09

Re: Unit corpse from unit model

Post by Pressure Line »

death anims are possible afaik, just not used (although i think Argh did some collapsing high-rise buildings in world builder)
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: Unit corpse from unit model

Post by Argh »

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.
User avatar
yuritch
Spring 1944 Developer
Posts: 1018
Joined: 11 Oct 2005, 07:18

Re: Unit corpse from unit model

Post by yuritch »

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.
User avatar
Tribulex
A.N.T.S. Developer
Posts: 1894
Joined: 26 Sep 2009, 21:26

Re: Unit corpse from unit model

Post by Tribulex »

i have maek lots of shitcolor textures to be place over alive unit body in anticipationof this feature,
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Unit corpse from unit model

Post by smoth »

yuritch wrote:And +1 to corpse model 'inheriting' piece positions/rotation from the unit at Killed() return.
+1
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: Unit corpse from unit model

Post by Argh »

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).
User avatar
FireStorm_
Posts: 666
Joined: 19 Aug 2009, 16:09

Re: Unit corpse from unit model

Post by FireStorm_ »

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?
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Unit corpse from unit model

Post by imbaczek »

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.
User avatar
bobthedinosaur
Blood & Steel Developer
Posts: 2702
Joined: 25 Aug 2004, 13:31

Re: Unit corpse from unit model

Post by bobthedinosaur »

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?
Post Reply

Return to “Feature Requests”