Files
Wowzewow (Wezzy) e3d3d00347 More Handling Sounds (#22528)
Just ports more pickup, drop and handling sounds from /tg/ to keep pace.

Attributions in their own .txt files.
2026-05-30 12:07:44 +00:00

77 lines
2.8 KiB
Plaintext

/obj/item/gun/projectile/plasma
name = "OEI-2 plasma shotgun"
desc = "A marvel of Elyran weapons technology which utilizes superheated plasma to pierce thick armor with gruesome results."
icon = 'icons/obj/guns/faction/elyran_republic/slammer.dmi'
icon_state = "slammer"
item_state = "slammer"
w_class = WEIGHT_CLASS_BULKY
origin_tech = list(TECH_COMBAT = 3, TECH_MATERIAL = 3)
ammo_type = /obj/item/ammo_casing/plasma_slug
magazine_type = /obj/item/ammo_magazine/plasma
allowed_magazines = list(/obj/item/ammo_magazine/plasma)
caliber = "plasma slug"
fire_sound = 'sound/weapons/gunshot/slammer.ogg'
load_method = MAGAZINE
handle_casings = DELETE_CASINGS
fire_delay = ROF_HEAVY
drop_sound = 'sound/items/drop/shotgun.ogg'
pickup_sound = 'sound/items/pickup/shotgun.ogg'
/obj/item/gun/projectile/plasma/update_icon()
..()
if(ammo_magazine)
icon_state = "[initial(icon_state)]"
else
icon_state = "[initial(icon_state)]-empty"
/obj/item/gun/projectile/plasma/bolter
name = "\improper OEI-2M plasma bolter"
desc = "A miniaturized, less efficient version of the infamous plasma slammer. Sacrifices much of its power for a more compact frame."
icon = 'icons/obj/guns/faction/elyran_republic/bolter.dmi'
icon_state = "bolter"
item_state = "bolter"
w_class = WEIGHT_CLASS_NORMAL
ammo_type = /obj/item/ammo_casing/plasma_bolt
magazine_type = /obj/item/ammo_magazine/plasma/light
allowed_magazines = list(/obj/item/ammo_magazine/plasma/light)
caliber = "plasma bolt"
fire_sound = 'sound/weapons/gunshot/bolter.ogg'
fire_delay = ROF_RIFLE
/obj/item/gun/energy/mountedplasma
name = "mounted plasma cannon"
fire_sound = 'sound/weapons/gunshot/slammer.ogg'
burst = 2
burst_delay = 3
max_shots = 15
charge_cost = 100
use_external_power = TRUE
self_recharge = TRUE
projectile_type = /obj/projectile/plasma
/obj/item/gun/projectile/plasma/bolter/pistol
name = "\improper OEI-7 plasma pistol"
desc = "An Elyran designed firearm, used for diplomatic protection and high-value escort, which fires super heated bolts of plasma. Rare outside of Elyra due to the maintenance and production costs."
icon = 'icons/obj/guns/faction/elyran_republic/plasma_pistol.dmi'
icon_state = "plasma"
item_state = "plasma"
magazine_type = /obj/item/ammo_magazine/plasma/light/pistol
allowed_magazines = list(/obj/item/ammo_magazine/plasma/light/pistol)
slot_flags = SLOT_BELT | SLOT_HOLSTER
accuracy = 1
fire_delay = ROF_INTERMEDIATE
/obj/item/gun/projectile/plasma/bolter/pistol/update_icon()
..()
if(ammo_magazine)
var/ratio = length(ammo_magazine.stored_ammo) / ammo_magazine.max_ammo
if(!length(ammo_magazine.stored_ammo))
ratio = 0
else
ratio = max((round(ratio, 0.25) * 100), 25)
icon_state = "[initial(icon_state)][ratio]"
item_state = "[initial(item_state)][ratio]"
else
icon_state = "[initial(icon_state)]-empty"
item_state = "[initial(item_state)]-empty"