Skip to content

Commit

Permalink
Merge pull request #3588 from FluffyTox/Needlesandpains
Browse files Browse the repository at this point in the history
(MERGE WHEN READY) Spiker gun +changes
  • Loading branch information
Tk420634 authored Oct 25, 2023
2 parents 80df790 + b096049 commit 9e34672
Show file tree
Hide file tree
Showing 13 changed files with 69 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/__DEFINES/combat.dm
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ GLOBAL_LIST_INIT(main_body_parts2words, list(
#define RUBBERY_RECOIL_PISTOL_10MM (BULLET_RECOIL_PISTOL_10MM * RUBBERY_RECOIL_MULT)
#define RUBBERY_WOUND_PISTOL_10MM (BULLET_WOUND_PISTOL_10MM * 2)

#define BULLET_DAMAGE_PISTOL_NEEDLE 10
#define BULLET_DAMAGE_PISTOL_NEEDLE 16
#define BULLET_DAMAGE_PISTOL_NEEDLE_HANDLOAD (BULLET_DAMAGE_PISTOL_NEEDLE * BULLET_HANDLOAD_MULT_DAMAGE)
#define BULLET_DAMAGE_PISTOL_NEEDLE_MATCH (BULLET_DAMAGE_PISTOL_NEEDLE * BULLET_MATCH_MULT_DAMAGE)
#define BULLET_STAMINA_PISTOL_NEEDLE (BULLET_DAMAGE_PISTOL_NEEDLE * 0.5)
Expand Down
3 changes: 2 additions & 1 deletion code/game/objects/effects/spawners/masterlootdrop.dm
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,11 @@
/obj/item/gun/ballistic/automatic/smg/m22 = 1,
/obj/item/gun/ballistic/automatic/p47 = 1,
/obj/item/gun/ballistic/automatic/z34rifle = 1,
/obj/item/gun/ballistic/revolver/taurjudge = 1,
/obj/item/gun/ballistic/revolver/taurjudge = 2,
/obj/item/gun/ballistic/automatic/ak556 = 1,
/obj/item/gun/ballistic/automatic/wt550/worn = 1,
/obj/item/gun/ballistic/automatic/pistol/schmeisser = 2,
/obj/item/gun/ballistic/automatic/pistol/needlerpistol = 3,
)

/obj/effect/spawner/lootdrop/f13/rare_guns
Expand Down
15 changes: 15 additions & 0 deletions code/modules/projectiles/boxes_magazines/ammo_boxes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,21 @@
desc = "A box of .22 ratshot rounds."
ammo_type = /obj/item/ammo_casing/a22/ratshot


//needle ammo

/obj/item/ammo_box/needlercapsule
name = "needler ammo capsule"
icon_state = "needlecapsule"
desc = "A capsule filled to the brim with needles"
ammo_type = /obj/item/ammo_casing/caseless/needle
caliber = list(CALIBER_NEEDLE)
max_ammo = 72
w_class = WEIGHT_CLASS_SMALL
custom_materials = list(/datum/material/iron = MATS_PISTOL_SMALL_BOX)
randomize_ammo_count = FALSE
icon = 'icons/fallout/objects/guns/ammo.dmi'

//9mm and .38
/obj/item/ammo_box/c9mm
name = "ammo box (9mm)"
Expand Down
13 changes: 13 additions & 0 deletions code/modules/projectiles/boxes_magazines/external/pistol.dm
Original file line number Diff line number Diff line change
Expand Up @@ -240,3 +240,16 @@
ammo_type = /obj/item/ammo_casing/testcasing
caliber = list(CALIBER_9MM)
max_ammo = 100


/obj/item/ammo_box/magazine/needlercapsule
name = "Capsule filled with needlers"
icon = 'icons/fallout/objects/guns/ammo.dmi'
icon_state = "needlerpack"
ammo_type = /obj/item/ammo_casing/caseless/needle
caliber = list(CALIBER_NEEDLE)
max_ammo = 24
multiple_sprites = 2
custom_materials = list(/datum/material/iron = MATS_LIGHT_RIFLE_MAGAZINE)
w_class = WEIGHT_CLASS_TINY
multiload = TRUE
12 changes: 12 additions & 0 deletions code/modules/projectiles/boxes_magazines/internal/rifle.dm
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,15 @@
caliber = list(CALIBER_9MM)
max_ammo = 10
multiload = FALSE

/obj/item/ammo_box/magazine/internal/needlerammo
name = "magazine filled with needlers"
icon = 'icons/fallout/objects/guns/ammo.dmi'
icon_state = "needlerpack"
ammo_type = /obj/item/ammo_casing/caseless/needle
caliber = list(CALIBER_NEEDLE)
max_ammo = 24
multiple_sprites = 2
custom_materials = list(/datum/material/iron = MATS_LIGHT_RIFLE_MAGAZINE)
w_class = WEIGHT_CLASS_TINY
multiload = TRUE
24 changes: 24 additions & 0 deletions code/modules/projectiles/guns/ballistic/pistol.dm
Original file line number Diff line number Diff line change
Expand Up @@ -899,6 +899,30 @@
can_suppress = FALSE
fire_sound = 'sound/f13weapons/cyberbang.ogg'

/obj/item/gun/ballistic/automatic/pistol/needlerpistol
name = "NP-149/40"
desc = "A NP-149/40 pistol. This unique and odd prototype of a pistol was manufactured by Latos Systems before the way. It uses a peculiar type of ammunition. The ammo itself, when inserted, somehow turns into a set of pink glowing needles. How does Latos Systems do it? Who knows!"
icon_state = "needlerpistol"
item_state = "needlerpistol"
icon = 'icons/fallout/objects/guns/ballistic.dmi'
lefthand_file = 'icons/fallout/onmob/weapons/guns_lefthand.dmi'
righthand_file = 'icons/fallout/onmob/weapons/guns_righthand.dmi'
init_mag_type = /obj/item/ammo_box/magazine/internal/needlerammo
mag_type = /obj/item/ammo_box/magazine/internal/needlerammo
weapon_class = WEAPON_CLASS_SMALL
weapon_weight = GUN_ONE_HAND_AKIMBO
damage_multiplier = GUN_EXTRA_DAMAGE_0
init_recoil = HANDGUN_RECOIL(1, 1)
init_firemodes = list(
/datum/firemode/automatic/rpm150
)
can_scope = FALSE
can_suppress = FALSE
force_unwielded = 30
force = 30
force_wielded = 35
fire_sound = 'sound/f13weapons/needler.ogg'

/* * * * * * * * * * *
* Little Devil Semi-Auto
* Super Duper Heavy pistol
Expand Down
2 changes: 2 additions & 0 deletions code/modules/projectiles/projectile/bullets/pistol.dm
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,8 @@

pixels_per_second = BULLET_SPEED_PISTOL_NEEDLE
damage_falloff = BULLET_FALLOFF_DEFAULT_PISTOL_LIGHT
supereffective_damage = 16
supereffective_faction = list("hostile", "ant", "supermutant", "deathclaw", "cazador", "raider", "china", "gecko", "wastebot", "yaoguai")

var/piercing = FALSE // not sure what this does

Expand Down
Binary file modified icons/fallout/objects/guns/ammo.dmi
Binary file not shown.
Binary file modified icons/fallout/objects/guns/ballistic.dmi
Binary file not shown.
Binary file modified icons/fallout/objects/guns/projectiles.dmi
Binary file not shown.
Binary file modified icons/fallout/onmob/weapons/guns_lefthand.dmi
Binary file not shown.
Binary file modified icons/fallout/onmob/weapons/guns_righthand.dmi
Binary file not shown.
Binary file added sound/f13weapons/needler.ogg
Binary file not shown.

0 comments on commit 9e34672

Please sign in to comment.