Skip to content

Commit

Permalink
Upp sentry + sentry respirte by amory (#191)
Browse files Browse the repository at this point in the history
Tests well. Makes the UPP platoon more unique.
  • Loading branch information
AndroBetel committed Apr 6, 2024
1 parent a34e81e commit 1b52945
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 14 deletions.
6 changes: 6 additions & 0 deletions code/datums/ammo/bullet/special_ammo.dm
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@
shell_speed = 2*AMMO_SPEED_TIER_6
accuracy = HIT_ACCURACY_TIER_5

/datum/ammo/bullet/turret/upp
damage = 45
penetration = ARMOR_PENETRATION_TIER_2
accuracy_var_low = PROJECTILE_VARIANCE_TIER_2
accuracy_var_high = PROJECTILE_VARIANCE_TIER_2

/datum/ammo/bullet/turret/dumb
icon_state = "bullet"
flags_ammo_behavior = AMMO_BALLISTIC
Expand Down
8 changes: 5 additions & 3 deletions code/modules/defenses/defenses.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
name = "Don't see this"
desc = "Call for help."
icon = 'icons/obj/structures/machinery/defenses/sentry.dmi'
icon_state = "defense_base_off"
icon_state = "defense_base"
var/icon_off = "defense_base_off"
var/icon_on = "defense_base"
anchored = TRUE
unacidable = TRUE
density = TRUE
Expand Down Expand Up @@ -69,9 +71,9 @@
if(!composite_icon)
icon_state = null
else if(turned_on)
icon_state = "defense_base"
icon_state = icon_on
else
icon_state = "defense_base_off"
icon_state = icon_off


/obj/structure/machinery/defenses/get_examine_text(mob/user)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/defenses/handheld.dm
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@
/obj/item/defenses/handheld/sentry/upp
name = "handheld UPPA 32-H sentry gun"
desc = "A compact version of the UPPA defenses. Designed for quick deployment of the associated type in the field."
icon_state = "UPP uac_sentry_handheld"
defense_type = /obj/structure/machinery/defenses/sentry/upp


// FLAMER BASE AND UPGRADES
/obj/item/defenses/handheld/sentry/flamer
name = "handheld UA 42-F sentry flamer"
Expand Down
8 changes: 8 additions & 0 deletions code/modules/defenses/sentry.dm
Original file line number Diff line number Diff line change
Expand Up @@ -762,6 +762,9 @@
/obj/structure/machinery/defenses/sentry/upp
name = "\improper UPPA 32-H sentry gun"
desc = "A deployable, semi-automated turret with AI targeting capabilities. Armed with an AK-500 Autocannon and a 500-round drum magazine."
icon_state = "upp_defense_base"
icon_on = "upp_defense_base"
icon_off = "upp_defense_base_off"
choice_categories = list(
SENTRY_CATEGORY_IFF = list(FACTION_UPP, FACTION_HUMAN),
)
Expand All @@ -770,6 +773,11 @@
SENTRY_CATEGORY_IFF = FACTION_UPP,
)
start_up_message = "Sentry mounted and loaded. Glory to the UPP."
defense_type = "UPP"
handheld_type = /obj/item/defenses/handheld/sentry/upp
fire_delay = 1.2
firing_sound = 'sound/weapons/gun_m56d_auto.ogg'
ammo = new /obj/item/ammo_magazine/sentry/upp

#undef SENTRY_FIREANGLE
#undef SENTRY_RANGE
7 changes: 7 additions & 0 deletions code/modules/projectiles/magazines/sentries.dm
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@
/obj/item/ammo_magazine/sentry/premade/dumb
default_ammo = /datum/ammo/bullet/turret/dumb

/obj/item/ammo_magazine/sentry/upp
name = "AK-500 ammo drum (7.62mm Caseless)"
desc = "An ammo drum of 7.62mm caseless rounds for the UPPA 32-H sentry. Just feed it into the sentry gun's ammo port when its ammo is depleted."
icon = 'icons/obj/items/weapons/guns/ammo_by_faction/upp.dmi'
icon_state = "sentry"
default_ammo = /datum/ammo/bullet/turret/upp

/obj/item/ammo_magazine/sentry/shotgun
name = "12g buckshot drum"
desc = "An ammo drum of 50 12g buckshot drums for the UA 12-G Shotgun Sentry. Just feed it into the sentry gun's ammo port when its ammo is depleted."
Expand Down
Binary file modified icons/obj/items/weapons/guns/ammo_by_faction/upp.dmi
Binary file not shown.
Binary file modified icons/obj/items/weapons/guns/ammo_by_faction/uscm.dmi
Binary file not shown.
Binary file modified icons/obj/structures/machinery/defenses/sentry.dmi
Binary file not shown.
12 changes: 2 additions & 10 deletions maps/map_files/chapaev/chapaev.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -2569,12 +2569,8 @@
/area/golden_arrow/briefing)
"yu" = (
/obj/structure/surface/rack,
/obj/item/ammo_magazine/sentry{
layer = 3.01;
name = "AK-500 ammo drum (7,62mm Caseless)";
desc = "An ammo drum of 500 7,62mm caseless rounds for the UPPA 32-H Sentry Gun. Just feed it into the sentry gun's ammo port when its ammo is depleted."
},
/obj/item/device/motiondetector/hacked,
/obj/item/ammo_magazine/sentry/upp,
/obj/item/defenses/handheld/sentry/upp,
/turf/open/floor/strata{
icon_state = "floor2"
Expand Down Expand Up @@ -3476,12 +3472,8 @@
/area/golden_arrow/hangar)
"GT" = (
/obj/structure/surface/rack,
/obj/item/ammo_magazine/sentry{
layer = 3.01;
name = "AK-500 ammo drum (7,62mm Caseless)";
desc = "An ammo drum of 500 7,62mm caseless rounds for the UPPA 32-H Sentry Gun. Just feed it into the sentry gun's ammo port when its ammo is depleted."
},
/obj/item/device/motiondetector/hacked,
/obj/item/ammo_magazine/sentry/upp,
/obj/item/defenses/handheld/sentry/upp,
/turf/open/floor/strata{
icon_state = "floor2"
Expand Down

0 comments on commit 1b52945

Please sign in to comment.