Quote:
Originally Posted by Aya Supay
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