From 2e5737ee12218a8baf93029ac2cdfca4e834e8f2 Mon Sep 17 00:00:00 2001 From: Unknown Date: Mon, 26 Apr 2021 11:34:58 -0400 Subject: [PATCH] Fixes up this PR! --- code/modules/projectiles/guns/energy/stun.dm | 1 - .../projectiles/guns/energy/stun_vr.dm | 1 + .../projectiles/guns/projectile/automatic.dm | 8 +-- .../guns/projectile/automatic_vr.dm | 3 + .../projectiles/guns/projectile/boltaction.dm | 61 +++++-------------- .../guns/projectile/boltaction_vr.dm | 53 ++++++++++++++++ code/modules/projectiles/projectile/beams.dm | 4 +- .../projectiles/projectile/beams_vr.dm | 11 ---- 8 files changed, 75 insertions(+), 67 deletions(-) create mode 100644 code/modules/projectiles/guns/projectile/boltaction_vr.dm diff --git a/code/modules/projectiles/guns/energy/stun.dm b/code/modules/projectiles/guns/energy/stun.dm index 371250a58c..6fb4b27226 100644 --- a/code/modules/projectiles/guns/energy/stun.dm +++ b/code/modules/projectiles/guns/energy/stun.dm @@ -35,7 +35,6 @@ desc = "A LAEP20 Aktzin. Designed and produced by Lawson Arms under the wing of Hephaestus, several TSCs have been trying to get a hold of the blueprints for half a decade." description_fluff = "Lawson Arms is Hephaestus Industries’ main personal-energy-weapon branding, often sold alongside MarsTech projectile weapons to security and law enforcement agencies. \ The Aktzin's capsule-based stun ammunition is a closely guarded Hephaestus Industries patent, and the company has been particularly litigious towards any attempted imitators." - icon = 'icons/obj/gun_vr.dmi' icon_state = "stunrevolver" item_state = "stunrevolver" origin_tech = list(TECH_COMBAT = 3, TECH_MATERIAL = 3, TECH_POWER = 2) diff --git a/code/modules/projectiles/guns/energy/stun_vr.dm b/code/modules/projectiles/guns/energy/stun_vr.dm index b0bfd53e46..db038e58fd 100644 --- a/code/modules/projectiles/guns/energy/stun_vr.dm +++ b/code/modules/projectiles/guns/energy/stun_vr.dm @@ -3,4 +3,5 @@ fire_delay = 4 /obj/item/weapon/gun/energy/stunrevolver + icon = 'icons/obj/gun_vr.dmi' charge_cost = 400 \ No newline at end of file diff --git a/code/modules/projectiles/guns/projectile/automatic.dm b/code/modules/projectiles/guns/projectile/automatic.dm index 26667cedb0..e9fce291a3 100644 --- a/code/modules/projectiles/guns/projectile/automatic.dm +++ b/code/modules/projectiles/guns/projectile/automatic.dm @@ -374,7 +374,6 @@ name = "\improper Tommy Gun" desc = "This weapon was made famous by gangsters in the 20th century. Cybersun Industries is currently reproducing these for a target market of historic gun collectors and classy criminals. Uses .45 rounds." description_fluff = "Cybersun Industries is a minor arms manufacturer specialising in replica firearms from eras past. Though they offer a wide selection of made-to-order models, their products are seen as little more than novelty items to most serious collectors." - icon = 'icons/obj/gun_vr.dmi' icon_state = "tommygun" w_class = ITEMSIZE_NORMAL caliber = ".45" @@ -390,6 +389,7 @@ ) /obj/item/weapon/gun/projectile/automatic/tommygun/update_icon() + //VOREStation Edit Start - vr sprite if(istype(ammo_magazine,/obj/item/ammo_magazine/m45tommy)) icon_state = "tommygun-mag" item_state = icon_state @@ -400,11 +400,7 @@ icon_state = "tommygun-empty" item_state = icon_state update_held_icon() - -///obj/item/weapon/gun/projectile/automatic/tommygun/update_icon() -// ..() -// icon_state = (ammo_magazine)? "tommygun" : "tommygun-empty" -// update_held_icon() + //VOREStation Edit End /obj/item/weapon/gun/projectile/automatic/bullpup // Admin abuse assault rifle. ToDo: Make this less shit. Maybe remove its autofire, and make it spawn with only 10 rounds at start. name = "bullpup rifle" diff --git a/code/modules/projectiles/guns/projectile/automatic_vr.dm b/code/modules/projectiles/guns/projectile/automatic_vr.dm index 5d4cd08eaf..148045b562 100644 --- a/code/modules/projectiles/guns/projectile/automatic_vr.dm +++ b/code/modules/projectiles/guns/projectile/automatic_vr.dm @@ -1,6 +1,9 @@ /obj/item/weapon/gun/projectile/automatic/wt550/lethal magazine_type = /obj/item/ammo_magazine/m9mmt +/obj/item/weapon/gun/projectile/automatic/tommygun + icon = 'icons/obj/gun_vr.dmi' + //////////////////////////////////////////////////////////// //////////////////// Projectile Weapons //////////////////// //////////////////////////////////////////////////////////// diff --git a/code/modules/projectiles/guns/projectile/boltaction.dm b/code/modules/projectiles/guns/projectile/boltaction.dm index 203b2ef6cc..52e8c17ca9 100644 --- a/code/modules/projectiles/guns/projectile/boltaction.dm +++ b/code/modules/projectiles/guns/projectile/boltaction.dm @@ -2,12 +2,11 @@ /obj/item/weapon/gun/projectile/shotgun/pump/rifle name = "bolt action rifle" - desc = "The Weissen Company Type-19 is a modern interpretation of an almost ancient weapon design. The model is popular among hunters and collectors due to its reliability. Uses 7.62mm rounds." - description_fluff = "The frontier’s largest home-grown firearms manufacturer, the APEX Arms Company offers a range of high-quality, high-cost hunting rifles and shotguns designed with the wild frontier wilderness - and its wildlife - in mind. \ - The company operates just one production plant in the Mytis system, but their weapons have found popularity on garden worlds as far afield as the Tajaran homeworld due to their excellent build quality, precision, and stopping power." - icon = 'icons/obj/gun_vr.dmi' - icon_state = "boltaction" + desc = "The Hedberg-Hammarstrom Volsung is a modern interpretation of an almost ancient weapon design. The model is popular among hunters and collectors due to its reliability. Uses 7.62mm rounds." + description_fluff = "Sif’s largest home-grown firearms manufacturer, the Hedberg-Hammarstrom company offers a range of high-quality, high-cost hunting rifles and shotguns designed with the Sivian wilderness - and its wildlife - in mind. \ + The company operates just one production plant in Kalmar, but their weapons have found popularity on garden worlds as far afield as the Tajaran homeworld due to their excellent build quality, precision, and stopping power." item_state = "boltaction" + icon_state = "boltaction" fire_sound = 'sound/weapons/Gunshot_generic_rifle.ogg' max_shells = 5 caliber = "7.62mm" @@ -18,21 +17,14 @@ pump_animation = null /obj/item/weapon/gun/projectile/shotgun/pump/rifle/practice //For target practice - name = "practice rifle" desc = "A bolt-action rifle with a lightweight synthetic wood stock, designed for competitive shooting. Comes shipped with practice rounds pre-loaded into the gun. Popular among professional marksmen. Uses 7.62mm rounds." - icon = 'icons/obj/gun_vr.dmi' - icon_state = "boltaction_p" - item_state = "boltaction_p" - max_shells = 4 ammo_type = /obj/item/ammo_casing/a762/practice /obj/item/weapon/gun/projectile/shotgun/pump/rifle/ceremonial name = "ceremonial bolt-action rifle" desc = "A bolt-action rifle with a heavy, high-quality wood stock that has a beautiful finish. Clearly not intended to be used in combat. Uses 7.62mm rounds." - icon = 'icons/obj/gun_vr.dmi' icon_state = "boltaction_c" item_state = "boltaction_c" - max_shells = 5 ammo_type = /obj/item/ammo_casing/a762/blank // Stole hacky terrible code from doublebarrel shotgun. -Spades @@ -58,46 +50,21 @@ else ..() -////////////////////////Yee-haw guns//////////////////////// - +//Lever actions are the same thing, but bigger. /obj/item/weapon/gun/projectile/shotgun/pump/rifle/lever name = "lever-action rifle" - desc = "The Weissen Company Thunderking is the latest version of an almost ancient weapon design from the 19th century, popular with some due to its simplistic design. This one uses a lever-action to move new rounds into the chamber. Uses 7.62mm rounds." - description_fluff = "The frontier’s largest home-grown firearms manufacturer, the Weissen Company offers a range of high-quality, high-cost hunting rifles and shotguns designed with the wild frontier wilderness - and its wildlife - in mind. \ - The company operates just one production plant in the Mytis system, but their weapons have found popularity on garden worlds as far afield as the Tajaran homeworld due to their excellent build quality, precision, and stopping power." - icon = 'icons/obj/gun_vr.dmi' - icon_state = "levergun" + desc = "The Hedberg-Hammarstrom Edda is the latest version of an almost ancient weapon design from the 19th century, popular with some due to its simplistic design. This one uses a lever-action to move new rounds into the chamber. Uses 7.62mm rounds." + description_fluff = "Sif’s largest home-grown firearms manufacturer, the Hedberg-Hammarstrom company offers a range of high-quality, high-cost hunting rifles and shotguns designed with the Sivian wilderness - and its wildlife - in mind. \ + The company operates just one production plant in Kalmar, but their weapons have found popularity on garden worlds as far afield as the Tajaran homeworld due to their excellent build quality, precision, and stopping power." item_state = "leveraction" - max_shells = 6 + icon_state = "leveraction" + max_shells = 5 caliber = "7.62mm" load_method = SINGLE_CASING /obj/item/weapon/gun/projectile/shotgun/pump/rifle/lever/vintage name = "vintage repeater" - desc = "The Weissen Company's version of an iconic manually operated lever action rifle, the Bushhog, offering adequate stopping power due to it's still powerful cartridge while at the same time having a rather respectable firing rate due to it's mechanism. It is very probable this is a replica instead of a museum piece, but rifles of this pattern still see usage as colonist guns in some far off regions. Uses 7.62mm rounds." - description_fluff = "The frontier’s largest home-grown firearms manufacturer, the Weissen Company offers a range of high-quality, high-cost hunting rifles and shotguns designed with the wild frontier wilderness - and its wildlife - in mind. \ - The company operates just one production plant in the Mytis system, but their weapons have found popularity on garden worlds as far afield as the Tajaran homeworld due to their excellent build quality, precision, and stopping power." - icon = 'icons/obj/gun_vr.dmi' - icon_state = "levergunv" - item_state = "leveraction" - max_shells = 5 - caliber = "7.62mm" - load_method = SINGLE_CASING - -////////////////////////surplus gun - for derelicts (04/26/2021)//////////////////////// - -/obj/item/weapon/gun/projectile/shotgun/pump/surplus - name = "surplus rifle" - desc = "An ancient weapon from an era long pas, crude in design, but still just as effective as any modern interpretation. Uses 7.62mm rounds." - icon = 'icons/obj/gun_vr.dmi' - icon_state = "boltaction_s" - item_state = "boltaction_p" - fire_sound = 'sound/weapons/Gunshot_generic_rifle.ogg' - max_shells = 4 - slot_flags = null - caliber = "7.62mm" - origin_tech = list(TECH_COMBAT = 1) // Old(er) as shit rifle doesn't have very good tech. - ammo_type = /obj/item/ammo_casing/a762 - load_method = SINGLE_CASING|SPEEDLOADER - action_sound = 'sound/weapons/riflebolt.ogg' - pump_animation = null \ No newline at end of file + desc = "An iconic manually operated lever action rifle, offering adequate stopping power due to it's still powerful cartridge while at the same time having a rather respectable firing rate due to it's mechanism. It is very probable this is a replica instead of a museum piece, but rifles of this pattern still see usage as colonist guns in some far off regions. Uses 7.62mm rounds." + item_state = "levercarabine" // That isn't how carbine is spelled ya knob! :U + icon_state = "levercarabine" + pump_animation = "levercarabine-cycling" diff --git a/code/modules/projectiles/guns/projectile/boltaction_vr.dm b/code/modules/projectiles/guns/projectile/boltaction_vr.dm new file mode 100644 index 0000000000..720d3575d1 --- /dev/null +++ b/code/modules/projectiles/guns/projectile/boltaction_vr.dm @@ -0,0 +1,53 @@ +/obj/item/weapon/gun/projectile/shotgun/pump/rifle + desc = "The Weissen Company Type-19 is a modern interpretation of an almost ancient weapon design. The model is popular among hunters and collectors due to its reliability. Uses 7.62mm rounds." + description_fluff = "The frontier’s largest home-grown firearms manufacturer, the APEX Arms Company offers a range of high-quality, high-cost hunting rifles and shotguns designed with the wild frontier wilderness - and its wildlife - in mind. \ + The company operates just one production plant in the Mytis system, but their weapons have found popularity on garden worlds as far afield as the Tajaran homeworld due to their excellent build quality, precision, and stopping power." + icon = 'icons/obj/gun_vr.dmi' + +/obj/item/weapon/gun/projectile/shotgun/pump/rifle/practice //For target practice + name = "practice rifle" + icon = 'icons/obj/gun_vr.dmi' + icon_state = "boltaction_p" + item_state = "boltaction_p" + max_shells = 4 + +/obj/item/weapon/gun/projectile/shotgun/pump/rifle/ceremonial + max_shells = 5 + +/obj/item/weapon/gun/projectile/shotgun/pump/rifle/lever + desc = "The Weissen Company Thunderking is the latest version of an almost ancient weapon design from the 19th century, popular with some due to its simplistic design. This one uses a lever-action to move new rounds into the chamber. Uses 7.62mm rounds." + description_fluff = "The frontier’s largest home-grown firearms manufacturer, the Weissen Company offers a range of high-quality, high-cost hunting rifles and shotguns designed with the wild frontier wilderness - and its wildlife - in mind. \ + The company operates just one production plant in the Mytis system, but their weapons have found popularity on garden worlds as far afield as the Tajaran homeworld due to their excellent build quality, precision, and stopping power." + icon = 'icons/obj/gun_vr.dmi' + icon_state = "levergun" + max_shells = 6 + +/obj/item/weapon/gun/projectile/shotgun/pump/rifle/lever/vintage + desc = "The Weissen Company's version of an iconic manually operated lever action rifle, the Bushhog, offering adequate stopping power due to it's still powerful cartridge while at the same time having a rather respectable firing rate due to it's mechanism. It is very probable this is a replica instead of a museum piece, but rifles of this pattern still see usage as colonist guns in some far off regions. Uses 7.62mm rounds." + description_fluff = "The frontier’s largest home-grown firearms manufacturer, the Weissen Company offers a range of high-quality, high-cost hunting rifles and shotguns designed with the wild frontier wilderness - and its wildlife - in mind. \ + The company operates just one production plant in the Mytis system, but their weapons have found popularity on garden worlds as far afield as the Tajaran homeworld due to their excellent build quality, precision, and stopping power." + icon = 'icons/obj/gun_vr.dmi' + icon_state = "levergunv" + item_state = "leveraction" + max_shells = 5 + caliber = "7.62mm" + load_method = SINGLE_CASING + pump_animation = null + +////////////////////////surplus gun - for derelicts (04/26/2021)//////////////////////// + +/obj/item/weapon/gun/projectile/shotgun/pump/surplus + name = "surplus rifle" + desc = "An ancient weapon from an era long pas, crude in design, but still just as effective as any modern interpretation. Uses 7.62mm rounds." + icon = 'icons/obj/gun_vr.dmi' + icon_state = "boltaction_s" + item_state = "boltaction_p" + fire_sound = 'sound/weapons/Gunshot_generic_rifle.ogg' + max_shells = 4 + slot_flags = null + caliber = "7.62mm" + origin_tech = list(TECH_COMBAT = 1) // Old(er) as shit rifle doesn't have very good tech. + ammo_type = /obj/item/ammo_casing/a762 + load_method = SINGLE_CASING|SPEEDLOADER + action_sound = 'sound/weapons/riflebolt.ogg' + pump_animation = null diff --git a/code/modules/projectiles/projectile/beams.dm b/code/modules/projectiles/projectile/beams.dm index 6e560e0b2e..734d14c63a 100644 --- a/code/modules/projectiles/projectile/beams.dm +++ b/code/modules/projectiles/projectile/beams.dm @@ -44,6 +44,7 @@ damage = 30 armor_penetration = 10 + /obj/item/projectile/beam/midlaser damage = 40 armor_penetration = 10 @@ -281,6 +282,7 @@ damage = 5 agony = 10 + // // Projectile Beam Definitions // @@ -298,5 +300,3 @@ muzzle_type = /obj/effect/projectile/muzzle/pointdefense tracer_type = /obj/effect/projectile/tracer/pointdefense impact_type = /obj/effect/projectile/impact/pointdefense - - diff --git a/code/modules/projectiles/projectile/beams_vr.dm b/code/modules/projectiles/projectile/beams_vr.dm index 7b284b64c4..a3a149502c 100644 --- a/code/modules/projectiles/projectile/beams_vr.dm +++ b/code/modules/projectiles/projectile/beams_vr.dm @@ -50,15 +50,6 @@ tracer_type = /obj/effect/projectile/tracer/laser_blue impact_type = /obj/effect/projectile/impact/laser_blue -/obj/item/projectile/beam/carbine/blue //double the damage of weaklaser - damage = 30 - icon_state = "bluelaser" - light_color = "#0066FF" - - muzzle_type = /obj/effect/projectile/muzzle/laser_blue - tracer_type = /obj/effect/projectile/tracer/laser_blue - impact_type = /obj/effect/projectile/impact/laser_blue - /obj/item/projectile/beam/medigun name = "healing beam" icon_state = "healbeam" @@ -92,5 +83,3 @@ M.adjustToxLoss(-5) M.adjustOxyLoss(-5) return 1 - -