From b7bdd4b583d5cf3ce4c61af555acfb2356c2a02f Mon Sep 17 00:00:00 2001 From: PsiOmegaDelta Date: Tue, 30 Jun 2015 15:08:29 +0200 Subject: [PATCH] Create Crescent/ERT portable turret presets. --- code/game/machinery/portable_turret.dm | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/code/game/machinery/portable_turret.dm b/code/game/machinery/portable_turret.dm index bcc09bc6817..9647a2a99c8 100644 --- a/code/game/machinery/portable_turret.dm +++ b/code/game/machinery/portable_turret.dm @@ -58,7 +58,13 @@ var/wrenching = 0 var/last_target //last target fired at, prevents turrets from erratically firing at all valid targets in range +/obj/machinery/porta_turret/crescent + ailock = 1 + check_access = 0 + check_records = 0 + /obj/machinery/porta_turret/stationary + ailock = 1 lethal = 1 installation = /obj/item/weapon/gun/energy/laser @@ -341,6 +347,8 @@ var/list/turret_icons /obj/machinery/porta_turret/proc/take_damage(var/force) if(!raised && !raising) + if(force < 10) + return force = force / 8 health -= force @@ -395,9 +403,9 @@ var/list/turret_icons if (prob(25)) qdel(src) else - take_damage(150) //should instakill most turrets + take_damage(initial(health) * 8) //should instakill most turrets if (3) - take_damage(50) + take_damage(400) /obj/machinery/porta_turret/proc/die() //called when the turret dies, ie, health <= 0 health = 0