mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-25 09:31:30 +00:00
58 lines
2.1 KiB
Plaintext
58 lines
2.1 KiB
Plaintext
/obj/item/weapon/gun/energy/pulse_rifle
|
|
name = "pulse rifle"
|
|
desc = "A weapon that uses advanced pulse-based beam generation technology to emit powerful laser blasts. Because of its complexity and cost, it is rarely seen in use except by specialists."
|
|
icon_state = "pulse"
|
|
item_state = null //so the human update icon uses the icon_state instead.
|
|
slot_flags = SLOT_BELT|SLOT_BACK
|
|
force = 10
|
|
fire_sound = 'sound/weapons/pulse.ogg'
|
|
charge_cost = 200
|
|
projectile_type = /obj/item/projectile/beam/pulse
|
|
cell_type = /obj/item/weapon/cell/super
|
|
var/mode = 2
|
|
fire_delay = 25
|
|
|
|
/obj/item/weapon/gun/energy/pulse_rifle/attack_self(mob/living/user as mob)
|
|
switch(mode)
|
|
if(2)
|
|
mode = 0
|
|
charge_cost = 100
|
|
fire_sound = 'sound/weapons/Taser.ogg'
|
|
user << "<span class='warning'>[src.name] is now set to stun.</span>"
|
|
projectile_type = /obj/item/projectile/beam/stun
|
|
if(0)
|
|
mode = 1
|
|
charge_cost = 100
|
|
fire_sound = 'sound/weapons/Laser.ogg'
|
|
user << "<span class='warning'>[src.name] is now set to kill.</span>"
|
|
projectile_type = /obj/item/projectile/beam
|
|
if(1)
|
|
mode = 2
|
|
charge_cost = 200
|
|
fire_sound = 'sound/weapons/pulse.ogg'
|
|
user << "<span class='warning'>[src.name] is now set to DESTROY.</span>"
|
|
projectile_type = /obj/item/projectile/beam/pulse
|
|
|
|
/obj/item/weapon/gun/energy/pulse_rifle/mounted
|
|
self_recharge = 1
|
|
use_external_power = 1
|
|
|
|
/obj/item/weapon/gun/energy/pulse_rifle/destroyer
|
|
name = "pulse destroyer"
|
|
desc = "A heavy-duty, pulse-based energy weapon. Because of its complexity and cost, it is rarely seen in use except by specialists."
|
|
cell_type = /obj/item/weapon/cell/infinite
|
|
fire_delay = 10
|
|
|
|
/obj/item/weapon/gun/energy/pulse_rifle/destroyer/attack_self(mob/living/user as mob)
|
|
user << "<span class='warning'>[src.name] has three settings, and they are all DESTROY.</span>"
|
|
|
|
|
|
//WHY?
|
|
/obj/item/weapon/gun/energy/pulse_rifle/M1911
|
|
name = "\improper M1911-P"
|
|
desc = "It's not the size of the gun, it's the size of the hole it puts through people."
|
|
slot_flags = SLOT_BELT|SLOT_HOLSTER
|
|
icon_state = "m1911-p"
|
|
cell_type = /obj/item/weapon/cell/infinite
|
|
fire_delay = 10
|