Mega Man 8-Bit Deathmatch Forum

[Bug] Ammo Pickup Script returns 0 if 1 is entered
Great Glass • November. 25, 2026, 11:30 AM
November. 25, 2026, 11:30 AM Copy Link
https://drive.google.com/file/d/11tJ81-to9PtMIErUiJtZv_ygCBadgTr9/view?usp=drive_link
Pretty much what it says in the title, if the ammo pickup script has a value of 1 entered into it, then it will return zero. I have linked a small mod to test this feature, that sets the amount of ammo that SHOULD be given by small ammo pickups to 1, but will give none at all.
Trillster Administrator
what's a code
Administrator
what's a code
November. 25, 2026, 12:08 PM Copy Link
This is worked as intended, ammo and health regain are generally done as a percentage gain, so by entering 1, you're saying that you want to give 1% ammo. Most weapons don't have a sufficient ammo max for to this calculate out correctly (28 * 0.01 = 0.28 which rounds down to 0), so you should be giving ammo in higher increments.