Skip to content

Commit

Permalink
Feat: add Squad berets and smoking pipes (#143)
Browse files Browse the repository at this point in the history
* Добавление беретов и трубок

* Доработка спрайта

* Доработка спрайтов 2

* Переформатировал пару файлов для во избежание будущих конфликтов

Добавил игрушечную свинью
Перенес все свои добавления в файл RU_items.dm

* Фикс брони которую сломал Джоржан

* Переспрайт револьверной винтовки и её патронов автором
  • Loading branch information
Blundir authored and Bizzonium committed Nov 13, 2022
1 parent fce940d commit c3359ce
Show file tree
Hide file tree
Showing 20 changed files with 180 additions and 34 deletions.
18 changes: 16 additions & 2 deletions code/game/objects/items/tools/flame_tools.dm
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM
item_state = "pipeoff"
icon_on = "pipeon" //Note - these are in masks.dmi
icon_off = "pipeoff"
smoketime = 100
smoketime = 400

/obj/item/clothing/mask/cigarette/pipe/process()
var/turf/location = get_turf(src)
Expand Down Expand Up @@ -500,8 +500,22 @@ CIGARETTE PACKETS ARE IN FANCY.DM
item_state = "cobpipeoff"
icon_on = "cobpipeon" //Note - these are in masks.dmi
icon_off = "cobpipeoff"
smoketime = 400

/obj/item/clothing/mask/cigarette/pipe/cobpipe/curved
name = "curved corn cob pipe"
desc = "Usually seen smoked by generals, or mindless bloodlusted commandos... but with style!"
icon_state = "curvedcoboff"
item_state = "curvedcoboff"
icon_on = "curvedcobon" //Note - these are in masks.dmi
icon_off = "curvedcoboff"

/obj/item/clothing/mask/cigarette/pipe/bonepipe
name = "Europan bone pipe"
desc = "A smoking pipe made out of the bones of the Europan bone whale."
icon_state = "bonepipeoff"
item_state = "bonepipeoff"
icon_on = "bonepipeon" //Note - these are in masks.dmi
icon_off = "bonepipeoff"


/////////
Expand Down
6 changes: 6 additions & 0 deletions code/game/objects/machinery/vending/marine_vending.dm
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,7 @@
/obj/item/radio/headset/mainship/marine/bravo = -1,
/obj/item/radio/headset/mainship/marine/charlie = -1,
/obj/item/radio/headset/mainship/marine/delta = -1,
/obj/item/toy/plush/pig = 1,
),
"Mining Equipment" = list(
/obj/item/minerupgrade/automatic = 1,
Expand Down Expand Up @@ -1303,6 +1304,10 @@
/obj/item/clothing/head/squadhb/b = -1,
/obj/item/clothing/head/squadhb/c = -1,
/obj/item/clothing/head/squadhb/d = -1,
/obj/item/clothing/head/tgmcberet/squad = -1,
/obj/item/clothing/head/tgmcberet/squad/delta = -1,
/obj/item/clothing/head/tgmcberet/squad/alpha = -1,
/obj/item/clothing/head/tgmcberet/squad/bravo = -1,
/obj/item/clothing/head/slouch = -1,
/obj/item/clothing/head/headband/red = -1,
/obj/item/clothing/head/headband/rambo = -1,
Expand All @@ -1320,6 +1325,7 @@
/obj/item/clothing/head/tgmcberet/snow = -1,
/obj/item/clothing/head/beret/marine = -1,
/obj/item/clothing/head/tgmcberet = -1,
/obj/item/clothing/head/tgmcberet/commando = -1,
/obj/item/clothing/glasses/mgoggles = -1,
/obj/item/clothing/glasses/mgoggles/prescription = -1,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@
new /obj/item/clothing/suit/surgical(src)
new /obj/item/clothing/suit/surgical(src)
new /obj/item/storage/box/trampop(src)
new /obj/item/clothing/head/tgmcberet/medical(src)
new /obj/item/clothing/head/tgmcberet/medical(src)
if(is_mainship_level(z))
new /obj/item/radio/headset/mainship/doc(src)

Expand Down
53 changes: 53 additions & 0 deletions code/modules/client/preferences_gear.dm
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,35 @@ GLOBAL_LIST_EMPTY(gear_datums)
cost = 3
slot = SLOT_HEAD

/datum/gear/beret_charlie
display_name = "Charlie Squad beret"
path = /obj/item/clothing/head/tgmcberet/squad
cost = 3
slot = SLOT_HEAD

/datum/gear/beret_alpha
display_name = "Alpha Squad beret"
path = /obj/item/clothing/head/tgmcberet/squad/alpha
cost = 3
slot = SLOT_HEAD

/datum/gear/beret_delta
display_name = "Delta Squad beret"
path = /obj/item/clothing/head/tgmcberet/squad/delta
cost = 3
slot = SLOT_HEAD

/datum/gear/beret_bravo
display_name = "Bravo Squad beret"
path = /obj/item/clothing/head/tgmcberet/squad/bravo
cost = 3
slot = SLOT_HEAD

/datum/gear/beret_commando
display_name = "Marine Commando beret"
path = /obj/item/clothing/head/tgmcberet/commando
cost = 3
slot = SLOT_HEAD

/datum/gear/headband_green
display_name = "TGMC headband (green)"
Expand Down Expand Up @@ -194,6 +223,30 @@ GLOBAL_LIST_EMPTY(gear_datums)
cost = 2
slot = SLOT_WEAR_MASK

/datum/gear/cigarette/pipe
display_name = "Smoking pipe"
path = /obj/item/clothing/mask/cigarette/pipe
cost = 3
slot = SLOT_WEAR_MASK

/datum/gear/cigarette/pipe/corn
display_name = "Corn cob pipe"
path = /obj/item/clothing/mask/cigarette/pipe/cobpipe
cost = 3
slot = SLOT_WEAR_MASK

/datum/gear/cigarette/pipe/corn/curved
display_name = "Curved corn cob pipe"
path = /obj/item/clothing/mask/cigarette/pipe/cobpipe/curved
cost = 3
slot = SLOT_WEAR_MASK

/datum/gear/cigarette/pipe/bone
display_name = "Europan bone pipe"
path = /obj/item/clothing/mask/cigarette/pipe/bonepipe
cost = 3
slot = SLOT_WEAR_MASK

/datum/gear/ancient
display_name = "Ancient Gasmask"
path = /obj/item/clothing/mask/gas/ancient
Expand Down
31 changes: 5 additions & 26 deletions code/modules/clothing/head/head.dm
Original file line number Diff line number Diff line change
Expand Up @@ -154,21 +154,21 @@
desc = "The pinnacle of tacticool technology."
icon_state = "booniehatdg"
item_state = "booniehatdg"
soft_armor = list("melee" = 15, "bullet" = 15, "laser" = 15, "energy" = 15, "bomb" = 10, "bio" = 5, "rad" = 0, "fire" = 5, "acid" = 5)
soft_armor = list(MELEE = 15, BULLET = 15, LASER = 15, ENERGY = 15, BOMB = 10, BIO = 5, FIRE = 5, ACID = 5)

/obj/item/clothing/head/boonie/booniehattan
name = "Tan Boonie Hat"
desc = "The pinnacle of tacticool technology."
icon_state = "booniehattan"
item_state = "booniehattan"
soft_armor = list("melee" = 15, "bullet" = 15, "laser" = 15, "energy" = 15, "bomb" = 10, "bio" = 5, "rad" = 0, "fire" = 5, "acid" = 5)
soft_armor = list(MELEE = 15, BULLET = 15, LASER = 15, ENERGY = 15, BOMB = 10, BIO = 5, FIRE = 5, ACID = 5)

/obj/item/clothing/head/slouch
name = "\improper TGMC slouch hat"
desc = "A nice slouch hat worn by some TGMC troopers while on planets with hot weather, or just for style. While it has limited combat functionality, some prefer to wear it instead of the standard issue helmet."
icon_state = "slouch_hat"
icon = 'icons/obj/clothing/cm_hats.dmi'
soft_armor = list(MELEE = 15, BULLET = 15, LASER = 15, ENERGY = 15, BOMB = 10, BIO = 5, FIRE = 5, ACID = 5)
soft_armor = list(MELEE = 30, BULLET = 30, LASER = 30, ENERGY = 30, BOMB = 15, BIO = 10, FIRE = 20, ACID = 20)

/obj/item/clothing/head/headband
name = "\improper Cyan headband"
Expand Down Expand Up @@ -387,27 +387,6 @@
slot_r_hand_str = 'icons/mob/items_righthand_1.dmi',)
icon = 'icons/obj/clothing/cm_hats.dmi'
icon_state = "straw_hat"
soft_armor = list(MELEE = 30, BULLET = 30, LASER = 30, ENERGY = 30, BOMB = 15, BIO = 10, "rad" = 0, FIRE = 20, ACID = 20)
soft_armor = list(MELEE = 30, BULLET = 30, LASER = 30, ENERGY = 30, BOMB = 15, BIO = 10, FIRE = 20, ACID = 20)


/obj/item/clothing/head/squadhb
name = "\improper Alpha squad headband"
desc = "Headband made from ultra-thin special cloth. Cloth thickness provides more than just a stylish fluttering of headband. You can tie around headband onto a helmet. This squad version of a headband has secret unique features created by the cloth coloring component. "
icon = 'icons/obj/clothing/squad_hb.dmi'
item_icons = list(
slot_head_str = 'icons/mob/squadhb.dmi')
icon_state = "asquadhb"
soft_armor = list(MELEE = 0, BULLET = 0, LASER = 0, ENERGY = 0, BOMB = 0, BIO = 0, "rad" = 0, FIRE = 0, ACID = 0)
slowdown = -0.1
w_class = WEIGHT_CLASS_TINY

/obj/item/clothing/head/squadhb/b
name = "\improper Bravo squad headband"
icon_state = "bsquadhb"

/obj/item/clothing/head/squadhb/c
name = "\improper Charlie squad headband"
icon_state = "csquadhb"

/obj/item/clothing/head/squadhb/d
name = "\improper Delta squad headband"
icon_state = "dsquadhb"
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
can_flags = CASTE_CAN_BE_QUEEN_HEALED|CASTE_CAN_BE_GIVEN_PLASMA|CASTE_CAN_BE_LEADER|CASTE_CAN_VENT_CRAWL|CASTE_CAN_BECOME_KING

// *** Defense *** //
soft_armor = list(MELEE = 40, BULLET = 40, LASER = 40, ENERGY = 30, BOMB = 20, BIO = 30, "rad" = 30, FIRE = 35, ACID = 30)
soft_armor = list(MELEE = 40, BULLET = 40, LASER = 40, ENERGY = 30, BOMB = 20, BIO = 30, FIRE = 35, ACID = 30)

// *** Minimap Icon *** //
minimap_icon = "defiler"
Expand Down Expand Up @@ -92,7 +92,7 @@
upgrade_threshold = TIER_THREE_MATURE_THRESHOLD

// *** Defense *** //
soft_armor = list(MELEE = 45, BULLET = 45, LASER = 45, ENERGY = 45, BOMB = 20, BIO = 35, "rad" = 35, FIRE = 40, ACID = 35)
soft_armor = list(MELEE = 45, BULLET = 45, LASER = 45, ENERGY = 45, BOMB = 20, BIO = 35, FIRE = 40, ACID = 35)

// *** Pheromones *** //
aura_strength = 2 //Defilers aura begins at 1.7 and ends at 2.6. It's .1 better than a carrier at ancient.
Expand Down Expand Up @@ -120,7 +120,7 @@
upgrade_threshold = TIER_THREE_ELDER_THRESHOLD

// *** Defense *** //
soft_armor = list(MELEE = 50, BULLET = 50, LASER = 50, ENERGY = 50, BOMB = 30, BIO = 38, "rad" = 38, FIRE = 45, ACID = 38)
soft_armor = list(MELEE = 50, BULLET = 50, LASER = 50, ENERGY = 50, BOMB = 30, BIO = 38, FIRE = 45, ACID = 38)

// *** Pheromones *** //
aura_strength = 2.1 //Defilers aura begins at 1.7 and ends at 2.6. It's .1 better than a carrier at ancient.
Expand Down Expand Up @@ -148,7 +148,7 @@
upgrade_threshold = TIER_THREE_ANCIENT_THRESHOLD

// *** Defense *** //
soft_armor = list(MELEE = 55, BULLET = 55, LASER = 55, ENERGY = 55, BOMB = 30, BIO = 40, "rad" = 40, FIRE = 50, ACID = 40)
soft_armor = list(MELEE = 55, BULLET = 55, LASER = 55, ENERGY = 55, BOMB = 30, BIO = 40, FIRE = 50, ACID = 40)

// *** Pheromones *** //
aura_strength = 2.6 //Defilers aura begins at 1.7 and ends at 2.6. It's .1 better than a carrier at ancient.
Expand All @@ -174,7 +174,7 @@
max_health = 400

// *** Defense *** //
soft_armor = list(MELEE = 55, BULLET = 55, LASER = 55, ENERGY = 55, BOMB = 30, BIO = 40, "rad" = 40, FIRE = 50, ACID = 40)
soft_armor = list(MELEE = 55, BULLET = 55, LASER = 55, ENERGY = 55, BOMB = 30, BIO = 40, FIRE = 50, ACID = 40)

// *** Pheromones *** //
aura_strength = 2.6 //Defilers aura begins at 1.7 and ends at 2.6. It's .1 better than a carrier at ancient.
Expand Down
Binary file modified icons/Marine/gun64.dmi
Binary file not shown.
Binary file modified icons/mob/mask.dmi
Binary file not shown.
Binary file added icons/mob/pig_lefthand.dmi
Binary file not shown.
Binary file added icons/mob/pig_righthand.dmi
Binary file not shown.
Binary file modified icons/mob/squadhb.dmi
Binary file not shown.
Binary file modified icons/obj/clothing/masks.dmi
Binary file not shown.
Binary file modified icons/obj/clothing/squad_hb.dmi
Binary file not shown.
Binary file modified icons/obj/items/ammo.dmi
Binary file not shown.
Binary file modified icons/obj/items/items_mini.dmi
Binary file not shown.
Binary file added icons/obj/items/pig.dmi
Binary file not shown.
Binary file modified icons/obj/items/toy.dmi
Binary file not shown.
Binary file added sound/items/khryu.ogg
Binary file not shown.
92 changes: 92 additions & 0 deletions ss220/code/RU_items.dm
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ SUBSYSTEM_DEF(ru_items)
default_ammo = /datum/ammo/bullet/revolver/rifle
caliber = CALIBER_44LS
current_rounds = 40
icon_state_mini = "44LSbox"
max_rounds = 40

/datum/ammo/bullet/revolver/rifle
Expand Down Expand Up @@ -503,3 +504,94 @@ SUBSYSTEM_DEF(ru_items)
)
cost = 60
available_against_xeno_only = TRUE

/obj/item/toy/plush/pig
name = "pig toy"
desc = "Captain Dementy! Bring the pigs! Marines demand pigs!."
icon = 'icons/obj/items/pig.dmi'
item_icons = list(
slot_l_hand_str = 'icons/mob/pig_lefthand.dmi',
slot_r_hand_str = 'icons/mob/pig_righthand.dmi',)
icon_state = "pig"
item_state = "pig"
attack_verb = list("oinks", "grunts")

/obj/item/toy/plush/pig/attack_self(mob/user)
if(world.time > last_hug_time)
user.visible_message(span_notice("[user] presses [src]! Oink! "), \
span_notice("You press [src]. Oink! "))
last_hug_time = world.time + 50 //5 second cooldown

/obj/item/toy/plush/pig/Initialize()
. = ..()
AddComponent(/datum/component/squeak, 'sound/items/khryu.ogg', 50)

/datum/supply_packs/supplies/pigs
name = "Pig toys crate"
contains = list(/obj/item/toy/plush/pig, /obj/item/toy/plush/pig, /obj/item/toy/plush/pig, /obj/item/toy/plush/pig, /obj/item/toy/plush/pig)
cost = 50
available_against_xeno_only = TRUE
containertype = /obj/structure/closet/crate/supply

/obj/item/clothing/head/squadhb
name = "\improper Alpha squad headband"
desc = "Headband made from ultra-thin special cloth. Cloth thickness provides more than just a stylish fluttering of headband. You can tie around headband onto a helmet. This squad version of a headband has secret unique features created by the cloth coloring component. "
icon = 'icons/obj/clothing/squad_hb.dmi'
item_icons = list(
slot_head_str = 'icons/mob/squadhb.dmi')
icon_state = "asquadhb"
soft_armor = list(MELEE = 0, BULLET = 0, LASER = 0, ENERGY = 0, BOMB = 0, BIO = 0, FIRE = 0, ACID = 0)
slowdown = -0.1
w_class = WEIGHT_CLASS_TINY

/obj/item/clothing/head/squadhb/b
name = "\improper Bravo squad headband"
icon_state = "bsquadhb"

/obj/item/clothing/head/squadhb/c
name = "\improper Charlie squad headband"
icon_state = "csquadhb"

/obj/item/clothing/head/squadhb/d
name = "\improper Delta squad headband"
icon_state = "dsquadhb"

/obj/item/clothing/head/tgmcberet/squad
name = "\improper Charlie squad beret"
icon_state = "csberet"
desc = "Military beret with TGMC marine squad insignia. This one belongs to the Charlie Squad."
icon = 'icons/obj/clothing/squad_hb.dmi'
item_icons = list(
slot_head_str = 'icons/mob/squadhb.dmi')

/obj/item/clothing/head/tgmcberet/squad/delta
name = "\improper Delta Squad beret"
desc = "Military beret with TGMC marine squad insignia. This one belongs to the Delta Squad."
icon_state = "dsberet"

/obj/item/clothing/head/tgmcberet/squad/alpha
name = "\improper Alpha Squad beret"
desc = "Military beret with TGMC marine squad insignia. This one belongs to the Alpha Squad."
icon_state = "asberet"

/obj/item/clothing/head/tgmcberet/squad/bravo
name = "\improper Bravo Squad beret"
desc = "Military beret with TGMC marine squad insignia. This one belongs to the Bravo Squad."
icon_state = "bsberet"

/obj/item/clothing/head/tgmcberet/commando
name = "\improper Marines Commando beret"
desc = "Dark Green beret with an old TGMC insignia on it."
icon_state = "marcommandoberet"
icon = 'icons/obj/clothing/squad_hb.dmi'
item_icons = list(
slot_head_str = 'icons/mob/squadhb.dmi')


/obj/item/clothing/head/tgmcberet/medical
name = "\improper Medical beret"
desc = "A white beret with a green cross finely threaded into it. It has that sterile smell about it."
icon_state = "medberet"
icon = 'icons/obj/clothing/squad_hb.dmi'
item_icons = list(
slot_head_str = 'icons/mob/squadhb.dmi')
2 changes: 1 addition & 1 deletion ss220/code/necoarc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
icon_state = "shield-blue"
item_icons = "helmetNA"
flags_item = NODROP|DELONDROP
soft_armor = list("melee" = 65, "bullet" = 60, "laser" = 30, "energy" = 20, "bomb" = 25, "bio" = 40, "rad" = 0, "fire" = 20, "acid" = 20)
soft_armor = list(MELEE = 65, BULLET = 60, LASER = 30, ENERGY = 20, BOMB = 25, BIO = 40, FIRE = 20, ACID = 20)
anti_hug = 5

//emergency call NecoArc
Expand Down

0 comments on commit c3359ce

Please sign in to comment.