Divorce and pregnant?

I know I obviously have to wait until the child is born, but anyone who's fought for FULL custody of the baby, what did the courts go by? 
What nit picky things did they look into? 
-I'm a military defendant right now, so obviously I will be moving across an ocean(HI-TX) and be jobless, and wondering how that will effect me.