Merge pull request #5472 from Citadel-Station-13/upstream-merge-35427
[MIRROR] Fixes Battlecruiser Turrets and Improves Turret's Faction Capabilities
This commit is contained in:
@@ -67,7 +67,7 @@
|
||||
|
||||
var/on = TRUE //determines if the turret is on
|
||||
|
||||
var/faction = "turret" // Same faction mobs will never be shot at, no matter the other settings
|
||||
var/list/faction = list("turret") // Same faction mobs will never be shot at, no matter the other settings
|
||||
|
||||
var/datum/effect_system/spark_spread/spark_system //the spark system, used for generating... sparks?
|
||||
|
||||
@@ -488,9 +488,10 @@
|
||||
|
||||
|
||||
/obj/machinery/porta_turret/proc/in_faction(mob/target)
|
||||
if(!(faction in target.faction))
|
||||
return 0
|
||||
return 1
|
||||
for(var/faction1 in faction)
|
||||
if(faction1 in target.faction)
|
||||
return TRUE
|
||||
return FALSE
|
||||
|
||||
/obj/machinery/porta_turret/proc/target(atom/movable/target)
|
||||
if(target)
|
||||
@@ -570,7 +571,7 @@
|
||||
stun_projectile_sound = 'sound/weapons/gunshot.ogg'
|
||||
icon_state = "syndie_off"
|
||||
base_icon_state = "syndie"
|
||||
faction = ROLE_SYNDICATE
|
||||
faction = list(ROLE_SYNDICATE)
|
||||
emp_vunerable = 0
|
||||
desc = "A ballistic machine gun auto-turret."
|
||||
|
||||
@@ -606,7 +607,7 @@
|
||||
lethal_projectile = /obj/item/projectile/bullet/syndicate_turret
|
||||
|
||||
/obj/machinery/porta_turret/ai
|
||||
faction = "silicon"
|
||||
faction = list("silicon")
|
||||
|
||||
/obj/machinery/porta_turret/ai/assess_perp(mob/living/carbon/human/perp)
|
||||
return 10 //AI turrets shoot at everything not in their faction
|
||||
@@ -618,7 +619,7 @@
|
||||
lethal_projectile = /obj/item/projectile/plasma/turret
|
||||
lethal_projectile_sound = 'sound/weapons/plasma_cutter.ogg'
|
||||
mode = TURRET_LETHAL //It would be useless in stun mode anyway
|
||||
faction = "neutral" //Minebots, medibots, etc that should not be shot.
|
||||
faction = list("neutral","silicon","turret") //Minebots, medibots, etc that should not be shot.
|
||||
|
||||
/obj/machinery/porta_turret/aux_base/assess_perp(mob/living/carbon/human/perp)
|
||||
return 0 //Never shoot humanoids. You are on your own if Ashwalkers or the like attack!
|
||||
@@ -647,7 +648,7 @@
|
||||
stun_projectile_sound = 'sound/weapons/plasma_cutter.ogg'
|
||||
icon_state = "syndie_off"
|
||||
base_icon_state = "syndie"
|
||||
faction = "turret"
|
||||
faction = list("neutral","silicon","turret")
|
||||
emp_vunerable = 0
|
||||
mode = TURRET_LETHAL
|
||||
|
||||
@@ -664,7 +665,7 @@
|
||||
desc = "A turret built with substandard parts and run down further with age. Still capable of delivering lethal lasers to the odd space carp, but not much else."
|
||||
stun_projectile = /obj/item/projectile/beam/weak
|
||||
lethal_projectile = /obj/item/projectile/beam/weak
|
||||
faction = "neutral"
|
||||
faction = list("neutral","silicon","turret")
|
||||
|
||||
////////////////////////
|
||||
//Turret Control Panel//
|
||||
|
||||
Reference in New Issue
Block a user