Files
Aurora.3/code/modules/projectiles/guns/projectile/plasma.dm
Cody BrittainandGitHub 23789d4113 Sorts out existing projectile weapons (#22059)
This PR is intended to sort out our existing guns into something
resembling organization. In addition, ancient decrepit guns are removed,
and abstract paths are labeled as such.

In addition, all guns are now standardized to refer to their model.
Considering the huge number of weapons we have, a `pistol` is not
descriptive enough.

NOTE: At over 200 files touched, this is being split. Not everything was
sorted, but this is already a monster to sort through. The rest can
wait.
2026-03-25 15:37:50 +00:00

75 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
/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"