puksometron
Member
Hi,
We have a weapon in our game that has a maximum of 360 bullets which is assigned in the ItemTypes. Each ItemPickup has 1 weapon ItemIdentifier and 360 bullets.
The issue is that when the player first picks up a weapon, he gets 48 bullets in his magazine and 312 bullets left over, so 48 + 312 = 360, which is the maximum. So in theory, the player shouldn't be able to pick up another ItemPickup unless he fire a few bullets.
But when he enters another weapon pickup, he still pickups up more bullets, so now he gets 48 + 360 = 408, which exceeds the maximum of 360.
After the second, the player is unable to pickup any more ItemPickups. Is this by design? Is there a way to make it so that the player picks up the ItemPickup once, and then doesn't have to pick it up again? It's a little odd that the player needs to pick up an ItemPickup twice in order to have the maximum. Shouldn't the magazine also contribute to the total number of bullets the player has? Any suggestions would be helpful. Thanks.
We have a weapon in our game that has a maximum of 360 bullets which is assigned in the ItemTypes. Each ItemPickup has 1 weapon ItemIdentifier and 360 bullets.
The issue is that when the player first picks up a weapon, he gets 48 bullets in his magazine and 312 bullets left over, so 48 + 312 = 360, which is the maximum. So in theory, the player shouldn't be able to pick up another ItemPickup unless he fire a few bullets.
But when he enters another weapon pickup, he still pickups up more bullets, so now he gets 48 + 360 = 408, which exceeds the maximum of 360.
After the second, the player is unable to pickup any more ItemPickups. Is this by design? Is there a way to make it so that the player picks up the ItemPickup once, and then doesn't have to pick it up again? It's a little odd that the player needs to pick up an ItemPickup twice in order to have the maximum. Shouldn't the magazine also contribute to the total number of bullets the player has? Any suggestions would be helpful. Thanks.