-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIRROR] New non lethal gun - P207 + Fixes to the pepperball gun logi…
…stics (#5246) * New non lethal gun - P207 + Fixes to the pepperball gun logistics (#4658) * Initial Commit * Fixes the Light and Manufacturer, and adds Trelus as coauthor Co-Authored-By: Trelus <[email protected]> * Fixed typos and review errors! * adds the base icon to the dmi's to stop some issues with CI * New sprites by the spriter, should fix the ongoing issues * doing a workaround because git can be funny with filename case * minor adjustments, review and unified name to type207 so future generations dont hate me. * Changed name due to creator request and fixed a typo before extramrdo notes it * fatfingered ctrl z before ctrl s * adjust decay on bounce to 10% per bounce * Update modular_nova/modules/modular_weapons/code/company_and_or_faction_based/bolt_fabrications/ammo.dm Co-authored-by: Bloop <[email protected]> * Update modular_nova/modules/modular_weapons/code/company_and_or_faction_based/bolt_fabrications/ammo.dm Co-authored-by: Bloop <[email protected]> * Update modular_nova/modules/modular_weapons/code/company_and_or_faction_based/bolt_fabrications/ammo.dm Co-authored-by: Bloop <[email protected]> * Update modular_nova/modules/modular_weapons/code/company_and_or_faction_based/bolt_fabrications/ammo.dm Co-authored-by: Bloop <[email protected]> * Update modular_nova/modules/modular_weapons/code/company_and_or_faction_based/bolt_fabrications/magazine.dm Co-authored-by: Bloop <[email protected]> * Update modular_nova/modules/modular_weapons/code/company_and_or_faction_based/bolt_fabrications/magazine.dm Co-authored-by: Bloop <[email protected]> * lower case modular ammo boxes * Revert "lower case modular ammo boxes" This reverts commit b4fce35efdebdbec6ec25a493930df3c21c1d447. --------- Co-authored-by: Trelus <[email protected]> Co-authored-by: Bloop <[email protected]> * [MIRROR] New non lethal gun - P207 + Fixes to the pepperball gun logistics --------- Co-authored-by: OrbisAnima <[email protected]> Co-authored-by: Trelus <[email protected]> Co-authored-by: Bloop <[email protected]> Co-authored-by: StealsThePRs <[email protected]>
- Loading branch information
1 parent
80078d5
commit aa2094c
Showing
17 changed files
with
157 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
modular_nova/modules/modular_weapons/code/autolathe_design.dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/datum/techweb_node/basic_arms/New() | ||
design_ids += list( | ||
"kineticballs", | ||
"pepperballs", | ||
) | ||
return ..() |
49 changes: 49 additions & 0 deletions
49
..._nova/modules/modular_weapons/code/company_and_or_faction_based/bolt_fabrications/ammo.dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/obj/projectile/bullet/kineticball | ||
name = "kinetic orb" | ||
icon = 'modular_nova/modules/modular_weapons/icons/obj/company_and_or_faction_based/bolt_fabrications/riotrubberbullet.dmi' | ||
icon_state = "riotrubberbullet" | ||
// Used the hive shot stats, with 0 colateral damage, the advantage is that its not weak against armor, and its supposed to bounce a lot. | ||
damage = 0 | ||
stamina = 30 | ||
shrapnel_type = null | ||
sharpness = NONE | ||
embed_data = null | ||
impact_effect_type = /obj/effect/temp_visual/impact_effect | ||
ricochet_incidence_leeway = 0 | ||
ricochets_max = 5 | ||
ricochet_chance = 200 | ||
ricochet_auto_aim_angle = 60 | ||
ricochet_auto_aim_range = 8 | ||
ricochet_decay_damage = 0.9 | ||
ricochet_decay_chance = 1 | ||
wound_bonus = -30 | ||
bare_wound_bonus = -10 | ||
|
||
/obj/item/ammo_casing/kineticball | ||
name = "kinetic ball casing" | ||
desc = "A kinetic ball casing." | ||
icon = 'modular_nova/modules/modular_weapons/icons/obj/company_and_or_faction_based/bolt_fabrications/stingtop.dmi' | ||
icon_state = "stingstop" | ||
ammo_stack_type = /obj/item/ammo_box/magazine/ammo_stack/kineticball | ||
caliber = CALIBER_KINETICBALL | ||
projectile_type = /obj/projectile/bullet/kineticball | ||
harmful = FALSE | ||
|
||
/obj/item/ammo_box/magazine/ammo_stack/kineticball | ||
name = "kinetic ball casings" | ||
desc = "A stack of kinetic ball cartridges." | ||
caliber = CALIBER_KINETICBALL | ||
ammo_type = /obj/item/ammo_casing/kineticball | ||
max_ammo = 9 | ||
casing_x_positions = list( | ||
-7, | ||
-5, | ||
-3, | ||
-1, | ||
0, | ||
1, | ||
3, | ||
5, | ||
7, | ||
) | ||
casing_y_padding = 6 |
41 changes: 41 additions & 0 deletions
41
...a/modules/modular_weapons/code/company_and_or_faction_based/bolt_fabrications/magazine.dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/obj/item/ammo_box/magazine/kineticballs | ||
name = "kinetic balls pistol magazine" | ||
desc = "A gun magazine filled with balls. The kind that makes makes people stop, holds eight rounds." | ||
icon = 'modular_nova/modules/modular_weapons/icons/obj/company_and_or_faction_based/bolt_fabrications/type207magazine.dmi' | ||
icon_state = "type207mag" | ||
ammo_type = /obj/item/ammo_casing/kineticball | ||
caliber = CALIBER_KINETICBALL | ||
max_ammo = 8 | ||
custom_price = PAYCHECK_CREW * 2 | ||
multiple_sprites = AMMO_BOX_FULL_EMPTY | ||
|
||
/obj/item/ammo_box/magazine/kineticballs/starts_empty | ||
start_empty = TRUE | ||
|
||
/datum/design/kineticballs | ||
name = "Ammo Box (Kinetic Balls)" | ||
id = "kineticballs" | ||
build_type = AUTOLATHE | PROTOLATHE | AWAY_LATHE | ||
materials = list( | ||
/datum/material/iron = SHEET_MATERIAL_AMOUNT * 3, | ||
/datum/material/plastic = SHEET_MATERIAL_AMOUNT * 3, | ||
) | ||
build_path = /obj/item/ammo_box/advanced/kineticballs | ||
category = list( | ||
RND_CATEGORY_INITIAL, | ||
RND_CATEGORY_WEAPONS + RND_SUBCATEGORY_WEAPONS_AMMO, | ||
) | ||
departmental_flags = DEPARTMENT_BITFLAG_SECURITY | ||
|
||
/obj/item/ammo_box/advanced/kineticballs | ||
name = "ammo box (kinetic balls)" | ||
icon = 'modular_nova/modules/modular_weapons/icons/obj/company_and_or_faction_based/bolt_fabrications/stingstopbox.dmi' | ||
icon_state = "stingstopbox" | ||
desc = "A box of kinetic balls rounds, holds twenty seven rounds." | ||
custom_price = PAYCHECK_CREW * 2 | ||
ammo_type = /obj/item/ammo_casing/kineticball | ||
custom_materials = list( | ||
/datum/material/iron = SHEET_MATERIAL_AMOUNT * 2, | ||
/datum/material/plastic = SHEET_MATERIAL_AMOUNT * 2, | ||
) | ||
max_ammo = 27 |
27 changes: 27 additions & 0 deletions
27
...ova/modules/modular_weapons/code/company_and_or_faction_based/bolt_fabrications/pistol.dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/obj/item/gun/ballistic/automatic/pistol/type207 | ||
name = "\improper Type 207 Kinetic Pistol" | ||
desc = "A completly non lethal sidearm used by Sol Fed Peacekeeping forces. It uses kinetic rounds to temporarily disable adversaries, it's also a popular weapon for trick shot competitions." | ||
icon = 'modular_nova/modules/modular_weapons/icons/obj/company_and_or_faction_based/bolt_fabrications/type207.dmi' | ||
icon_state = "type207" | ||
lefthand_file = 'modular_nova/modules/modular_weapons/icons/mob/company_and_or_faction_based/bolt_fabrications/guns_lefthand.dmi' | ||
righthand_file = 'modular_nova/modules/modular_weapons/icons/mob/company_and_or_faction_based/bolt_fabrications/guns_righthand.dmi' | ||
inhand_icon_state = "type207" | ||
w_class = WEIGHT_CLASS_SMALL | ||
accepted_magazine_type = /obj/item/ammo_box/magazine/kineticballs | ||
can_suppress = FALSE | ||
fire_delay = 0.3 SECONDS | ||
fire_sound = 'sound/effects/pop_expl.ogg' | ||
rack_sound = 'sound/items/weapons/gun/pistol/rack.ogg' | ||
lock_back_sound = 'sound/items/weapons/gun/pistol/slide_lock.ogg' | ||
bolt_drop_sound = 'sound/items/weapons/gun/pistol/slide_drop.ogg' | ||
fire_sound_volume = 70 | ||
custom_premium_price = PAYCHECK_COMMAND * 5 | ||
|
||
/obj/item/gun/ballistic/automatic/pistol/type207/give_manufacturer_examine() | ||
AddElement(/datum/element/manufacturer_examine, COMPANY_BOLT) | ||
|
||
/obj/item/gun/ballistic/automatic/pistol/type207/add_seclight_point() | ||
AddComponent(/datum/component/seclite_attachable, \ | ||
starting_light = new /obj/item/flashlight/seclite(src), \ | ||
is_light_removable = FALSE, \ | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+363 Bytes
...odular_weapons/icons/mob/company_and_or_faction_based/bolt_fabrications/guns_lefthand.dmi
Binary file not shown.
Binary file added
BIN
+363 Bytes
...dular_weapons/icons/mob/company_and_or_faction_based/bolt_fabrications/guns_righthand.dmi
Binary file not shown.
Binary file added
BIN
+363 Bytes
...lar_weapons/icons/obj/company_and_or_faction_based/bolt_fabrications/riotrubberbullet.dmi
Binary file not shown.
Binary file added
BIN
+460 Bytes
...modular_weapons/icons/obj/company_and_or_faction_based/bolt_fabrications/stingstopbox.dmi
Binary file not shown.
Binary file added
BIN
+488 Bytes
...les/modular_weapons/icons/obj/company_and_or_faction_based/bolt_fabrications/stingtop.dmi
Binary file not shown.
Binary file added
BIN
+503 Bytes
...ules/modular_weapons/icons/obj/company_and_or_faction_based/bolt_fabrications/type207.dmi
Binary file not shown.
Binary file added
BIN
+385 Bytes
...ular_weapons/icons/obj/company_and_or_faction_based/bolt_fabrications/type207magazine.dmi
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters