fixed and tested #1516

also removed some functions from CfgFunctios that were moved to AGM_Captives