View Single Post
beefjerky331
Junior Member
Join Date: Sep 2020
Old 10-08-2020 , 10:26   Re: L4D2 tank automatically increases maximum health
Reply With Quote #10

Quote:
Originally Posted by Aya Supay View Post
Optimized code
Wrong:
SetTankHP = TankAddHP * iPlayersCount + TankBasicHP;

should be changed to this:
SetTankHP = (TankAddHP * (iPlayersCount-4)) + TankBasicHP;

because request is after more than 4 players , for each more player increase tank hp

a little bug,i dont know how to fix this,im coding noob
more than 4 players will useless, tank hp still 4000 , until restart the campaign

Last edited by beefjerky331; 10-08-2020 at 16:50. Reason: wrong words
beefjerky331 is offline