anchor.diff:  
   /obj/machinery/porta_turret/proc/assess_perp(mob/living/carbon/human/perp)
   	var/threatcount = 0	//the integer returned
  -	
  +
   	if(obj_flags & EMAGGED)
   		return 10	//if emagged, always return 10.
   
  
positive.code: 			if("manual")
  				if(issilicon(usr) && !manual_control)
  					give_control(usr)
  			
  		interact(usr)
  
  /obj/machinery/porta_turret/power_change()
  
negative.code: 
  			//if the target is a human and not in our faction, analyze threat level
  			if(ishuman(C) && !in_faction(C))
  
  				if(assess_perp(C) >= 4)
  					if(shoot_heads_of_staff)
  						targets += C
  						continue
  					else
  						var/obj/item/card/id/I = C.get_idcard(TRUE)
  						if (I?.assignment in GLOB.command_positions)
  							continue
  						else
  							targets += C
  							continue
  			else if(check_anomalies) //non humans who are not simple animals (xenos etc)
  				if(!in_faction(C))
  					targets += C
  