thats very ez to make actually!
lie kthis
evefytime you kill(same as ammo) you would subtract 1 mineral or gas, right?
so instead you get like....what...2 switches(4 chances, and set a death for a unit thats not ganan die, so the truigegr wont fire even when your not shooting)
then u randomize em and so you have a 1/4 chance of weapon taknig damage. then you could use death counters as your weapon hp. like 100 hp(lets say...starport deaths). when it reaches 0 you se t the emies to allies, and since u technicalyl cant realyl stop them frm shooting, just put "weapon broken....will have to shoto manually"
and when you switch weapons(i made an RPG on it) you save it as deaths.
so lets say your weapon has 50 damage, thast 50 deaths right? so there...ez each weapon has its own diferent death...so when you switch...your weapon is the same hp.also in the beginnig you shoudl set the ammo and hp to different...itll take a while.(liek say flame gun has 10 hp while machine gun has 20(so its liek 10 for barracks and 20 for starport) its a long process especially if u have 6 players!
there.,..im tired of typing...l8er all