News for hackers. Stuff that matters.
Re:A time-travelling door bug in Half Life 2 by bakugo on Sunday November 23, 2025 @07:45PM (#46029014)
The game has ammo pickups that refill 20% and 50% of whatever your max ammo is, so floats have to be involved in there somewhere.
Re:A time-travelling door bug in Half Life 2 by manwe150 on Sunday November 23, 2025 @08:13PM (#46029190)
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
Re:A time-travelling door bug in Half Life 2 by shultays on Monday November 24, 2025 @05:49AM (#46032605)
Or more generalized "ammo += (maxAmmo * percentageToFill) / 100"