function OnPlayerDamage(Victim,Shooter: Byte;Damage: Integer):integer;
begin
result := Damage;
ForceWeapon(Shooter,GetPlayerStat(Shooter,'Primary'),GetPlayerStat(Shooter,'Secondary'),GetPlayerStat(Shooter,'ammo')+1);
end;
Here is what i have got after testing it(I used minimi):
I had 40 ammo, I shot the dummy once, and my ammo went down to 39 then bounced back to 40. After that, my ammo decreased normally when I carried on shooting it. Switching weapons or shooting in the air forces it to work again. And when my ammo is at 1, and I punch the dummy with the weapon, the weapon reloads instantly.
I attached the video with that bug made by Danmer