AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   [L4D2] Capture tank dying before its dead (https://forums.alliedmods.net/showthread.php?t=123164)

MarshalZCC 04-03-2010 03:11

[L4D2] Capture tank dying before its dead
 
When a tank is killed in L4D2, it goes into a death animation and its health shoots back up into the thousands. After a few seconds it finally "really" dies. However, I'd like to know when it actually begins to go into its death animation. As far as I can tell, player_death and tank_killed events only get triggered when it "really" dies. Anyone know of a way? Thanks.

Oshroth 04-03-2010 03:43

Re: [L4D2] Capture tank dying before its dead
 
player_incapacitated gets called around when the tank goes into its death animation. I'm not sure what you need to check for though, you might be able to find the tank by doing a team check (infected is 3).

Frus 04-03-2010 03:45

Re: [L4D2] Capture tank dying before its dead
 
check the team and zombieclass netprop ;)

Isn't there a tank_incapacitated event, or am I crazy?

MarshalZCC 04-03-2010 11:00

Re: [L4D2] Capture tank dying before its dead
 
Awesome. The incapacitated flag worked for what I needed. I didn't realize it applied to the tank in addition to the survivors. I would never have guessed that 3-5 second period would have been considered incapacitated.

Oshroth 04-03-2010 12:53

Re: [L4D2] Capture tank dying before its dead
 
According to the person who told me about it, L4D1/2 calls the incap event so that the death animation can play otherwise the tank would just ragdoll or require much more complicated coding to use the death animation.

Also whatever you do, don't give the tank health while he is in his death animation or it will loop continuously with his voice getting angrier and angrier.

M249-M4A1 04-03-2010 17:14

Re: [L4D2] Capture tank dying before its dead
 
Quote:

Originally Posted by Oshroth (Post 1137762)
According to the person who told me about it, L4D1/2 calls the incap event so that the death animation can play otherwise the tank would just ragdoll or require much more complicated coding to use the death animation.

Also whatever you do, don't give the tank health while he is in his death animation or it will loop continuously with his voice getting angrier and angrier.

offtopic but glad to know this info because i used the weapon unlock plugin and made awp's do 99999 damge and wondered why tanks never did the death animation

ztar 04-04-2010 20:20

Re: [L4D2] Capture tank dying before its dead
 
Quote:

Originally Posted by M249-M4A1 (Post 1137998)
offtopic but glad to know this info because i used the weapon unlock plugin and made awp's do 99999 damge and wondered why tanks never did the death animation

When Tank starts death animation, His health is temporarily set to default MAX and dies few seconds after.
So... I think If you deals damage more than his MAX health at a time, He dies without death animation.

Sorry for poor sentence.:wink:


All times are GMT -4. The time now is 09:35.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.