PlayDeathAnimation
by Howard Dortch · in Torque Game Engine · 01/22/2005 (2:47 pm) · 7 replies
I have 3 computers hooked up on a lan. One is the server or host, the other 2 join the game. The computer that acts as host can see when other players are killed they show the death animations . Both of the joined clients shoot another player and dont see the death animations. Do I need to send each client a play death anim message? If not can someone tell me what to look for? I'm using the fps starter code for the most part with minimal changes.
#2
01/23/2005 (6:52 am)
There is a known problem with "death" animations playing. I solved my problem just by renaming it "die" instead. Try searching the forums for it.
#3
01/23/2005 (7:56 am)
@Bruno, bingo.......thanks
#4
01/23/2005 (9:05 am)
die is the hard coded name for a death animation, "out of the box" the C code will play the animation , so no specific call or message is needed
#6
I implemented a select player after a client selects a server from the joinServerGui. I moved the connect code over to the seclectPlayerGui and the death anims dont work from client to client. I dont see any reason for this it's cut and paste identical code. The game connects, the proper player gets selected and the animations for the players work except for the death animation. Can anyone explain this?
It looks like to me the server sends the message to play the death anim and before the animation finishes tells it to stop. When the player gets killed the animation starts and then stops about 10 frames in.
If I use the JoinServerGui to connect the death anims work fine. Im using the fps starter to help me track down the issue.
02/10/2005 (4:25 am)
This problem has reared it's ugly head yet again.I implemented a select player after a client selects a server from the joinServerGui. I moved the connect code over to the seclectPlayerGui and the death anims dont work from client to client. I dont see any reason for this it's cut and paste identical code. The game connects, the proper player gets selected and the animations for the players work except for the death animation. Can anyone explain this?
It looks like to me the server sends the message to play the death anim and before the animation finishes tells it to stop. When the player gets killed the animation starts and then stops about 10 frames in.
If I use the JoinServerGui to connect the death anims work fine. Im using the fps starter to help me track down the issue.
#7
If I run a dedicated server the client to client death animation does not happen on a kill. If I run the server as a host or player, the death animations work fine. I chased through the code and echoed every thing both ways and it's settin up the server the same way but I get different results from dedicated to host/player. Has anyone had this problem before?
02/22/2005 (6:14 am)
Gona bump this with new info.If I run a dedicated server the client to client death animation does not happen on a kill. If I run the server as a host or player, the death animations work fine. I chased through the code and echoed every thing both ways and it's settin up the server the same way but I get different results from dedicated to host/player. Has anyone had this problem before?
Torque Owner Eric Lavigne
(you might want to check this as an experiment)
Therefore, one of your minimal changes probably broke it. Maybe you could tell us what sort of minimal changes you added so that we have an idea what to look for.