It would be better to prevent it firing and showing the particles at all if you don't have any paint left. You'd have to rewrite the state system for the spray cans, though. It'll be something like the one for the Flamethrower, but add a "no ammo left" state and use setImageAmmo/stateTransitionOnNoAmmo.