Wasn't sure if I should post this here or in the coding section but since It's game related i'll post it here, some of you may or may not have heard that Disney bought the star wars licence and are closing down lucas arts, The studio behind amazing games like Star wars : jedi Knights (If you haven't played that I strongly recommend that you do ^^) so anyway the studio decided to release the source code for multiple games which is epic, a lot can be learned from it. get the source for jedi academy
here and the one for jedi outcast
here.