Skip to content

Commit

Permalink
New blade sprites (#12923)
Browse files Browse the repository at this point in the history
* new blade sprites

* combat knife inhand

* som knife name
  • Loading branch information
Lumipharon authored May 8, 2023
1 parent fd3cbb6 commit 6c5b1a4
Show file tree
Hide file tree
Showing 14 changed files with 70 additions and 3 deletions.
5 changes: 5 additions & 0 deletions code/game/objects/items/weapons/blades.dm
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@
. = ..()
toggle_item_bump_attack(user, FALSE)

/obj/item/weapon/claymore/mercsword/machete/alt
name = "machete"
desc = "A nice looking machete. Great for clearing out jungle or brush on outlying colonies. Found commonly in the hands of scouts and trackers, but difficult to carry with the usual kit."
icon_state = "machete_alt"

//FC's sword.

/obj/item/weapon/claymore/mercsword/officersword
Expand Down
1 change: 1 addition & 0 deletions code/game/objects/items/weapons/twohanded.dm
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@
/obj/item/attachable/suppressor,
/obj/item/attachable/bayonet,
/obj/item/attachable/bayonetknife,
/obj/item/attachable/bayonetknife/som,
/obj/item/attachable/compensator,
/obj/item/attachable/scope,
/obj/item/attachable/scope/mini,
Expand Down
4 changes: 4 additions & 0 deletions code/modules/clothing/modular_armor/attachments/storage.dm
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@
/obj/item/weapon/gun/pistol/standard_pocketpistol,
/obj/item/weapon/gun/shotgun/double/derringer,
/obj/item/attachable/bayonetknife,
/obj/item/attachable/bayonetknife/som,
/obj/item/stack/throwing_knife,
/obj/item/storage/box/MRE,
)
Expand All @@ -336,6 +337,9 @@
. = ..()
new /obj/item/weapon/combat_knife(storage)

/obj/item/armor_module/storage/boot/som_knife/Initialize(mapload)
. = ..()
new /obj/item/attachable/bayonetknife/som(storage)
/obj/item/armor_module/storage/helmet
name = "Jaeger Pattern helmet storage"
desc = "A small set of bands and straps to allow easy storage of small items."
Expand Down
3 changes: 2 additions & 1 deletion code/modules/clothing/shoes/marine_shoes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
attachments_allowed = list(
/obj/item/armor_module/storage/boot,
/obj/item/armor_module/storage/boot/full,
/obj/item/armor_module/storage/boot/som_knife,
)
starting_attachments = list(/obj/item/armor_module/storage/boot)

Expand Down Expand Up @@ -113,7 +114,7 @@
item_state = "som"

/obj/item/clothing/shoes/marine/som/knife
starting_attachments = list(/obj/item/armor_module/storage/boot/full)
starting_attachments = list(/obj/item/armor_module/storage/boot/som_knife)

/obj/item/clothing/shoes/sectoid
name = "psionic field"
Expand Down
18 changes: 16 additions & 2 deletions code/modules/projectiles/gun_attachables.dm
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,10 @@ inaccurate. Don't worry if force is ever negative, it won't runtime.
name = "bayonet"
desc = "A sharp blade for mounting on a weapon. It can be used to stab manually on anything but harm intent. Slightly reduces the accuracy of the gun when mounted."
icon_state = "bayonet"
item_icons = list(
slot_l_hand_str = 'icons/mob/inhands/weapons/melee_left.dmi',
slot_r_hand_str = 'icons/mob/inhands/weapons/melee_right.dmi',
)
force = 20
throwforce = 10
attach_delay = 10 //Bayonets attach/detach quickly.
Expand Down Expand Up @@ -385,12 +389,15 @@ inaccurate. Don't worry if force is ever negative, it won't runtime.
name = "M-22 bayonet"
desc = "A sharp knife that is the standard issue combat knife of the TerraGov Marine Corps can be attached to a variety of weapons at will or used as a standard knife."
icon_state = "bayonetknife"
item_state = "combat_knife"
item_icons = list(
slot_l_hand_str = 'icons/mob/inhands/weapons/melee_left.dmi',
slot_r_hand_str = 'icons/mob/inhands/weapons/melee_right.dmi',
)
force = 25
throwforce = 20
throw_speed = 3
throw_range = 6
attack_speed = 7
attack_speed = 8
attach_delay = 10 //Bayonets attach/detach quickly.
detach_delay = 10
attack_verb = list("slashed", "stabbed", "sliced", "torn", "ripped", "diced", "cut")
Expand All @@ -408,6 +415,13 @@ inaccurate. Don't worry if force is ever negative, it won't runtime.
. = ..()
AddElement(/datum/element/scalping)

/obj/item/attachable/bayonetknife/som
name = "\improper S20 SOM bayonet"
desc = "A large knife that is the standard issue combat knife of the SOM. Can be attached to a variety of weapons at will or used as a standard knife."
icon_state = "bayonetknife_som"
item_state = "bayonetknife"
force = 30

/obj/item/attachable/extended_barrel
name = "extended barrel"
desc = "A lengthened barrel allows for lessened scatter, greater accuracy and muzzle velocity due to increased stabilization and shockwave exposure."
Expand Down
8 changes: 8 additions & 0 deletions code/modules/projectiles/guns/energy.dm
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@
attachable_allowed = list(
/obj/item/attachable/bayonet,
/obj/item/attachable/bayonetknife,
/obj/item/attachable/bayonetknife/som,
/obj/item/attachable/reddot,
/obj/item/attachable/verticalgrip,
/obj/item/attachable/angledgrip,
Expand Down Expand Up @@ -249,6 +250,7 @@
attachable_allowed = list(
/obj/item/attachable/bayonet,
/obj/item/attachable/bayonetknife,
/obj/item/attachable/bayonetknife/som,
/obj/item/attachable/reddot,
/obj/item/attachable/verticalgrip,
/obj/item/attachable/angledgrip,
Expand Down Expand Up @@ -407,6 +409,7 @@
attachable_allowed = list(
/obj/item/attachable/bayonet,
/obj/item/attachable/bayonetknife,
/obj/item/attachable/bayonetknife/som,
/obj/item/attachable/reddot,
/obj/item/attachable/lasersight,
/obj/item/attachable/flashlight,
Expand Down Expand Up @@ -482,6 +485,7 @@
attachable_allowed = list(
/obj/item/attachable/bayonet,
/obj/item/attachable/bayonetknife,
/obj/item/attachable/bayonetknife/som,
/obj/item/attachable/reddot,
/obj/item/attachable/lasersight,
/obj/item/attachable/flashlight,
Expand Down Expand Up @@ -559,6 +563,7 @@
attachable_allowed = list(
/obj/item/attachable/bayonet,
/obj/item/attachable/bayonetknife,
/obj/item/attachable/bayonetknife/som,
/obj/item/attachable/reddot,
/obj/item/attachable/lasersight,
/obj/item/attachable/flashlight,
Expand Down Expand Up @@ -644,6 +649,7 @@
attachable_allowed = list(
/obj/item/attachable/bayonet,
/obj/item/attachable/bayonetknife,
/obj/item/attachable/bayonetknife/som,
/obj/item/attachable/magnetic_harness,
/obj/item/attachable/scope/unremovable/laser_sniper_scope,
/obj/item/weapon/gun/grenade_launcher/underslung,
Expand Down Expand Up @@ -709,6 +715,7 @@
attachable_allowed = list(
/obj/item/attachable/bayonet,
/obj/item/attachable/bayonetknife,
/obj/item/attachable/bayonetknife/som,
/obj/item/attachable/flashlight,
/obj/item/attachable/magnetic_harness,
/obj/item/attachable/scope/marine,
Expand Down Expand Up @@ -773,6 +780,7 @@
attachable_allowed = list(
/obj/item/attachable/bayonet,
/obj/item/attachable/bayonetknife,
/obj/item/attachable/bayonetknife/som,
/obj/item/attachable/reddot,
/obj/item/attachable/lasersight,
/obj/item/attachable/flashlight,
Expand Down
1 change: 1 addition & 0 deletions code/modules/projectiles/guns/mounted.dm
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@
/obj/item/attachable/suppressor,
/obj/item/attachable/bayonet,
/obj/item/attachable/bayonetknife,
/obj/item/attachable/bayonetknife/som,
/obj/item/attachable/scope/mini,
/obj/item/attachable/scope/unremovable/mmg,
/obj/item/attachable/stock/t27,
Expand Down
26 changes: 26 additions & 0 deletions code/modules/projectiles/guns/rifles.dm
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
/obj/item/attachable/suppressor,
/obj/item/attachable/bayonet,
/obj/item/attachable/bayonetknife,
/obj/item/attachable/bayonetknife/som,
/obj/item/attachable/compensator,
/obj/item/attachable/scope,
/obj/item/attachable/scope/marine,
Expand Down Expand Up @@ -136,6 +137,7 @@
/obj/item/attachable/suppressor,
/obj/item/attachable/bayonet,
/obj/item/attachable/bayonetknife,
/obj/item/attachable/bayonetknife/som,
/obj/item/attachable/compensator,
/obj/item/attachable/scope,
/obj/item/attachable/scope/mini,
Expand Down Expand Up @@ -213,6 +215,7 @@
/obj/item/attachable/suppressor,
/obj/item/attachable/bayonet,
/obj/item/attachable/bayonetknife,
/obj/item/attachable/bayonetknife/som,
/obj/item/attachable/compensator,
/obj/item/attachable/reddot,
/obj/item/attachable/verticalgrip,
Expand Down Expand Up @@ -292,6 +295,7 @@
/obj/item/attachable/suppressor,
/obj/item/attachable/bayonet,
/obj/item/attachable/bayonetknife,
/obj/item/attachable/bayonetknife/som,
/obj/item/attachable/compensator,
/obj/item/attachable/reddot,
/obj/item/attachable/verticalgrip,
Expand Down Expand Up @@ -359,6 +363,7 @@
/obj/item/attachable/suppressor,
/obj/item/attachable/bayonet,
/obj/item/attachable/bayonetknife,
/obj/item/attachable/bayonetknife/som,
/obj/item/attachable/compensator,
/obj/item/attachable/reddot,
/obj/item/attachable/verticalgrip,
Expand Down Expand Up @@ -412,6 +417,7 @@
/obj/item/attachable/suppressor,
/obj/item/attachable/bayonet,
/obj/item/attachable/bayonetknife,
/obj/item/attachable/bayonetknife/som,
/obj/item/attachable/reddot,
/obj/item/attachable/verticalgrip,
/obj/item/attachable/angledgrip,
Expand Down Expand Up @@ -467,6 +473,7 @@
attachable_allowed = list(
/obj/item/attachable/bayonet,
/obj/item/attachable/bayonetknife,
/obj/item/attachable/bayonetknife/som,
/obj/item/attachable/reddot,
/obj/item/attachable/suppressor,
/obj/item/attachable/compensator,
Expand Down Expand Up @@ -687,6 +694,7 @@
/obj/item/attachable/suppressor,
/obj/item/attachable/bayonet,
/obj/item/attachable/bayonetknife,
/obj/item/attachable/bayonetknife/som,
/obj/item/attachable/reddot,
/obj/item/attachable/verticalgrip,
/obj/item/attachable/angledgrip,
Expand Down Expand Up @@ -757,6 +765,7 @@
/obj/item/attachable/suppressor,
/obj/item/attachable/bayonet,
/obj/item/attachable/bayonetknife,
/obj/item/attachable/bayonetknife/som,
/obj/item/attachable/verticalgrip,
/obj/item/attachable/angledgrip,
/obj/item/attachable/gyro,
Expand Down Expand Up @@ -832,6 +841,7 @@
/obj/item/attachable/suppressor,
/obj/item/attachable/bayonet,
/obj/item/attachable/bayonetknife,
/obj/item/attachable/bayonetknife/som,
/obj/item/attachable/scope,
/obj/item/attachable/scope/marine,
/obj/item/attachable/scope/mini,
Expand Down Expand Up @@ -901,6 +911,7 @@
/obj/item/attachable/heavy_barrel,
/obj/item/attachable/bayonet,
/obj/item/attachable/bayonetknife,
/obj/item/attachable/bayonetknife/som,
/obj/item/attachable/scope,
/obj/item/attachable/scope/marine,
/obj/item/attachable/scope/mini,
Expand Down Expand Up @@ -1038,6 +1049,7 @@
/obj/item/attachable/suppressor,
/obj/item/attachable/bayonet,
/obj/item/attachable/bayonetknife,
/obj/item/attachable/bayonetknife/som,
/obj/item/attachable/compensator,
/obj/item/attachable/scope,
/obj/item/attachable/scope/mini,
Expand Down Expand Up @@ -1080,6 +1092,7 @@
/obj/item/attachable/suppressor,
/obj/item/attachable/bayonet,
/obj/item/attachable/bayonetknife,
/obj/item/attachable/bayonetknife/som,
/obj/item/attachable/compensator,
/obj/item/attachable/scope,
/obj/item/attachable/scope/mini,
Expand Down Expand Up @@ -1134,6 +1147,7 @@
attachable_allowed = list(
/obj/item/attachable/bayonet,
/obj/item/attachable/bayonetknife,
/obj/item/attachable/bayonetknife/som,
/obj/item/attachable/reddot,
/obj/item/attachable/verticalgrip,
/obj/item/attachable/angledgrip,
Expand Down Expand Up @@ -1311,6 +1325,7 @@
/obj/item/attachable/suppressor,
/obj/item/attachable/bayonet,
/obj/item/attachable/bayonetknife,
/obj/item/attachable/bayonetknife/som,
/obj/item/attachable/compensator,
/obj/item/attachable/foldable/bipod,
)
Expand Down Expand Up @@ -1370,6 +1385,7 @@
/obj/item/attachable/suppressor,
/obj/item/attachable/bayonet,
/obj/item/attachable/bayonetknife,
/obj/item/attachable/bayonetknife/som,
/obj/item/attachable/compensator,
)

Expand Down Expand Up @@ -1416,6 +1432,7 @@
/obj/item/attachable/lasersight,
/obj/item/attachable/bayonet,
/obj/item/attachable/bayonetknife,
/obj/item/attachable/bayonetknife/som,
/obj/item/attachable/flashlight/under,
/obj/item/attachable/scope/mini/tx11,
/obj/item/attachable/stock/tx11,
Expand Down Expand Up @@ -1492,6 +1509,7 @@
/obj/item/attachable/suppressor,
/obj/item/attachable/bayonet,
/obj/item/attachable/bayonetknife,
/obj/item/attachable/bayonetknife/som,
/obj/item/attachable/compensator,
/obj/item/attachable/scope,
/obj/item/attachable/flashlight/under,
Expand Down Expand Up @@ -1556,6 +1574,7 @@
/obj/item/attachable/suppressor,
/obj/item/attachable/bayonet,
/obj/item/attachable/bayonetknife,
/obj/item/attachable/bayonetknife/som,
)

flags_gun_features = GUN_CAN_POINTBLANK|GUN_AMMO_COUNTER
Expand Down Expand Up @@ -1615,6 +1634,7 @@
/obj/item/attachable/suppressor,
/obj/item/attachable/bayonet,
/obj/item/attachable/bayonetknife,
/obj/item/attachable/bayonetknife/som,
)

flags_gun_features = GUN_CAN_POINTBLANK|GUN_AMMO_COUNTER
Expand Down Expand Up @@ -1732,6 +1752,7 @@
/obj/item/attachable/suppressor,
/obj/item/attachable/bayonet,
/obj/item/attachable/bayonetknife,
/obj/item/attachable/bayonetknife/som,
/obj/item/attachable/compensator,
/obj/item/attachable/scope,
/obj/item/attachable/scope/marine,
Expand Down Expand Up @@ -1810,6 +1831,7 @@
/obj/item/attachable/suppressor,
/obj/item/attachable/bayonet,
/obj/item/attachable/bayonetknife,
/obj/item/attachable/bayonetknife/som,
/obj/item/attachable/compensator,
/obj/item/attachable/foldable/bipod,
)
Expand Down Expand Up @@ -1870,6 +1892,7 @@
/obj/item/attachable/flashlight/under,
/obj/item/attachable/bayonet,
/obj/item/attachable/bayonetknife,
/obj/item/attachable/bayonetknife/som,
/obj/item/attachable/compensator,
/obj/item/attachable/scope,
/obj/item/attachable/scope/marine,
Expand Down Expand Up @@ -2106,6 +2129,7 @@
/obj/item/attachable/suppressor,
/obj/item/attachable/bayonet,
/obj/item/attachable/bayonetknife,
/obj/item/attachable/bayonetknife/som,
/obj/item/attachable/compensator,
/obj/item/attachable/reddot,
/obj/item/attachable/verticalgrip,
Expand Down Expand Up @@ -2175,6 +2199,7 @@
/obj/item/attachable/suppressor,
/obj/item/attachable/bayonet,
/obj/item/attachable/bayonetknife,
/obj/item/attachable/bayonetknife/som,
/obj/item/attachable/compensator,
/obj/item/attachable/reddot,
/obj/item/attachable/verticalgrip,
Expand Down Expand Up @@ -2246,6 +2271,7 @@
/obj/item/attachable/suppressor,
/obj/item/attachable/bayonet,
/obj/item/attachable/bayonetknife,
/obj/item/attachable/bayonetknife/som,
/obj/item/attachable/compensator,
/obj/item/attachable/reddot,
/obj/item/attachable/lasersight,
Expand Down
Loading

0 comments on commit 6c5b1a4

Please sign in to comment.