Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into pr/grifp71/213
Browse files Browse the repository at this point in the history
  • Loading branch information
morrowwolf committed Apr 6, 2024
2 parents 36c99dd + 75a1a15 commit a47b637
Show file tree
Hide file tree
Showing 25 changed files with 69 additions and 20 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 @@ -91,6 +91,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
9 changes: 7 additions & 2 deletions code/game/objects/items/storage/large_holster.dm
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,17 @@
name = "\improper QH20 pattern M2100 custom machete scabbard"
desc = "A large leather scabbard used to carry a M2100 \"Ngájhe\" machete. It can be strapped to the back or the armor."
icon_state = "arnold-machete-pouch"
flags_equip_slot = SLOT_WAIST|SLOT_BACK
can_hold = list(/obj/item/weapon/sword/machete)

/obj/item/storage/large_holster/machete/arnold/full/fill_preset_inventory()
new /obj/item/weapon/sword/machete/arnold(src)

/obj/item/storage/large_holster/machete/arnold/weak
name = "\improper QH20 pattern M2100 machete scabbard"
desc = "A large leather scabbard used to carry a M2100 machete. It can be strapped to the back or the armor."

/obj/item/storage/large_holster/machete/arnold/weak/fill_preset_inventory()
new /obj/item/weapon/sword/machete/arnold/weak(src)

/obj/item/storage/large_holster/katana
name = "\improper katana scabbard"
desc = "A large, vibrantly colored katana scabbard used to carry a Japanese sword. It can be strapped to the back or worn at the belt. Because of the sturdy wood casing of the scabbard, it makes an okay defensive weapon in a pinch."
Expand Down
8 changes: 7 additions & 1 deletion code/game/objects/items/weapons/blades.dm
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,16 @@

/obj/item/weapon/sword/machete/arnold
name = "\improper M2100 \"Ngájhe\" machete"
desc = "An older issue USCM machete, never left testing. Designed in the Central African Republic. The notching made it hard to clean, and as such the USCM refused to adopt it - despite the superior bludgeoning power offered. Difficult to carry with the usual kit."
desc = "An older issue USCM machete, never left testing. Designed in the Central African Republic. The notching made it hard to clean, and as such the USCM refused to adopt it - despite the superior bludgeoning power offered. Difficult to carry with the usual kit ."
icon_state = "arnold-machete"
item_state = "arnold-machete"
force = MELEE_FORCE_TIER_11

/obj/item/weapon/sword/machete/arnold/weak
name = "\improper M2100 machete"
desc = "An older issue USCM machete, never left testing. Designed in the Central African Republic. The notching made it hard to clean, and as such the USCM refused to adopt it - despite the superior bludgeoning power offered. This one has been poorly maintained and as such can't really outperform adopted M2132 machete."
force = MELEE_FORCE_STRONG

/obj/item/weapon/sword/hefa
name = "HEFA sword"
icon_state = "hefasword"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
new /obj/item/ammo_magazine/smartgun(src)
new /obj/item/ammo_magazine/smartgun(src)
new /obj/item/ammo_magazine/smartgun(src)
new /obj/item/clothing/glasses/night/m56_goggles/no_nightvision(src)

/obj/structure/closet/secure_closet/smartgunner_forecon
name = "smartgunner locker"
Expand All @@ -160,8 +161,8 @@
new /obj/item/ammo_magazine/smartgun(src)
new /obj/item/ammo_magazine/smartgun(src)
new /obj/item/ammo_magazine/smartgun(src)
new /obj/item/ammo_magazine/smartgun(src)
new /obj/item/ammo_magazine/smartgun(src)
new /obj/item/storage/belt/marine/smartgunner/standard(src)
new /obj/item/storage/belt/gun/smartgunner/standard(src)

/obj/structure/closet/cryo/Initialize()
. = ..()
Expand All @@ -171,3 +172,4 @@
new /obj/item/clothing/shoes/marine/knife(src)
new /obj/item/device/radio/headset/almayer/marine(src)
new /obj/item/device/radio/headset/almayer/marine(src)
new /obj/item/clothing/glasses/night/m56_goggles/no_nightvision(src)
5 changes: 5 additions & 0 deletions code/modules/client/preferences_gear.dm
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,11 @@ var/global/list/gear_datums_by_name = list()
path = /obj/item/storage/box/M1911_loadout
allowed_origins = USCM_ORIGINS

/datum/gear/weapon/m2100_machete
display_name = "M2100 Machete"
path = /obj/item/storage/large_holster/machete/arnold/weak
allowed_origins = USCM_ORIGINS

/datum/gear/drink
category = "Canned drinks"

Expand Down
7 changes: 7 additions & 0 deletions code/modules/clothing/glasses/night.dm
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
actions_types = list(/datum/action/item_action/toggle, /datum/action/item_action/m56_goggles/far_sight)
vision_flags = SEE_TURFS
fullscreen_vision = null
eye_protection = EYE_PROTECTION_FLAVOR
req_skill = SKILL_SPEC_WEAPONS
req_skill_level = SKILL_SPEC_SMARTGUN

Expand Down Expand Up @@ -198,6 +199,12 @@
else
button.icon_state = "template"

/obj/item/clothing/glasses/night/m56_goggles/no_nightvision
actions_types = list(/datum/action/item_action/toggle)
darkness_view = 0
vision_flags = 0
lighting_alpha = 255

/obj/item/clothing/glasses/night/m56_goggles/whiteout
name = "\improper M56T head mounted sight"
desc = "A headset and goggles system for the M56T 'Terminator' Smartgun. Has a low-light vision processor as well as a system allowing detection of thermal signatures though solid surfaces."
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
2 changes: 1 addition & 1 deletion code/modules/gear_presets/cmb.dm
Original file line number Diff line number Diff line change
Expand Up @@ -635,4 +635,4 @@
new_human.equip_to_slot_or_del(new /obj/item/storage/belt/marine/smartgunner/full/, WEAR_WAIST)
new_human.equip_to_slot_or_del(new /obj/item/clothing/head/headband/red, WEAR_HEAD)
new_human.equip_to_slot_or_del(new /obj/item/device/radio/headset/almayer/marine/cryo, WEAR_L_EAR)
new_human.equip_to_slot_or_del(new /obj/item/clothing/glasses/night/m56_goggles, WEAR_EYES)
new_human.equip_to_slot_or_del(new /obj/item/clothing/glasses/night/m56_goggles/no_nightvision, WEAR_EYES)
1 change: 1 addition & 0 deletions code/modules/gear_presets/dust_raider.dm
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
//Backup SMG Weapon
new_human.equip_to_slot_or_del(new /obj/item/storage/belt/gun/smartgunner/full(new_human), WEAR_WAIST)
new_human.equip_to_slot_or_del(new /obj/item/clothing/head/helmet/marine(new_human), WEAR_HEAD)
new_human.equip_to_slot_or_del(new /obj/item/clothing/glasses/night/m56_goggles/no_nightvision(new_human), WEAR_EYES)
new_human.equip_to_slot_or_del(new /obj/item/storage/pouch/magazine/large/pmc_m39(new_human), WEAR_L_STORE)

//*****************************************************************************************************/
Expand Down
1 change: 1 addition & 0 deletions code/modules/gear_presets/pmc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -994,6 +994,7 @@ list("POUCHES (CHOOSE 2)", 0, null, null, null),
new_human.equip_to_slot_or_del(new /obj/item/clothing/suit/storage/marine/smartgunner/veteran/pmc, WEAR_JACKET)
new_human.equip_to_slot_or_del(new /obj/item/clothing/gloves/marine/veteran/pmc, WEAR_HANDS)
new_human.equip_to_slot_or_del(new /obj/item/clothing/head/helmet/marine/veteran/pmc/gunner, WEAR_HEAD)
new_human.equip_to_slot_or_del(new /obj/item/clothing/glasses/night/m56_goggles/no_nightvision(new_human), WEAR_EYES)
new_human.equip_to_slot_or_del(new /obj/item/clothing/shoes/veteran/pmc/knife, WEAR_FEET)
new_human.equip_to_slot_or_del(new /obj/item/clothing/mask/gas/pmc/leader, WEAR_FACE)
new_human.equip_to_slot_or_del(new /obj/item/clothing/accessory/storage/black_vest, WEAR_ACCESSORY)
Expand Down
4 changes: 4 additions & 0 deletions code/modules/gear_presets/uscm.dm
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@
new_human.equip_to_slot_or_del(new /obj/item/clothing/suit/storage/marine/smartgunner(new_human), WEAR_JACKET)
new_human.equip_to_slot_or_del(new /obj/item/weapon/gun/smartgun(new_human), WEAR_J_STORE)
new_human.equip_to_slot_or_del(new /obj/item/clothing/head/helmet/specrag(new_human), WEAR_HEAD)
new_human.equip_to_slot_or_del(new /obj/item/clothing/glasses/night/m56_goggles/no_nightvision(new_human), WEAR_EYES)
new_human.equip_to_slot_or_del(new /obj/item/storage/belt/gun/smartgunner/full(new_human), WEAR_WAIST)
new_human.equip_to_slot_or_del(new /obj/item/clothing/shoes/marine/knife(new_human), WEAR_FEET)
new_human.equip_to_slot_or_del(new /obj/item/clothing/gloves/marine(new_human), WEAR_HANDS)
Expand Down Expand Up @@ -749,6 +750,9 @@
new_human.equip_to_slot_or_del(new /obj/item/storage/box/MRE(new_human), WEAR_IN_JACKET)
new_human.equip_to_slot_or_del(new /obj/item/storage/belt/gun/smartgunner/full(new_human), WEAR_WAIST)
new_human.equip_to_slot_or_del(new /obj/item/clothing/head/helmet/marine(new_human), WEAR_HEAD)
new_human.equip_to_slot_or_del(new /obj/item/clothing/glasses/night/m56_goggles/no_nightvision(new_human), WEAR_EYES)


new_human.equip_to_slot_or_del(new /obj/item/device/radio/headset/almayer/marine/cryo(new_human), WEAR_L_EAR)

/datum/equipment_preset/uscm/smartgunner_equipped/cryo
Expand Down
1 change: 1 addition & 0 deletions code/modules/gear_presets/whiteout.dm
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@
new_human.equip_to_slot_or_del(new /obj/item/device/radio/headset/distress/commando, WEAR_L_EAR)
//head
new_human.equip_to_slot_or_del(new /obj/item/clothing/head/helmet/marine/veteran/pmc/commando, WEAR_HEAD)
new_human.equip_to_slot_or_del(new /obj/item/clothing/glasses/night/m56_goggles/no_nightvision(new_human), WEAR_EYES)
//uniform
var/obj/item/clothing/under/marine/veteran/pmc/commando/M = new()
var/obj/item/clothing/accessory/storage/webbing/W = new()
Expand Down
2 changes: 2 additions & 0 deletions code/modules/gear_presets/wo.dm
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@
//head
new_human.equip_to_slot_or_del(new /obj/item/device/radio/headset/almayer/marine/mp_honor/com(new_human), WEAR_L_EAR)
new_human.equip_to_slot_or_del(new /obj/item/clothing/head/beret/marine/chiefofficer(new_human), WEAR_HEAD)
new_human.equip_to_slot_or_del(new /obj/item/clothing/glasses/night/m56_goggles/no_nightvision(new_human), WEAR_EYES)
//waist
new_human.equip_to_slot_or_del(new /obj/item/storage/belt/gun/smartgunner/full(new_human), WEAR_WAIST)
//limbs
Expand Down Expand Up @@ -703,6 +704,7 @@
new_human.equip_to_slot_or_del(new /obj/item/weapon/gun/smartgun(new_human), WEAR_J_STORE)
new_human.equip_to_slot_or_del(new /obj/item/storage/belt/gun/smartgunner/full(new_human), WEAR_WAIST)
new_human.equip_to_slot_or_del(new /obj/item/clothing/head/helmet/marine(new_human), WEAR_HEAD)
new_human.equip_to_slot_or_del(new /obj/item/clothing/glasses/night/m56_goggles/no_nightvision(new_human), WEAR_EYES)
new_human.equip_to_slot_or_del(new /obj/item/storage/pouch/firstaid/full(new_human), WEAR_L_STORE)

add_common_wo_equipment(new_human)
Expand Down
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/mob/humans/onmob/back.dmi
Binary file not shown.
Binary file modified icons/mob/humans/onmob/items_lefthand_0.dmi
Binary file not shown.
Binary file modified icons/mob/humans/onmob/items_righthand_0.dmi
Binary file not shown.
Binary file modified icons/mob/humans/onmob/suit_slot.dmi
Binary file not shown.
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/doors/securedoor.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 a47b637

Please sign in to comment.