mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-11 07:03:30 +01:00
Mechs can now be emaged to remove dna lock and access (#19006)
* Mechs can now be emaged to remove dna lock and access * Update code/game/mecha/mecha.dm Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com> Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com>
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
max_equip = 5
|
||||
starting_voice = /obj/item/mecha_modkit/voice/nanotrasen
|
||||
destruction_sleep_duration = 2 SECONDS
|
||||
emag_proof = TRUE //no stealing CC mechs.
|
||||
|
||||
/obj/mecha/combat/marauder/GrantActions(mob/living/user, human_occupant = 0)
|
||||
. = ..()
|
||||
@@ -55,6 +56,7 @@
|
||||
max_temperature = 40000
|
||||
wreckage = /obj/structure/mecha_wreckage/ares
|
||||
max_equip = 4
|
||||
emag_proof = FALSE //Gamma armory can be stolen however.
|
||||
|
||||
/obj/mecha/combat/marauder/ares/loaded/Initialize(mapload)
|
||||
. = ..()
|
||||
@@ -112,6 +114,7 @@
|
||||
operation_req_access = list(ACCESS_SYNDICATE)
|
||||
wreckage = /obj/structure/mecha_wreckage/mauler
|
||||
starting_voice = /obj/item/mecha_modkit/voice/syndicate
|
||||
emag_proof = FALSE //The crew can steal a syndicate mech. As a treat.
|
||||
|
||||
/obj/mecha/combat/marauder/mauler/loaded/Initialize(mapload)
|
||||
. = ..()
|
||||
|
||||
@@ -40,6 +40,7 @@
|
||||
var/frozen = FALSE
|
||||
var/repairing = FALSE
|
||||
var/emp_proof = FALSE //If it is immune to emps
|
||||
var/emag_proof = FALSE //If it is immune to emagging. Used by CC mechs.
|
||||
|
||||
//inner atmos
|
||||
var/use_internal_tank = 0
|
||||
@@ -878,8 +879,14 @@
|
||||
. = ..()
|
||||
|
||||
/obj/mecha/emag_act(mob/user)
|
||||
to_chat(user, "<span class='warning'>[src]'s ID slot rejects the card.</span>")
|
||||
return
|
||||
if(emag_proof)
|
||||
to_chat(user, "<span class='warning'>[src]'s ID slot rejects the card.</span>")
|
||||
return
|
||||
user.visible_message("<span class='notice'>[user] slides a card through [src]'s id slot.</span>", "<span class='notice'>You slide the card through [src]'s ID slot, resetting the DNA and access locks.</span>")
|
||||
playsound(loc, "sparks", 100, TRUE, SHORT_RANGE_SOUND_EXTRARANGE)
|
||||
dna = null
|
||||
operation_req_access = list()
|
||||
|
||||
|
||||
|
||||
/////////////////////////////////////
|
||||
|
||||
@@ -209,8 +209,5 @@
|
||||
/obj/mecha/working/ripley/emag_act(mob/user)
|
||||
if(!emagged)
|
||||
emagged = TRUE
|
||||
to_chat(user, "<span class='notice'>You slide the card through [src]'s ID slot.</span>")
|
||||
playsound(loc, "sparks", 100, TRUE, SHORT_RANGE_SOUND_EXTRARANGE)
|
||||
desc += "</br><span class='danger'>The mech's equipment slots spark dangerously!</span>"
|
||||
else
|
||||
to_chat(user, "<span class='warning'>[src]'s ID slot rejects the card.</span>")
|
||||
return ..()
|
||||
|
||||
Reference in New Issue
Block a user