mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-21 11:07:12 +01:00
Improves the abductor vest combat mode stim injector feedback (#28294)
* improves the abductor vest combat mode feedback * Update abduction_gear.dm
This commit is contained in:
@@ -72,11 +72,12 @@ CONTENTS:
|
||||
allowed = list(/obj/item/abductor, /obj/item/abductor_baton, /obj/item/melee/baton, /obj/item/gun/energy, /obj/item/restraints/handcuffs)
|
||||
var/mode = ABDUCTOR_VEST_STEALTH
|
||||
var/stealth_active = 0
|
||||
var/combat_cooldown = 10
|
||||
var/combat_cooldown = 10 SECONDS
|
||||
var/datum/icon_snapshot/disguise
|
||||
var/stealth_armor = list(MELEE = 10, BULLET = 10, LASER = 10, ENERGY = 10, BOMB = 10, RAD = 10, FIRE = 115, ACID = 115)
|
||||
var/combat_armor = list(MELEE = 50, BULLET = 50, LASER = 50, ENERGY = 50, BOMB = 50, RAD = 50, FIRE = 450, ACID = 450)
|
||||
sprite_sheets = null
|
||||
COOLDOWN_DECLARE(abductor_adrenaline)
|
||||
|
||||
/obj/item/clothing/suit/armor/abductor/vest/Initialize(mapload)
|
||||
. = ..()
|
||||
@@ -156,26 +157,20 @@ CONTENTS:
|
||||
|
||||
/obj/item/clothing/suit/armor/abductor/vest/proc/Adrenaline()
|
||||
if(ishuman(loc))
|
||||
if(combat_cooldown != initial(combat_cooldown))
|
||||
to_chat(loc, "<span class='warning'>Combat injection is still recharging.</span>")
|
||||
if(!COOLDOWN_FINISHED(src, abductor_adrenaline))
|
||||
to_chat(loc, "<span class='warning'>Combat injection is still recharging. Please wait [round(COOLDOWN_TIMELEFT(src, abductor_adrenaline), 1 SECONDS) / 10] seconds.</span>")
|
||||
return
|
||||
var/mob/living/carbon/human/M = loc
|
||||
to_chat(loc, "<span class='notice'>You feel a series of pricks down your back, followed by a surge of energy!</span>")
|
||||
M.adjustStaminaLoss(-75)
|
||||
M.SetParalysis(0)
|
||||
M.SetStunned(0)
|
||||
M.SetWeakened(0)
|
||||
M.SetKnockDown(0)
|
||||
M.stand_up(TRUE)
|
||||
combat_cooldown = 0
|
||||
START_PROCESSING(SSobj, src)
|
||||
|
||||
/obj/item/clothing/suit/armor/abductor/vest/process()
|
||||
combat_cooldown++
|
||||
if(combat_cooldown==initial(combat_cooldown))
|
||||
STOP_PROCESSING(SSobj, src)
|
||||
COOLDOWN_START(src, abductor_adrenaline, combat_cooldown)
|
||||
|
||||
/obj/item/clothing/suit/armor/abductor/Destroy()
|
||||
STOP_PROCESSING(SSobj, src)
|
||||
for(var/obj/machinery/abductor/console/C in GLOB.machines)
|
||||
if(C.vest == src)
|
||||
C.vest = null
|
||||
|
||||
Reference in New Issue
Block a user