(agent_unequip_item,":cur_agent","itm_bullets"),
This line is used by the script that removes your cartridges while underwater, so I guess you could use a similair mechanism.
Admeditly I did not put too much effort in researching this answer but hope it helps.