If you want to stop rape in war, just neuter all soldiers after enlistment. It might end war after a few generations too.