Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frontiersmen Turrets #3523

Merged
merged 4 commits into from
Oct 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 42 additions & 1 deletion code/game/machinery/porta_turret/portable_turret.dm
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ DEFINE_BITFIELD(turret_flags, list(
. = ..()
if(in_range(user, src) || isobserver(user))
if(!(machine_stat & BROKEN))
. += "<span class='notice'>[src] reports its integrity is currently [round(obj_integrity / max_integrity) * 100] percent.</span>"
. += "<span class='notice'>[src] reports its integrity is currently [round((obj_integrity / max_integrity) * 100)] percent.</span>"

/obj/machinery/porta_turret/ship/weak
max_integrity = 120
Expand Down Expand Up @@ -980,6 +980,47 @@ DEFINE_BITFIELD(turret_flags, list(
lethal_projectile = /obj/projectile/beam/hitscan/kalix/pgf/sniper //fwoom
lethal_projectile_sound = 'sound/weapons/gun/laser/heavy_laser.ogg'

/// Frontiersmen Turrets

// fast and spitty

/obj/machinery/porta_turret/ship/frontiersmen
name = "Spitter Turret"
desc = "A juryrigged mishmash of a 9mm SMG and targetting system. Stand clear!"
faction = list(FACTION_FRONTIER, "Turret")
subsystem_type = /datum/controller/subsystem/processing/fastprocess
integrity_failure = 0.6
max_integrity = 180

icon_state = "standard_lethal"
base_icon_state = "standard"

stun_projectile = /obj/projectile/bullet/c9mm
stun_projectile_sound = 'sound/weapons/gun/smg/spitter.ogg'
lethal_projectile = /obj/projectile/bullet/c9mm
lethal_projectile_sound = 'sound/weapons/gun/smg/spitter.ogg'
shot_delay = 2
scan_range = 6

/obj/machinery/porta_turret/ship/frontiersmen/light
name = "Pounder Turret"
desc = "A low caliber SMG with an atrociously high cycle rate, frankensteined together with a targetting assembly."
stun_projectile = /obj/projectile/bullet/c22lr
stun_projectile_sound = 'sound/weapons/gun/smg/pounder.ogg'
lethal_projectile = /obj/projectile/bullet/c22lr
lethal_projectile_sound = 'sound/weapons/gun/smg/pounder.ogg'
shot_delay = 1

/obj/machinery/porta_turret/ship/frontiersmen/heavy
name = "Mulcher Turret"
desc = "An abombination made out of the components of a Shredder and an automatic targetting system. Careful now."
stun_projectile = /obj/projectile/bullet/slug/beanbag
stun_projectile_sound = 'sound/weapons/gun/hmg/shredder.ogg'
lethal_projectile = /obj/projectile/bullet/slug
lethal_projectile_sound = 'sound/weapons/gun/hmg/shredder.ogg'
shot_delay = 3
scan_range = 8

////////////////////////
//Turret Control Panel//
////////////////////////
Expand Down
Loading