mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-06 07:22:15 +00:00
Title says it all. This needed some changes to offhand (which is now a subtype of weapon, not /weapon/gun), but otherwise it seems to work well in testing.
72 lines
2.1 KiB
Plaintext
72 lines
2.1 KiB
Plaintext
/obj/item/weapon/gun/energy/blaster
|
|
name = "blaster pistol"
|
|
desc = "A tiny energy pistol converted to fire off energy bolts rather than lasers beams."
|
|
icon_state = "blaster_pistol"
|
|
item_state = "blaster_pistol"
|
|
fire_sound = 'sound/weapons/Laser.ogg'
|
|
slot_flags = SLOT_BELT|SLOT_HOLSTER
|
|
w_class = 3
|
|
force = 5
|
|
origin_tech = list(TECH_COMBAT = 2, TECH_MAGNET = 2)
|
|
matter = list(DEFAULT_WALL_MATERIAL = 2000)
|
|
projectile_type = /obj/item/projectile/energy/blaster
|
|
max_shots = 6
|
|
|
|
burst_delay = 2
|
|
sel_mode = 1
|
|
|
|
firemodes = list(
|
|
list(mode_name="semiauto", burst=1, fire_delay=0, move_delay=null, burst_accuracy=null, dispersion=null),
|
|
list(mode_name="2-round bursts", burst=2, fire_delay=null, move_delay=2, burst_accuracy=list(1,0,0), dispersion=list(0, 10, 15))
|
|
)
|
|
|
|
/obj/item/weapon/gun/energy/blaster/carbine
|
|
name = "blaster carbine"
|
|
desc = "A short-barreled blaster carbine meant for easy handling and comfort when in combat."
|
|
icon_state = "blaster_carbine"
|
|
item_state = "blaster_carbine"
|
|
max_shots = 12
|
|
origin_tech = list(TECH_COMBAT = 3, TECH_MAGNET = 2)
|
|
projectile_type = /obj/item/projectile/energy/blaster
|
|
slot_flags = SLOT_BELT
|
|
|
|
/obj/item/weapon/gun/energy/blaster/rifle
|
|
name = "bolt slinger"
|
|
desc = "A blaster rifle which seems to work by accelerating particles and flinging them out in destructive bolts."
|
|
icon_state = "blaster_rifle"
|
|
item_state = "blaster_rifle"
|
|
max_shots = 20
|
|
origin_tech = list(TECH_COMBAT = 4, TECH_MAGNET = 3)
|
|
projectile_type = /obj/item/projectile/energy/blaster/heavy
|
|
|
|
slot_flags = SLOT_BACK
|
|
w_class = 4
|
|
|
|
fire_delay = 25
|
|
w_class = 4
|
|
accuracy = -3
|
|
scoped_accuracy = 4
|
|
|
|
fire_delay_wielded = 10
|
|
accuracy_wielded = 0
|
|
|
|
is_wieldable = TRUE
|
|
|
|
/obj/item/weapon/gun/energy/blaster/rifle/update_icon()
|
|
..()
|
|
if(wielded)
|
|
item_state = "blaster_rifle-wielded"
|
|
else
|
|
item_state = initial(item_state)
|
|
update_held_icon()
|
|
|
|
/obj/item/weapon/gun/energy/blaster/rifle/verb/scope()
|
|
set category = "Object"
|
|
set name = "Use Scope"
|
|
set popup_menu = 1
|
|
|
|
if(wielded)
|
|
toggle_scope(2.0, usr)
|
|
else
|
|
to_chat(usr, "<span class='warning'>You can't look through the scope without stabilizing the rifle!</span>")
|