Quote:
Originally Posted by philipjfry
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.