Comment on A time-travelling door bug in Half Life 2parentComments−manwe1509moDividing by 5 or 2, respectively, are integers, if the game developers wanted them to be. More so because the actual units of ammo need to be integers if they are to render as full bullets each−shultays9moOr more generalized "ammo += (maxAmmo * percentageToFill) / 100"
Comments
Dividing by 5 or 2, respectively, are integers, if the game developers wanted them to be. More so because the actual units of ammo need to be integers if they are to render as full bullets each
Or more generalized "ammo += (maxAmmo * percentageToFill) / 100"