That's some seriously fucked up shit.
Willing combatants / Defenseless civilians
There's a common thread.
It's a machine.
It needs energy to operate.
This was the basis for training (programming)
robotic systems in the 80s.
Their now this close to fully autonomous action.
Referencing early industrial robot systems.
Welding / painting. Employ a human to use the robot arm to weld / paint. All movements in the servo motor powered joints were recorded on data tape. Tape playback reproduces what was trained. Great systems for mass production lines. Set it and forget it. PCs and floppies weren't a thing yet.