From 86b7f81701e7a7a72bbb2e78ff6ab06d2a2fd4b2 Mon Sep 17 00:00:00 2001 From: S34NW <12197162+S34NW@users.noreply.github.com> Date: Tue, 13 Apr 2021 20:56:18 +0100 Subject: [PATCH] bye-bye sticks, come with me if you want to live --- .../projectiles/guns/projectile/revolver.dm | 18 ++++++++++++++++-- .../projectiles/guns/projectile/shotgun.dm | 17 ++++++++++++++++- icons/mob/inhands/64x64_guns_lefthand.dmi | Bin 0 -> 2520 bytes icons/mob/inhands/64x64_guns_righthand.dmi | Bin 0 -> 2507 bytes 4 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 icons/mob/inhands/64x64_guns_lefthand.dmi create mode 100644 icons/mob/inhands/64x64_guns_righthand.dmi diff --git a/code/modules/projectiles/guns/projectile/revolver.dm b/code/modules/projectiles/guns/projectile/revolver.dm index d265a420c26..639a34e1da5 100644 --- a/code/modules/projectiles/guns/projectile/revolver.dm +++ b/code/modules/projectiles/guns/projectile/revolver.dm @@ -328,7 +328,11 @@ name = "double-barreled shotgun" desc = "A true classic." icon_state = "dshotgun" - item_state = "shotgun" + item_state = "shotgun_db" + lefthand_file = 'icons/mob/inhands/64x64_guns_lefthand.dmi' + righthand_file = 'icons/mob/inhands/64x64_guns_righthand.dmi' + inhand_x_dimension = 64 + inhand_y_dimension = 64 w_class = WEIGHT_CLASS_BULKY weapon_weight = WEAPON_HEAVY force = 10 @@ -358,8 +362,10 @@ var/obj/item/melee/energy/W = A if(W.active) sawoff(user) + item_state = "ishotgun_sawn" if(istype(A, /obj/item/circular_saw) || istype(A, /obj/item/gun/energy/plasmacutter)) sawoff(user) + item_state = "ishotgun_sawn" else return ..() @@ -389,7 +395,11 @@ name = "improvised shotgun" desc = "Essentially a tube that aims shotgun shells." icon_state = "ishotgun" - item_state = "shotgun" + item_state = "ishotgun" + lefthand_file = 'icons/mob/inhands/64x64_guns_lefthand.dmi' + righthand_file = 'icons/mob/inhands/64x64_guns_righthand.dmi' + inhand_x_dimension = 64 + inhand_y_dimension = 64 w_class = WEIGHT_CLASS_BULKY force = 10 slot_flags = null @@ -406,6 +416,7 @@ if(C.use(10)) slot_flags = SLOT_BACK icon_state = "ishotgunsling" + item_state = "ishotgunsling" to_chat(user, "You tie the lengths of cable to the shotgun, making a sling.") slung = 1 update_icon() @@ -420,6 +431,7 @@ if(slung && (slot_flags & SLOT_BELT) ) slung = 0 icon_state = "ishotgun-sawn" + item_state = "ishotgun_sawn" /obj/item/gun/projectile/revolver/doublebarrel/improvised/sawoff(mob/user) . = ..() @@ -436,6 +448,8 @@ icon = 'icons/obj/items.dmi' lefthand_file = 'icons/mob/inhands/items_lefthand.dmi' righthand_file = 'icons/mob/inhands/items_righthand.dmi' + inhand_x_dimension = 32 + inhand_y_dimension = 32 icon_state = "cane" item_state = "stick" sawn_state = SAWN_OFF diff --git a/code/modules/projectiles/guns/projectile/shotgun.dm b/code/modules/projectiles/guns/projectile/shotgun.dm index d50865457dc..f710416258e 100644 --- a/code/modules/projectiles/guns/projectile/shotgun.dm +++ b/code/modules/projectiles/guns/projectile/shotgun.dm @@ -3,6 +3,10 @@ desc = "A traditional shotgun with wood furniture and a four-shell capacity underneath." icon_state = "shotgun" item_state = "shotgun" + lefthand_file = 'icons/mob/inhands/64x64_guns_lefthand.dmi' + righthand_file = 'icons/mob/inhands/64x64_guns_righthand.dmi' + inhand_x_dimension = 64 + inhand_y_dimension = 64 w_class = WEIGHT_CLASS_BULKY force = 10 flags = CONDUCT @@ -80,6 +84,7 @@ name = "riot shotgun" desc = "A sturdy shotgun with a longer magazine and a fixed tactical stock designed for non-lethal riot control." icon_state = "riotshotgun" + item_state = "shotgun_riot" mag_type = /obj/item/ammo_box/magazine/internal/shot/riot sawn_desc = "Come with me if you want to live." sawn_state = SAWN_INTACT @@ -131,7 +136,7 @@ desc = sawn_desc w_class = WEIGHT_CLASS_NORMAL current_skin = "riotshotgun-short" - item_state = "gun" //phil235 is it different with different skin? + item_state = "shotgun_assault" //phil235 is it different with different skin? slot_flags &= ~SLOT_BACK //you can't sling it on your back slot_flags |= SLOT_BELT //but you can wear it on your belt (poorly concealed under a trenchcoat, ideally) sawn_state = SAWN_OFF @@ -208,6 +213,10 @@ desc = "This piece of junk looks like something that could have been used 700 years ago." icon_state = "moistnugget" item_state = "moistnugget" + lefthand_file = 'icons/mob/inhands/guns_lefthand.dmi' + righthand_file = 'icons/mob/inhands/guns_righthand.dmi' + inhand_x_dimension = 32 + inhand_y_dimension = 32 slot_flags = 0 //no SLOT_BACK sprite, alas mag_type = /obj/item/ammo_box/magazine/internal/boltaction fire_sound = 'sound/weapons/gunshots/gunshot_rifle.ogg' @@ -305,6 +314,7 @@ name = "combat shotgun" desc = "A semi automatic shotgun with tactical furniture and a six-shell capacity underneath." icon_state = "cshotgun" + item_state = "shotgun_combat" origin_tech = "combat=6" mag_type = /obj/item/ammo_box/magazine/internal/shot/com w_class = WEIGHT_CLASS_HUGE @@ -315,6 +325,11 @@ name = "cycler shotgun" desc = "An advanced shotgun with two separate magazine tubes, allowing you to quickly toggle between ammo types." icon_state = "cycler" + inhand_x_dimension = 32 + inhand_y_dimension = 32 + lefthand_file = 'icons/mob/inhands/guns_lefthand.dmi' + righthand_file = 'icons/mob/inhands/guns_righthand.dmi' + item_state = "bulldog" origin_tech = "combat=4;materials=2" mag_type = /obj/item/ammo_box/magazine/internal/shot/tube w_class = WEIGHT_CLASS_HUGE diff --git a/icons/mob/inhands/64x64_guns_lefthand.dmi b/icons/mob/inhands/64x64_guns_lefthand.dmi new file mode 100644 index 0000000000000000000000000000000000000000..81a6f463ad093eb0ab14b5678fa08eae591220e0 GIT binary patch literal 2520 zcmZ8g2{hDe8~@L^F2=RA*kguJ$yQU1a1Egp4YI{x2Bo;RFe1!;J0pcqMgRaH zb=Jn}0sz1$e{FFQVI@b&I$apZ4tCDg9UUF&>gv08?b6WDP*PIL$M3^y0@~Wz=sf_4 z2GD49c6N4DR1^q;Lqk9w0BCAzVzF5NgMghHkZmQ_+}wQg=1p&JZwLb7?4+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-S=M@Qkh_1JY9CukIpxjL$)8Me@y?jZlUluWj zo;1SD_NGBr^`symu6u(gS{(|(FAMY-EQOX}0Z;IZ*dD zzZL#99!iWCH4WctB-5&a_-R^k&jh!8P59gXcLuj-37e*p_*10gJca02SOMOhlIlsr zZmy5zY*9g*+v?#0dl0+o2lEA?X?i^GzR(vSO%u9;iG_Gd+|0{noC5QI4Cz}^+n}HC zt;bjlJVU4&JU=#=Z!ULLKQ_~djjV(Z*Tz$)g1l}8VK(JZP)+5I37Sf+p%gFk9kfnm zNvtDm2B!29PHT)>DY_M-xeC_oNmIkAvy_;)|lt-;D=w4^M`;&m6dYSR669*BB)B^KwB%jg%+#J zOURuVdrX2}pGl8Zu*PjFZ(_M?g>z)V zmHkPZC=#ju){oP${gW|Um*OSjJCZRuhqb&wH`Djn+2Q=rstFxgQ}MVokNh^n{{s|< z{yUIkaHBJ-8c+%Nn$A8P)S6k literal 0 HcmV?d00001 diff --git a/icons/mob/inhands/64x64_guns_righthand.dmi b/icons/mob/inhands/64x64_guns_righthand.dmi new file mode 100644 index 0000000000000000000000000000000000000000..1182cae992849e8bbf105a531c5d2971bd66cba3 GIT binary patch literal 2507 zcmZuz3pCXE7ypgXcrX5H$50+MUU{1`q|7KHi5T)K@5U>kD8kGbMUo~<$s>b5ib!6K zZDOV(Z?a;g)l7rzdJU#AgL(YzIlJfl_nf`w+;h+8-tYH&?>(P;&-rGbb#+vbRg(n( zK;e{=y$1k*2!EDQ8_g9q4qrva+(aw)X!0`(ZGcKO89W->a*ui% zJI_~Xy6?HGt7`;W4v9pDgoL=bxI{%o5sAd0pdc2DwZ6W-lQ*j6!@Hd_KnWhM7y$ik z61xLRZ+QA7*k8OFdL=S0Au{$d03?-S&c$6xJUD`R;bk_8V6u!x zTnzevD}yfWRtOKo7{Xbrl=V~BPo7$sTB`#zc*h~P>>Pwn%Tv{=+#E!MzBzJFmu1&k zD7lneQs8sEb-e&ibVg(+O1K2ayJ7>5jMmNMs0?KD0^G5-Yh|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