I figured you would have done a search already... i just searched for 'halo gameflags' and got this:
http://cpansearch.perl.org/src/LINK/...Halo/Status.pm

There's a part for game and player flags, with the appropriate shifting and ANDing of the data... hope that helps.