Found another great one which explains some badges not being awarded in CSDM (all the basic ones really..)
To save CPU time I've made it only check badges every 3 deaths (In CSDM) and to get the basic badges you need to get 3/4 kills with a gun without dieing..
But if the badge doesn't get checked on your next death (2/3 chance that it won't) you won't get the badge because the stats are cleared on death.
Might have to rewrite the badge check to check some stuff every death and others every 3..