mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
replaced electrodes with insta hit taser beams.
This commit is contained in:
@@ -821,7 +821,7 @@ Auto Patrol: []"},
|
|||||||
if (src.emagged == 2)
|
if (src.emagged == 2)
|
||||||
projectile = /obj/item/projectile/beam
|
projectile = /obj/item/projectile/beam
|
||||||
else
|
else
|
||||||
projectile = /obj/item/projectile/energy/electrode
|
projectile = /obj/item/projectile/beam/stun
|
||||||
else if(lasercolor == "b")
|
else if(lasercolor == "b")
|
||||||
if (src.emagged == 2)
|
if (src.emagged == 2)
|
||||||
projectile = /obj/item/projectile/beam/lastertag/omni
|
projectile = /obj/item/projectile/beam/lastertag/omni
|
||||||
|
|||||||
@@ -66,7 +66,7 @@
|
|||||||
spark_system.attach(src)
|
spark_system.attach(src)
|
||||||
sleep(10)
|
sleep(10)
|
||||||
if(!installation)// if for some reason the turret has no gun (ie, admin spawned) it resorts to basic taser shots
|
if(!installation)// if for some reason the turret has no gun (ie, admin spawned) it resorts to basic taser shots
|
||||||
projectile = /obj/item/projectile/energy/electrode//holder for the projectile, here it is being set
|
projectile = /obj/item/projectile/beam/stun//holder for the projectile, here it is being set
|
||||||
eprojectile = /obj/item/projectile/beam//holder for the projectile when emagged, if it is different
|
eprojectile = /obj/item/projectile/beam//holder for the projectile when emagged, if it is different
|
||||||
reqpower = 200
|
reqpower = 200
|
||||||
sound = 1
|
sound = 1
|
||||||
@@ -128,7 +128,7 @@
|
|||||||
reqpower = 700
|
reqpower = 700
|
||||||
|
|
||||||
if(/obj/item/weapon/gun/energy/taser)
|
if(/obj/item/weapon/gun/energy/taser)
|
||||||
projectile = /obj/item/projectile/energy/electrode
|
projectile = /obj/item/projectile/beam/stun
|
||||||
eprojectile = projectile
|
eprojectile = projectile
|
||||||
iconholder = 1
|
iconholder = 1
|
||||||
reqpower = 200
|
reqpower = 200
|
||||||
@@ -170,7 +170,7 @@
|
|||||||
reqpower = 500
|
reqpower = 500
|
||||||
|
|
||||||
else // Energy gun shots
|
else // Energy gun shots
|
||||||
projectile = /obj/item/projectile/energy/electrode// if it hasn't been emagged, it uses normal taser shots
|
projectile = /obj/item/projectile/beam/stun// if it hasn't been emagged, it uses normal taser shots
|
||||||
eprojectile = /obj/item/projectile/beam//If it has, going to kill mode
|
eprojectile = /obj/item/projectile/beam//If it has, going to kill mode
|
||||||
iconholder = 1
|
iconholder = 1
|
||||||
egun = 1
|
egun = 1
|
||||||
|
|||||||
@@ -117,7 +117,7 @@
|
|||||||
icon_state = "mecha_taser"
|
icon_state = "mecha_taser"
|
||||||
energy_drain = 20
|
energy_drain = 20
|
||||||
equip_cooldown = 8
|
equip_cooldown = 8
|
||||||
projectile = /obj/item/projectile/energy/electrode
|
projectile = /obj/item/projectile/beam/stun
|
||||||
fire_sound = 'sound/weapons/Taser.ogg'
|
fire_sound = 'sound/weapons/Taser.ogg'
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ emp_act
|
|||||||
return 2
|
return 2
|
||||||
|
|
||||||
//BEGIN BOOK'S TASER NERF.
|
//BEGIN BOOK'S TASER NERF.
|
||||||
if(istype(P, /obj/item/projectile/energy/electrode))
|
if(istype(P, /obj/item/projectile/beam/stun))
|
||||||
var/datum/organ/external/select_area = get_organ(def_zone) // We're checking the outside, buddy!
|
var/datum/organ/external/select_area = get_organ(def_zone) // We're checking the outside, buddy!
|
||||||
var/list/body_parts = list(head, wear_mask, wear_suit, w_uniform, gloves, shoes) // What all are we checking?
|
var/list/body_parts = list(head, wear_mask, wear_suit, w_uniform, gloves, shoes) // What all are we checking?
|
||||||
// var/deflectchance=90 //Is it a CRITICAL HIT with that taser?
|
// var/deflectchance=90 //Is it a CRITICAL HIT with that taser?
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
fire_sound = 'sound/weapons/Taser.ogg'
|
fire_sound = 'sound/weapons/Taser.ogg'
|
||||||
|
|
||||||
charge_cost = 100 //How much energy is needed to fire.
|
charge_cost = 100 //How much energy is needed to fire.
|
||||||
projectile_type = "/obj/item/projectile/energy/electrode"
|
projectile_type = "/obj/item/projectile/beam/stun"
|
||||||
origin_tech = "combat=3;magnets=2"
|
origin_tech = "combat=3;magnets=2"
|
||||||
modifystate = "energystun"
|
modifystate = "energystun"
|
||||||
|
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
charge_cost = 100
|
charge_cost = 100
|
||||||
fire_sound = 'sound/weapons/Taser.ogg'
|
fire_sound = 'sound/weapons/Taser.ogg'
|
||||||
user << "\red [src.name] is now set to stun."
|
user << "\red [src.name] is now set to stun."
|
||||||
projectile_type = "/obj/item/projectile/energy/electrode"
|
projectile_type = "/obj/item/projectile/beam/stun"
|
||||||
modifystate = "energystun"
|
modifystate = "energystun"
|
||||||
update_icon()
|
update_icon()
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
charge_cost = 100
|
charge_cost = 100
|
||||||
fire_sound = 'sound/weapons/Taser.ogg'
|
fire_sound = 'sound/weapons/Taser.ogg'
|
||||||
user << "\red [src.name] is now set to stun."
|
user << "\red [src.name] is now set to stun."
|
||||||
projectile_type = "/obj/item/projectile/energy/electrode"
|
projectile_type = "/obj/item/projectile/beam/stun"
|
||||||
if(0)
|
if(0)
|
||||||
mode = 1
|
mode = 1
|
||||||
charge_cost = 100
|
charge_cost = 100
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
item_state = null //so the human update icon uses the icon_state instead.
|
item_state = null //so the human update icon uses the icon_state instead.
|
||||||
fire_sound = 'sound/weapons/Taser.ogg'
|
fire_sound = 'sound/weapons/Taser.ogg'
|
||||||
charge_cost = 100
|
charge_cost = 100
|
||||||
projectile_type = "/obj/item/projectile/energy/electrode"
|
projectile_type = "/obj/item/projectile/beam/stun"
|
||||||
cell_type = "/obj/item/weapon/cell/crap"
|
cell_type = "/obj/item/weapon/cell/crap"
|
||||||
|
|
||||||
/obj/item/weapon/gun/energy/taser/cyborg
|
/obj/item/weapon/gun/energy/taser/cyborg
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
icon_state = "taser"
|
icon_state = "taser"
|
||||||
fire_sound = 'sound/weapons/Taser.ogg'
|
fire_sound = 'sound/weapons/Taser.ogg'
|
||||||
charge_cost = 100
|
charge_cost = 100
|
||||||
projectile_type = "/obj/item/projectile/energy/electrode"
|
projectile_type = "/obj/item/projectile/beam/stun"
|
||||||
cell_type = "/obj/item/weapon/cell/secborg"
|
cell_type = "/obj/item/weapon/cell/secborg"
|
||||||
var/charge_tick = 0
|
var/charge_tick = 0
|
||||||
var/recharge_time = 10 //Time it takes for shots to recharge (in ticks)
|
var/recharge_time = 10 //Time it takes for shots to recharge (in ticks)
|
||||||
@@ -33,16 +33,16 @@
|
|||||||
charge_tick++
|
charge_tick++
|
||||||
if(charge_tick < recharge_time) return 0
|
if(charge_tick < recharge_time) return 0
|
||||||
charge_tick = 0
|
charge_tick = 0
|
||||||
|
|
||||||
if(!power_supply) return 0 //sanity
|
if(!power_supply) return 0 //sanity
|
||||||
if(power_supply.charge >= power_supply.maxcharge) return 0 // check if we actually need to recharge
|
if(power_supply.charge >= power_supply.maxcharge) return 0 // check if we actually need to recharge
|
||||||
|
|
||||||
if(isrobot(src.loc))
|
if(isrobot(src.loc))
|
||||||
var/mob/living/silicon/robot/R = src.loc
|
var/mob/living/silicon/robot/R = src.loc
|
||||||
if(R && R.cell)
|
if(R && R.cell)
|
||||||
R.cell.use(charge_cost) //Take power from the borg...
|
R.cell.use(charge_cost) //Take power from the borg...
|
||||||
power_supply.give(charge_cost) //... to recharge the shot
|
power_supply.give(charge_cost) //... to recharge the shot
|
||||||
|
|
||||||
update_icon()
|
update_icon()
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
@@ -51,10 +51,10 @@
|
|||||||
name = "stun revolver"
|
name = "stun revolver"
|
||||||
desc = "A high-tech revolver that fires stun cartridges. The stun cartridges can be recharged using a conventional energy weapon recharger."
|
desc = "A high-tech revolver that fires stun cartridges. The stun cartridges can be recharged using a conventional energy weapon recharger."
|
||||||
icon_state = "stunrevolver"
|
icon_state = "stunrevolver"
|
||||||
fire_sound = 'sound/weapons/Gunshot.ogg'
|
fire_sound = 'sound/weapons/Taser.ogg'
|
||||||
origin_tech = "combat=3;materials=3;powerstorage=2"
|
origin_tech = "combat=3;materials=3;powerstorage=2"
|
||||||
charge_cost = 125
|
charge_cost = 125
|
||||||
projectile_type = "/obj/item/projectile/energy/electrode"
|
projectile_type = "/obj/item/projectile/beam/stun"
|
||||||
cell_type = "/obj/item/weapon/cell"
|
cell_type = "/obj/item/weapon/cell"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -168,4 +168,11 @@ var/list/beam_master = list()
|
|||||||
damage = 60
|
damage = 60
|
||||||
stun = 5
|
stun = 5
|
||||||
weaken = 5
|
weaken = 5
|
||||||
stutter = 5
|
stutter = 5
|
||||||
|
|
||||||
|
/obj/item/projectile/beam/stun
|
||||||
|
name = "stun beam"
|
||||||
|
icon_state = "stun"
|
||||||
|
nodamage = 1
|
||||||
|
agony = 40
|
||||||
|
damage_type = HALLOSS
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 29 KiB |
Reference in New Issue
Block a user