anchor.diff:  	else if(!always_up)
   		popDown() // no valid targets, close the cover
   
  +/obj/machinery/porta_turret/proc/randomize_shot_stagger()
  +	shot_stagger = rand(0, min(2 SECONDS, round(shot_delay/3, world.tick_lag)))
  +
   /obj/machinery/porta_turret/proc/tryToShootAt(list/atom/movable/targets)
   	while(targets.len > 0)
   		var/atom/movable/M = pick(targets)
   		targets -= M
   		if(target(M))
   			return 1
  -
   
   /obj/machinery/porta_turret/proc/popUp()	//pops the turret up
   	if(!anchored)
  
positive.code: 
  	var/last_fired = 0		//world.time the turret last fired
  	var/shot_delay = 15		//ticks until next shot (1.5 ?)
  
  
  	var/check_records = 1	//checks if it can use the security records
  	var/criminals = 1		//checks if it can shoot people on arrest
  
negative.code: 	active_power_usage = 300	//when active, this turret takes up constant 300 Equipment power
  	req_access = list(ACCESS_SEC_DOORS)
  	power_channel = EQUIP	//drains power from the EQUIPMENT channel
  	speed_process = TRUE
  
  	var/base_icon_state = "standard"
  	var/scan_range = 7
  