Fix CoD4 native functions / restructuring / cleanup