Death Animations
by Jordan · in Artist Corner · 11/29/2002 (6:05 pm) · 3 replies
I have some questions regarding how death animations are handled in the engine. After looking at the show tool it seems models can have several death animations. The RW model has, i think, 9 sequences with "death" in the labels but only a few are animated in the showtool. I checked the dts-exporter doc and this still poses a few questions.
What determines which animation will be played when a player dies in the torque engine? specific to weapon or damage amount, or is it just random? I have no idea.
Also why are some of the sequences that are labeled death appear unanimated, the player is just laying on the ground?
Will the engine crash if you have fewer death sequences than the ones that appear in the demo?
Thanks in advance.
What determines which animation will be played when a player dies in the torque engine? specific to weapon or damage amount, or is it just random? I have no idea.
Also why are some of the sequences that are labeled death appear unanimated, the player is just laying on the ground?
Will the engine crash if you have fewer death sequences than the ones that appear in the demo?
Thanks in advance.
#2
12/04/2002 (5:54 am)
thanks ill check that. I didnt think to look through the scripts i thought it was programmed in the sdk or something.
#3
~ Sang
12/04/2002 (6:35 am)
Its in the script, lines 20-30 of player.cs and which anim plays is determined by Player::playdeathanimation on lines 937-942. It looks to me like that function is (pun not intended) non-functional, the only anim that would ever get used according to that function is anim 1. This would be pretty easy to get around, if you wanted to bother doing it.~ Sang
Torque Owner Sam Guffey
Sam