View Single Post
MasterMind420
BANNED
Join Date: Nov 2010
Old 05-22-2021 , 14:46   Re: [L4D2] How to make AI Tank die instantly on climb sequence?
Reply With Quote #2

Quote:
Originally Posted by philipjfry View Post
Hi,

When a bot Tank starts to climb over something and you've managed to already damage him to 10-30% HP, there is a moment of few seconds in the climb sequence where he becomes invulnerable (the tanks health gets set to 1) and you won't be able to kill him TILL this sequence is finished and you deliver a final blow.

Tanks health is low only few shots needed anymore -> *tank climbs* he gets shot "dead", but he isn't allowed to die, his health is set to 1. -> *tank finished climbing* his HP is still 1, needs 1 hit to die.

How to make it so he CAN be killed during the climb sequence?
Track In Sdkhook OnTakeDamage if he should have died(Damage greater than health), if so, use ForcePlayerSuicide function to force kill him.
MasterMind420 is offline