All that is necessary is to code it so that a dead pilot always slumps onto the controls, forcing the plane out of any possible auto pilot or auto trim condition. He can slump forward, forward left, forward right, what ever, just make the pilot slump onto the controls to full deflection in any direction(s) and the plane will crash, regardless of trim or auto pilot.