Skip to content

Commit

Permalink
Merge branch 'PvE-CMSS13:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
AmoryBlaine authored Apr 6, 2024
2 parents 8ff1f48 + 75a1a15 commit 298847c
Show file tree
Hide file tree
Showing 34 changed files with 75,667 additions and 27 deletions.
1 change: 1 addition & 0 deletions code/__DEFINES/__game.dm
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ block( \
#define MAP_RUNTIME "USS Runtime"
#define MAP_LV522_CHANCES_CLAIM "LV-522 Chance's Claim" // Highpop Only
#define MAP_NEW_VARADERO "New Varadero"//ice colony underground but as its own map
#define MAP_NEW_VARADERO_REPAIRED "New Varadero Repaired"
#define MAP_CHINOOK "Chinook 91 GSO" //admin level
#define MAP_DERELICT_ALMAYER "Derelict Almayer"

Expand Down
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
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
4 changes: 2 additions & 2 deletions code/game/objects/items/storage/misc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
desc = "A small case containing the once-standard sidearm of the UPP, the Type 73, and two additional magazines. The contained sidearm is probably looted off a dead officer or from a captured stockpile, either way this thing is worth a pretty penny."
icon = 'icons/obj/items/storage.dmi'
icon_state = "matebacase"
w_class = SIZE_MEDIUM
w_class = SIZE_LARGE
max_w_class = SIZE_MEDIUM
storage_slots = 3

Expand All @@ -143,7 +143,7 @@
desc = "A relatively large storage case containing the 1911 and additional magazines. Purchased by enlisted or aspiring PMCs looking to carry a timeless classic"
icon = 'icons/obj/items/storage.dmi'
icon_state = "matebacase"
w_class = SIZE_MEDIUM
w_class = SIZE_LARGE
max_w_class = SIZE_MEDIUM
storage_slots = 3

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/storage/belt/marine/smartgunner(src)
new /obj/item/storage/belt/gun/smartgunner(src)
new /obj/item/clothing/glasses/night/m56_goggles/no_nightvision(src)

/obj/structure/closet/secure_closet/smartgunner_forecon
name = "smartgunner locker"
Expand All @@ -162,6 +163,7 @@
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)
new /obj/item/clothing/glasses/night/m56_goggles/no_nightvision(src)

/obj/structure/closet/cryo/Initialize()
. = ..()
Expand All @@ -171,3 +173,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)
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
return ..()

/obj/structure/closet/secure_closet/marine_personal/allowed(mob/M)
if(owner == M.name)
if(owner == M.real_name)
return TRUE
return FALSE

Expand Down
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
1 change: 1 addition & 0 deletions code/modules/cm_marines/equipment/maps.dm
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ GLOBAL_LIST_INIT_TYPED(map_type_list, /obj/item/map, setup_all_maps())
MAP_KUTJEVO = new /obj/item/map/kutjevo_map(),
MAP_LV522_CHANCES_CLAIM = new /obj/item/map/lv522_map(),
MAP_NEW_VARADERO = new /obj/item/map/new_varadero(),
MAP_NEW_VARADERO_REPAIRED = new /obj/item/map/new_varadero(),
MAP_DERELICT_ALMAYER = new /obj/item/map/almayer(),
)

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
1 change: 1 addition & 0 deletions code/modules/projectiles/ammo_boxes/round_boxes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
overlay_content = "_reg"
default_ammo = /datum/ammo/bullet/smartgun
caliber = "10x28mm"
bullet_amount = 1000
max_bullet_amount = 1000

/obj/item/ammo_box/rounds/smartgun/empty
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.
3 changes: 3 additions & 0 deletions map_config/maps.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ endmap
map new_varadero
endmap

map new_varadero_repaired
endmap

map derelict_almayer
endmap

Expand Down
14 changes: 8 additions & 6 deletions maps/map_files/LV624_Fixed/LV624_repaired.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -4636,6 +4636,9 @@
/obj/structure/flora/bush/ausbushes/var3/leafybush,
/turf/open/auto_turf/strata_grass/layer1,
/area/lv624/ground/caves/central_caves)
"faY" = (
/turf/open/gm/dirtgrassborder/grassdirt_corner2/south_east,
/area/lv624/ground/jungle/south_central_jungle)
"faZ" = (
/obj/structure/surface/table,
/obj/item/tool/kitchen/utensil/knife,
Expand Down Expand Up @@ -5838,7 +5841,7 @@
/area/lv624/lazarus/landing_zones/lz1)
"gxv" = (
/obj/structure/surface/table/reinforced/prison,
/obj/structure/machinery/faxmachine,
/obj/structure/machinery/faxmachine/corporate/liaison,
/turf/open/floor{
dir = 9;
icon_state = "whiteyellow"
Expand Down Expand Up @@ -16947,7 +16950,6 @@
"sPK" = (
/obj/structure/machinery/door/airlock/almayer/generic{
dir = 1;
locked = 1;
name = "\improper Storage Room"
},
/turf/open/floor{
Expand Down Expand Up @@ -36745,8 +36747,8 @@ gOl
gOl
gOl
tOc
eUI
mdK
tOc
fcJ
mdK
aeW
bZf
Expand Down Expand Up @@ -36969,8 +36971,8 @@ fMc
bFS
fMc
lDp
eUI
mdK
faY
iwh
mdK
hOD
vLL
Expand Down
Loading

0 comments on commit 298847c

Please sign in to comment.