mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Merge pull request #7962 from VOREStation/Arokha/playsound
Alter playsound paradigm
This commit is contained in:
@@ -396,7 +396,7 @@
|
|||||||
to_chat(user, "<span class='notice'>Now welding the vent.</span>")
|
to_chat(user, "<span class='notice'>Now welding the vent.</span>")
|
||||||
if(do_after(user, 20 * WT.toolspeed))
|
if(do_after(user, 20 * WT.toolspeed))
|
||||||
if(!src || !WT.isOn()) return
|
if(!src || !WT.isOn()) return
|
||||||
playsound(src.loc, WT.usesound, 50, 1)
|
playsound(src, WT.usesound, 50, 1)
|
||||||
if(!welded)
|
if(!welded)
|
||||||
user.visible_message("<span class='notice'>\The [user] welds the vent shut.</span>", "<span class='notice'>You weld the vent shut.</span>", "You hear welding.")
|
user.visible_message("<span class='notice'>\The [user] welds the vent shut.</span>", "<span class='notice'>You weld the vent shut.</span>", "You hear welding.")
|
||||||
welded = 1
|
welded = 1
|
||||||
|
|||||||
@@ -78,7 +78,7 @@
|
|||||||
|
|
||||||
/obj/machinery/atmospherics/pipe/simple/proc/burst()
|
/obj/machinery/atmospherics/pipe/simple/proc/burst()
|
||||||
src.visible_message("<span class='danger'>\The [src] bursts!</span>");
|
src.visible_message("<span class='danger'>\The [src] bursts!</span>");
|
||||||
playsound(src.loc, 'sound/effects/bang.ogg', 25, 1)
|
playsound(src, 'sound/effects/bang.ogg', 25, 1)
|
||||||
var/datum/effect/effect/system/smoke_spread/smoke = new
|
var/datum/effect/effect/system/smoke_spread/smoke = new
|
||||||
smoke.set_up(1,0, src.loc, 0)
|
smoke.set_up(1,0, src.loc, 0)
|
||||||
smoke.start()
|
smoke.start()
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ atom/movable/proc/airflow_hit(atom/A)
|
|||||||
mob/airflow_hit(atom/A)
|
mob/airflow_hit(atom/A)
|
||||||
for(var/mob/M in hearers(src))
|
for(var/mob/M in hearers(src))
|
||||||
M.show_message("<span class='danger'>\The [src] slams into \a [A]!</span>",1,"<span class='danger'>You hear a loud slam!</span>",2)
|
M.show_message("<span class='danger'>\The [src] slams into \a [A]!</span>",1,"<span class='danger'>You hear a loud slam!</span>",2)
|
||||||
playsound(src.loc, "smash.ogg", 25, 1, -1)
|
playsound(src, "smash.ogg", 25, 1, -1)
|
||||||
var/weak_amt = istype(A,/obj/item) ? A:w_class : rand(1,5) //Heheheh
|
var/weak_amt = istype(A,/obj/item) ? A:w_class : rand(1,5) //Heheheh
|
||||||
Weaken(weak_amt)
|
Weaken(weak_amt)
|
||||||
. = ..()
|
. = ..()
|
||||||
@@ -105,7 +105,7 @@ mob/airflow_hit(atom/A)
|
|||||||
obj/airflow_hit(atom/A)
|
obj/airflow_hit(atom/A)
|
||||||
for(var/mob/M in hearers(src))
|
for(var/mob/M in hearers(src))
|
||||||
M.show_message("<span class='danger'>\The [src] slams into \a [A]!</span>",1,"<span class='danger'>You hear a loud slam!</span>",2)
|
M.show_message("<span class='danger'>\The [src] slams into \a [A]!</span>",1,"<span class='danger'>You hear a loud slam!</span>",2)
|
||||||
playsound(src.loc, "smash.ogg", 25, 1, -1)
|
playsound(src, "smash.ogg", 25, 1, -1)
|
||||||
. = ..()
|
. = ..()
|
||||||
|
|
||||||
obj/item/airflow_hit(atom/A)
|
obj/item/airflow_hit(atom/A)
|
||||||
@@ -115,7 +115,7 @@ obj/item/airflow_hit(atom/A)
|
|||||||
mob/living/carbon/human/airflow_hit(atom/A)
|
mob/living/carbon/human/airflow_hit(atom/A)
|
||||||
// for(var/mob/M in hearers(src))
|
// for(var/mob/M in hearers(src))
|
||||||
// M.show_message("<span class='danger'>[src] slams into [A]!</span>",1,"<span class='danger'>You hear a loud slam!</span>",2)
|
// M.show_message("<span class='danger'>[src] slams into [A]!</span>",1,"<span class='danger'>You hear a loud slam!</span>",2)
|
||||||
playsound(src.loc, "punch", 25, 1, -1)
|
playsound(src, "punch", 25, 1, -1)
|
||||||
if (prob(33))
|
if (prob(33))
|
||||||
loc:add_blood(src)
|
loc:add_blood(src)
|
||||||
bloody_body(src)
|
bloody_body(src)
|
||||||
|
|||||||
@@ -308,7 +308,7 @@
|
|||||||
var/obj/item/projectile/beam/LE = new (T)
|
var/obj/item/projectile/beam/LE = new (T)
|
||||||
LE.icon = 'icons/effects/genetics.dmi'
|
LE.icon = 'icons/effects/genetics.dmi'
|
||||||
LE.icon_state = "eyelasers"
|
LE.icon_state = "eyelasers"
|
||||||
playsound(usr.loc, 'sound/weapons/taser2.ogg', 75, 1)
|
playsound(src, 'sound/weapons/taser2.ogg', 75, 1)
|
||||||
LE.firer = src
|
LE.firer = src
|
||||||
LE.preparePixelProjectile(A, src, params)
|
LE.preparePixelProjectile(A, src, params)
|
||||||
LE.fire()
|
LE.fire()
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ avoid code duplication. This includes items that may sometimes act as a standard
|
|||||||
/obj/item/proc/apply_hit_effect(mob/living/target, mob/living/user, var/hit_zone, var/attack_modifier)
|
/obj/item/proc/apply_hit_effect(mob/living/target, mob/living/user, var/hit_zone, var/attack_modifier)
|
||||||
user.break_cloak()
|
user.break_cloak()
|
||||||
if(hitsound)
|
if(hitsound)
|
||||||
playsound(loc, hitsound, 50, 1, -1)
|
playsound(src, hitsound, 50, 1, -1)
|
||||||
|
|
||||||
var/power = force
|
var/power = force
|
||||||
for(var/datum/modifier/M in user.modifiers)
|
for(var/datum/modifier/M in user.modifiers)
|
||||||
|
|||||||
@@ -420,7 +420,7 @@ var/list/mob/living/forced_ambiance_list = new
|
|||||||
H.AdjustStunned(3)
|
H.AdjustStunned(3)
|
||||||
H.AdjustWeakened(3)
|
H.AdjustWeakened(3)
|
||||||
to_chat(mob, "<span class='notice'>The sudden appearance of gravity makes you fall to the floor!</span>")
|
to_chat(mob, "<span class='notice'>The sudden appearance of gravity makes you fall to the floor!</span>")
|
||||||
playsound(get_turf(src), "bodyfall", 50, 1)
|
playsound(mob, "bodyfall", 50, 1)
|
||||||
|
|
||||||
/area/proc/prison_break(break_lights = TRUE, open_doors = TRUE, open_blast_doors = TRUE)
|
/area/proc/prison_break(break_lights = TRUE, open_doors = TRUE, open_blast_doors = TRUE)
|
||||||
var/obj/machinery/power/apc/theAPC = get_apc()
|
var/obj/machinery/power/apc/theAPC = get_apc()
|
||||||
|
|||||||
@@ -113,11 +113,11 @@
|
|||||||
/obj/item/weapon/melee/changeling/handle_shield(mob/user, var/damage, atom/damage_source = null, mob/attacker = null, var/def_zone = null, var/attack_text = "the attack")
|
/obj/item/weapon/melee/changeling/handle_shield(mob/user, var/damage, atom/damage_source = null, mob/attacker = null, var/def_zone = null, var/attack_text = "the attack")
|
||||||
if(default_parry_check(user, attacker, damage_source) && prob(defend_chance))
|
if(default_parry_check(user, attacker, damage_source) && prob(defend_chance))
|
||||||
user.visible_message("<span class='danger'>\The [user] parries [attack_text] with \the [src]!</span>")
|
user.visible_message("<span class='danger'>\The [user] parries [attack_text] with \the [src]!</span>")
|
||||||
playsound(user.loc, 'sound/weapons/slash.ogg', 50, 1)
|
playsound(src, 'sound/weapons/slash.ogg', 50, 1)
|
||||||
return 1
|
return 1
|
||||||
if(unique_parry_check(user, attacker, damage_source) && prob(projectile_parry_chance))
|
if(unique_parry_check(user, attacker, damage_source) && prob(projectile_parry_chance))
|
||||||
user.visible_message("<span class='danger'>\The [user] deflects [attack_text] with \the [src]!</span>")
|
user.visible_message("<span class='danger'>\The [user] deflects [attack_text] with \the [src]!</span>")
|
||||||
playsound(user.loc, 'sound/weapons/slash.ogg', 50, 1)
|
playsound(src, 'sound/weapons/slash.ogg', 50, 1)
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
@@ -537,7 +537,7 @@ proc/findNullRod(var/atom/target)
|
|||||||
new_projectile.fire()
|
new_projectile.fire()
|
||||||
log_and_message_admins("has casted [src] at \the [hit_atom].")
|
log_and_message_admins("has casted [src] at \the [hit_atom].")
|
||||||
if(fire_sound)
|
if(fire_sound)
|
||||||
playsound(get_turf(src), fire_sound, 75, 1)
|
playsound(src, fire_sound, 75, 1)
|
||||||
return 1
|
return 1
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
throw_at(get_edge_target_turf(src, pick(alldirs)), rand(1,3), throw_speed)
|
throw_at(get_edge_target_turf(src, pick(alldirs)), rand(1,3), throw_speed)
|
||||||
|
|
||||||
var/spooky = pick('sound/hallucinations/growl1.ogg', 'sound/hallucinations/growl2.ogg', 'sound/hallucinations/growl3.ogg', 'sound/hallucinations/wail.ogg')
|
var/spooky = pick('sound/hallucinations/growl1.ogg', 'sound/hallucinations/growl2.ogg', 'sound/hallucinations/growl3.ogg', 'sound/hallucinations/wail.ogg')
|
||||||
playsound(loc, spooky, 50, 1)
|
playsound(src, spooky, 50, 1)
|
||||||
|
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
if(prob(1+ damage * 5))
|
if(prob(1+ damage * 5))
|
||||||
visible_message("<span class='danger'>[shatter_message]</span>")
|
visible_message("<span class='danger'>[shatter_message]</span>")
|
||||||
STOP_PROCESSING(SSobj, src)
|
STOP_PROCESSING(SSobj, src)
|
||||||
playsound(get_turf(src),shatter_sound, 75, 1)
|
playsound(src,shatter_sound, 75, 1)
|
||||||
isbroken = 1
|
isbroken = 1
|
||||||
density = 0
|
density = 0
|
||||||
icon_state = "[initial(icon_state)]-broken"
|
icon_state = "[initial(icon_state)]-broken"
|
||||||
@@ -73,21 +73,21 @@
|
|||||||
)
|
)
|
||||||
STOP_PROCESSING(SSobj, src)
|
STOP_PROCESSING(SSobj, src)
|
||||||
user.do_attack_animation(src)
|
user.do_attack_animation(src)
|
||||||
playsound(get_turf(src),shatter_sound, 75, 1)
|
playsound(src,shatter_sound, 75, 1)
|
||||||
isbroken = 1
|
isbroken = 1
|
||||||
density = 0
|
density = 0
|
||||||
icon_state = "[initial(icon_state)]-broken"
|
icon_state = "[initial(icon_state)]-broken"
|
||||||
set_light(0)
|
set_light(0)
|
||||||
else
|
else
|
||||||
to_chat(user, "You hit \the [src]!")
|
to_chat(user, "You hit \the [src]!")
|
||||||
playsound(get_turf(src),impact_sound, 75, 1)
|
playsound(src,impact_sound, 75, 1)
|
||||||
else
|
else
|
||||||
if(prob(damage * 2))
|
if(prob(damage * 2))
|
||||||
to_chat(user, "You pulverize what was left of \the [src]!")
|
to_chat(user, "You pulverize what was left of \the [src]!")
|
||||||
qdel(src)
|
qdel(src)
|
||||||
else
|
else
|
||||||
to_chat(user, "You hit \the [src]!")
|
to_chat(user, "You hit \the [src]!")
|
||||||
playsound(get_turf(src),impact_sound, 75, 1)
|
playsound(src,impact_sound, 75, 1)
|
||||||
|
|
||||||
/obj/structure/cult/pylon/proc/repair(mob/user as mob)
|
/obj/structure/cult/pylon/proc/repair(mob/user as mob)
|
||||||
if(isbroken)
|
if(isbroken)
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ The "dust" will damage the hull of the station causin minor hull breaches.
|
|||||||
if(!M.stat && !istype(M, /mob/living/silicon/ai))
|
if(!M.stat && !istype(M, /mob/living/silicon/ai))
|
||||||
shake_camera(M, 3, 1)
|
shake_camera(M, 3, 1)
|
||||||
if (A)
|
if (A)
|
||||||
playsound(src.loc, 'sound/effects/meteorimpact.ogg', 40, 1)
|
playsound(src, 'sound/effects/meteorimpact.ogg', 40, 1)
|
||||||
|
|
||||||
if(ismob(A))
|
if(ismob(A))
|
||||||
A.ex_act(strength)//This should work for now I guess
|
A.ex_act(strength)//This should work for now I guess
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
"What do you get from eating tree decorations?\n\n<i>Tinsilitis!</i>",
|
"What do you get from eating tree decorations?\n\n<i>Tinsilitis!</i>",
|
||||||
"What do snowmen wear on their heads?\n\n<i>Ice caps!</i>",
|
"What do snowmen wear on their heads?\n\n<i>Ice caps!</i>",
|
||||||
"Why is Christmas just like life on ss13?\n\n<i>You do all the work and the fat guy gets all the credit.</i>",
|
"Why is Christmas just like life on ss13?\n\n<i>You do all the work and the fat guy gets all the credit.</i>",
|
||||||
"Why doesn<EFBFBD>t Santa have any children?\n\n<i>Because he only comes down the chimney.</i>")
|
"Why doesn't Santa have any children?\n\n<i>Because he only comes down the chimney.</i>")
|
||||||
new /obj/item/clothing/head/festive(target.loc)
|
new /obj/item/clothing/head/festive(target.loc)
|
||||||
user.update_icons()
|
user.update_icons()
|
||||||
cracked = 1
|
cracked = 1
|
||||||
@@ -49,7 +49,7 @@
|
|||||||
other_half.cracked = 1
|
other_half.cracked = 1
|
||||||
other_half.icon_state = "cracker2"
|
other_half.icon_state = "cracker2"
|
||||||
target.put_in_active_hand(other_half)
|
target.put_in_active_hand(other_half)
|
||||||
playsound(user, 'sound/effects/snap.ogg', 50, 1)
|
playsound(src, 'sound/effects/snap.ogg', 50, 1)
|
||||||
return 1
|
return 1
|
||||||
return ..()
|
return ..()
|
||||||
|
|
||||||
|
|||||||
@@ -211,7 +211,7 @@
|
|||||||
/obj/item/weapon/pinpointer/nukeop/proc/workdisk()
|
/obj/item/weapon/pinpointer/nukeop/proc/workdisk()
|
||||||
if(bomb_set) //If the bomb is set, lead to the shuttle
|
if(bomb_set) //If the bomb is set, lead to the shuttle
|
||||||
mode = 1 //Ensures worklocation() continues to work
|
mode = 1 //Ensures worklocation() continues to work
|
||||||
playsound(loc, 'sound/machines/twobeep.ogg', 50, 1) //Plays a beep
|
playsound(src, 'sound/machines/twobeep.ogg', 50, 1) //Plays a beep
|
||||||
visible_message("<span class='notice'>Shuttle Locator active.</span>") //Lets the mob holding it know that the mode has changed
|
visible_message("<span class='notice'>Shuttle Locator active.</span>") //Lets the mob holding it know that the mode has changed
|
||||||
return //Get outta here
|
return //Get outta here
|
||||||
|
|
||||||
@@ -236,7 +236,7 @@
|
|||||||
/obj/item/weapon/pinpointer/nukeop/proc/worklocation()
|
/obj/item/weapon/pinpointer/nukeop/proc/worklocation()
|
||||||
if(!bomb_set)
|
if(!bomb_set)
|
||||||
mode = 0
|
mode = 0
|
||||||
playsound(loc, 'sound/machines/twobeep.ogg', 50, 1)
|
playsound(src, 'sound/machines/twobeep.ogg', 50, 1)
|
||||||
visible_message("<span class='notice'>Authentication Disk Locator active.</span>")
|
visible_message("<span class='notice'>Authentication Disk Locator active.</span>")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@@ -70,7 +70,7 @@
|
|||||||
to_chat(user, "<span class='warning'>Your shield has absorbed most of \the [damage_source].</span>")
|
to_chat(user, "<span class='warning'>Your shield has absorbed most of \the [damage_source].</span>")
|
||||||
|
|
||||||
spark_system.start()
|
spark_system.start()
|
||||||
playsound(user.loc, 'sound/weapons/blade1.ogg', 50, 1)
|
playsound(src, 'sound/weapons/blade1.ogg', 50, 1)
|
||||||
return 0 // This shield does not block all damage, so returning 0 is needed to tell the game to apply the new damage.
|
return 0 // This shield does not block all damage, so returning 0 is needed to tell the game to apply the new damage.
|
||||||
|
|
||||||
/obj/item/clothing/suit/armor/shield/attack_self(mob/user)
|
/obj/item/clothing/suit/armor/shield/attack_self(mob/user)
|
||||||
|
|||||||
@@ -81,4 +81,4 @@
|
|||||||
lightning.old_style_target(target)
|
lightning.old_style_target(target)
|
||||||
lightning.fire()
|
lightning.fire()
|
||||||
visible_message("<span class='danger'>\The [src] strikes \the [target] with lightning!</span>")
|
visible_message("<span class='danger'>\The [src] strikes \the [target] with lightning!</span>")
|
||||||
playsound(get_turf(src), 'sound/weapons/gauss_shoot.ogg', 75, 1)
|
playsound(src, 'sound/weapons/gauss_shoot.ogg', 75, 1)
|
||||||
@@ -75,7 +75,7 @@
|
|||||||
/obj/item/weapon/spell/audible_deception/on_ranged_cast(atom/hit_atom, mob/living/user)
|
/obj/item/weapon/spell/audible_deception/on_ranged_cast(atom/hit_atom, mob/living/user)
|
||||||
var/turf/T = get_turf(hit_atom)
|
var/turf/T = get_turf(hit_atom)
|
||||||
if(selected_sound && pay_energy(200))
|
if(selected_sound && pay_energy(200))
|
||||||
playsound(T, selected_sound, 80, 1, -1)
|
playsound(hit_atom, selected_sound, 80, 1, -1)
|
||||||
adjust_instability(1)
|
adjust_instability(1)
|
||||||
// Air Horn time.
|
// Air Horn time.
|
||||||
if(selected_sound == 'sound/items/AirHorn.ogg' && pay_energy(3800))
|
if(selected_sound == 'sound/items/AirHorn.ogg' && pay_energy(3800))
|
||||||
|
|||||||
@@ -26,5 +26,5 @@
|
|||||||
else
|
else
|
||||||
core.give_energy(amount)
|
core.give_energy(amount)
|
||||||
adjust_instability(50)
|
adjust_instability(50)
|
||||||
playsound(get_turf(src), 'sound/effects/supermatter.ogg', 75, 1)
|
playsound(src, 'sound/effects/supermatter.ogg', 75, 1)
|
||||||
qdel(src)
|
qdel(src)
|
||||||
@@ -29,5 +29,5 @@
|
|||||||
if(pay_energy(1500))
|
if(pay_energy(1500))
|
||||||
T.assume_gas("oxygen", 200)
|
T.assume_gas("oxygen", 200)
|
||||||
T.assume_gas("nitrogen", 800)
|
T.assume_gas("nitrogen", 800)
|
||||||
playsound(src.loc, 'sound/effects/spray.ogg', 50, 1, -3)
|
playsound(src, 'sound/effects/spray.ogg', 50, 1, -3)
|
||||||
adjust_instability(10)
|
adjust_instability(10)
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
new_projectile.fire()
|
new_projectile.fire()
|
||||||
log_and_message_admins("has casted [src] at \the [hit_atom].")
|
log_and_message_admins("has casted [src] at \the [hit_atom].")
|
||||||
if(fire_sound)
|
if(fire_sound)
|
||||||
playsound(get_turf(src), fire_sound, 75, 1)
|
playsound(src, fire_sound, 75, 1)
|
||||||
adjust_instability(instability_per_shot)
|
adjust_instability(instability_per_shot)
|
||||||
return 1
|
return 1
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
@@ -60,7 +60,7 @@
|
|||||||
P.damage = P.damage * 1.5
|
P.damage = P.damage * 1.5
|
||||||
|
|
||||||
spark_system.start()
|
spark_system.start()
|
||||||
playsound(user.loc, 'sound/weapons/blade1.ogg', 50, 1)
|
playsound(src, 'sound/weapons/blade1.ogg', 50, 1)
|
||||||
// now send a log so that admins don't think they're shooting themselves on purpose.
|
// now send a log so that admins don't think they're shooting themselves on purpose.
|
||||||
log_and_message_admins("[user] reflected [attacker]'s attack back at them.")
|
log_and_message_admins("[user] reflected [attacker]'s attack back at them.")
|
||||||
|
|
||||||
@@ -80,7 +80,7 @@
|
|||||||
on the same side, and hits you!</span>")
|
on the same side, and hits you!</span>")
|
||||||
|
|
||||||
spark_system.start()
|
spark_system.start()
|
||||||
playsound(user.loc, 'sound/weapons/blade1.ogg', 50, 1)
|
playsound(src, 'sound/weapons/blade1.ogg', 50, 1)
|
||||||
|
|
||||||
log_and_message_admins("[user] reflected [attacker]'s attack back at them.")
|
log_and_message_admins("[user] reflected [attacker]'s attack back at them.")
|
||||||
|
|
||||||
|
|||||||
@@ -55,7 +55,7 @@
|
|||||||
if(check_shield_arc(user, bad_arc, damage_source, attacker))
|
if(check_shield_arc(user, bad_arc, damage_source, attacker))
|
||||||
user.visible_message("<span class='danger'>\The [user]'s [src] blocks [attack_text]!</span>")
|
user.visible_message("<span class='danger'>\The [user]'s [src] blocks [attack_text]!</span>")
|
||||||
spark_system.start()
|
spark_system.start()
|
||||||
playsound(user.loc, 'sound/weapons/blade1.ogg', 50, 1)
|
playsound(src, 'sound/weapons/blade1.ogg', 50, 1)
|
||||||
adjust_instability(2)
|
adjust_instability(2)
|
||||||
return 1
|
return 1
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
@@ -41,7 +41,7 @@
|
|||||||
m = min(m, cable.amount)
|
m = min(m, cable.amount)
|
||||||
m = min(m, 30)
|
m = min(m, 30)
|
||||||
if(m)
|
if(m)
|
||||||
playsound(src.loc, O.usesound, 50, 1)
|
playsound(src, O.usesound, 50, 1)
|
||||||
use_cable(m)
|
use_cable(m)
|
||||||
var/obj/item/stack/cable_coil/CC = new (get_turf(src))
|
var/obj/item/stack/cable_coil/CC = new (get_turf(src))
|
||||||
CC.amount = m
|
CC.amount = m
|
||||||
|
|||||||
@@ -116,7 +116,7 @@
|
|||||||
|
|
||||||
/obj/machinery/alarm/proc/first_run()
|
/obj/machinery/alarm/proc/first_run()
|
||||||
alarm_area = get_area(src)
|
alarm_area = get_area(src)
|
||||||
area_uid = "\ref[alarm_area]"
|
area_uid = "\ref[alarm_area]"
|
||||||
if(name == "alarm")
|
if(name == "alarm")
|
||||||
name = "[alarm_area.name] Air Alarm"
|
name = "[alarm_area.name] Air Alarm"
|
||||||
|
|
||||||
@@ -192,7 +192,7 @@
|
|||||||
regulating_temperature = 1
|
regulating_temperature = 1
|
||||||
audible_message("\The [src] clicks as it starts [environment.temperature > target_temperature ? "cooling" : "heating"] the room.",\
|
audible_message("\The [src] clicks as it starts [environment.temperature > target_temperature ? "cooling" : "heating"] the room.",\
|
||||||
"You hear a click and a faint electronic hum.")
|
"You hear a click and a faint electronic hum.")
|
||||||
playsound(src.loc, 'sound/machines/click.ogg', 50, 1)
|
playsound(src, 'sound/machines/click.ogg', 50, 1)
|
||||||
else
|
else
|
||||||
//check for when we should stop adjusting temperature
|
//check for when we should stop adjusting temperature
|
||||||
if(get_danger_level(target_temperature, TLV["temperature"]) || abs(environment.temperature - target_temperature) <= 0.5)
|
if(get_danger_level(target_temperature, TLV["temperature"]) || abs(environment.temperature - target_temperature) <= 0.5)
|
||||||
@@ -200,7 +200,7 @@
|
|||||||
regulating_temperature = 0
|
regulating_temperature = 0
|
||||||
audible_message("\The [src] clicks quietly as it stops [environment.temperature > target_temperature ? "cooling" : "heating"] the room.",\
|
audible_message("\The [src] clicks quietly as it stops [environment.temperature > target_temperature ? "cooling" : "heating"] the room.",\
|
||||||
"You hear a click as a faint electronic humming stops.")
|
"You hear a click as a faint electronic humming stops.")
|
||||||
playsound(src.loc, 'sound/machines/click.ogg', 50, 1)
|
playsound(src, 'sound/machines/click.ogg', 50, 1)
|
||||||
|
|
||||||
if(regulating_temperature)
|
if(regulating_temperature)
|
||||||
if(target_temperature > T0C + MAX_TEMPERATURE)
|
if(target_temperature > T0C + MAX_TEMPERATURE)
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ update_flag
|
|||||||
location.assume_air(air_contents)
|
location.assume_air(air_contents)
|
||||||
|
|
||||||
src.destroyed = 1
|
src.destroyed = 1
|
||||||
playsound(src.loc, 'sound/effects/spray.ogg', 10, 1, -3)
|
playsound(src, 'sound/effects/spray.ogg', 10, 1, -3)
|
||||||
src.density = 0
|
src.density = 0
|
||||||
update_icon()
|
update_icon()
|
||||||
|
|
||||||
|
|||||||
@@ -89,7 +89,7 @@
|
|||||||
return
|
return
|
||||||
|
|
||||||
anchored = !anchored
|
anchored = !anchored
|
||||||
playsound(get_turf(src), I.usesound, 50, 1)
|
playsound(src, I.usesound, 50, 1)
|
||||||
to_chat(user, "<span class='notice'>You [anchored ? "wrench" : "unwrench"] \the [src].</span>")
|
to_chat(user, "<span class='notice'>You [anchored ? "wrench" : "unwrench"] \the [src].</span>")
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -220,7 +220,7 @@
|
|||||||
return
|
return
|
||||||
|
|
||||||
anchored = !anchored
|
anchored = !anchored
|
||||||
playsound(src.loc, I.usesound, 50, 1)
|
playsound(src, I.usesound, 50, 1)
|
||||||
to_chat(user, "<span class='notice'>You [anchored ? "wrench" : "unwrench"] \the [src].</span>")
|
to_chat(user, "<span class='notice'>You [anchored ? "wrench" : "unwrench"] \the [src].</span>")
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -164,11 +164,11 @@
|
|||||||
processing = 1
|
processing = 1
|
||||||
update_icon()
|
update_icon()
|
||||||
updateUsrDialog()
|
updateUsrDialog()
|
||||||
playsound(src.loc, 'sound/machines/blender.ogg', 40, 1)
|
playsound(src, 'sound/machines/blender.ogg', 40, 1)
|
||||||
use_power(S * 30)
|
use_power(S * 30)
|
||||||
sleep((S + 15) / eat_eff)
|
sleep((S + 15) / eat_eff)
|
||||||
processing = 0
|
processing = 0
|
||||||
playsound(src.loc, 'sound/machines/biogenerator_end.ogg', 40, 1)
|
playsound(src, 'sound/machines/biogenerator_end.ogg', 40, 1)
|
||||||
update_icon()
|
update_icon()
|
||||||
else
|
else
|
||||||
menustat = "void"
|
menustat = "void"
|
||||||
|
|||||||
@@ -285,7 +285,7 @@
|
|||||||
/obj/machinery/organ_printer/flesh/print_organ(var/choice)
|
/obj/machinery/organ_printer/flesh/print_organ(var/choice)
|
||||||
var/obj/item/organ/O = ..()
|
var/obj/item/organ/O = ..()
|
||||||
|
|
||||||
playsound(src.loc, 'sound/machines/ding.ogg', 50, 1)
|
playsound(src, 'sound/machines/ding.ogg', 50, 1)
|
||||||
visible_message("<span class='info'>\The [src] dings, then spits out \a [O].</span>")
|
visible_message("<span class='info'>\The [src] dings, then spits out \a [O].</span>")
|
||||||
return O
|
return O
|
||||||
|
|
||||||
@@ -350,7 +350,7 @@
|
|||||||
var/obj/item/organ/O = ..()
|
var/obj/item/organ/O = ..()
|
||||||
O.robotize()
|
O.robotize()
|
||||||
O.status |= ORGAN_CUT_AWAY // robotize() resets status to 0
|
O.status |= ORGAN_CUT_AWAY // robotize() resets status to 0
|
||||||
playsound(src.loc, 'sound/machines/ding.ogg', 50, 1)
|
playsound(src, 'sound/machines/ding.ogg', 50, 1)
|
||||||
audible_message("<span class='info'>\The [src] dings, then spits out \a [O].</span>")
|
audible_message("<span class='info'>\The [src] dings, then spits out \a [O].</span>")
|
||||||
return O
|
return O
|
||||||
|
|
||||||
|
|||||||
@@ -359,11 +359,11 @@
|
|||||||
if(cancelled)
|
if(cancelled)
|
||||||
return
|
return
|
||||||
if(simulation_results == "Error")
|
if(simulation_results == "Error")
|
||||||
playsound(get_turf(src), 'sound/machines/buzz-sigh.ogg', 50, 0)
|
playsound(src, 'sound/machines/buzz-sigh.ogg', 50, 0)
|
||||||
state("Invalid parameters.")
|
state("Invalid parameters.")
|
||||||
else
|
else
|
||||||
ping("Simulation complete!")
|
ping("Simulation complete!")
|
||||||
playsound(loc, "sound/effects/printer.ogg", 50, 1)
|
playsound(src, "sound/effects/printer.ogg", 50, 1)
|
||||||
var/obj/item/weapon/paper/P = new(get_turf(src))
|
var/obj/item/weapon/paper/P = new(get_turf(src))
|
||||||
P.name = "Explosive Simulator printout"
|
P.name = "Explosive Simulator printout"
|
||||||
P.info = simulation_results
|
P.info = simulation_results
|
||||||
|
|||||||
@@ -21,5 +21,5 @@
|
|||||||
// VOREStation Edit Begin
|
// VOREStation Edit Begin
|
||||||
/obj/machinery/button/attack_hand(obj/item/weapon/W, mob/user as mob)
|
/obj/machinery/button/attack_hand(obj/item/weapon/W, mob/user as mob)
|
||||||
if(..()) return 1
|
if(..()) return 1
|
||||||
playsound(loc, 'sound/machines/button.ogg', 100, 1)
|
playsound(src, 'sound/machines/button.ogg', 100, 1)
|
||||||
// VOREStation Edit End
|
// VOREStation Edit End
|
||||||
|
|||||||
@@ -158,7 +158,7 @@
|
|||||||
user.do_attack_animation(src)
|
user.do_attack_animation(src)
|
||||||
user.setClickCooldown(user.get_attack_speed())
|
user.setClickCooldown(user.get_attack_speed())
|
||||||
visible_message("<span class='warning'>\The [user] slashes at [src]!</span>")
|
visible_message("<span class='warning'>\The [user] slashes at [src]!</span>")
|
||||||
playsound(src.loc, 'sound/weapons/slash.ogg', 100, 1)
|
playsound(src, 'sound/weapons/slash.ogg', 100, 1)
|
||||||
add_hiddenprint(user)
|
add_hiddenprint(user)
|
||||||
destroy()
|
destroy()
|
||||||
|
|
||||||
@@ -169,7 +169,7 @@
|
|||||||
S.do_attack_animation(src)
|
S.do_attack_animation(src)
|
||||||
S.setClickCooldown(user.get_attack_speed())
|
S.setClickCooldown(user.get_attack_speed())
|
||||||
visible_message("<span class='warning'>\The [user] [pick(S.attacktext)] \the [src]!</span>")
|
visible_message("<span class='warning'>\The [user] [pick(S.attacktext)] \the [src]!</span>")
|
||||||
playsound(src.loc, S.attack_sound, 100, 1)
|
playsound(src, S.attack_sound, 100, 1)
|
||||||
add_hiddenprint(user)
|
add_hiddenprint(user)
|
||||||
destroy()
|
destroy()
|
||||||
..()
|
..()
|
||||||
@@ -183,7 +183,7 @@
|
|||||||
panel_open = !panel_open
|
panel_open = !panel_open
|
||||||
user.visible_message("<span class='warning'>[user] screws the camera's panel [panel_open ? "open" : "closed"]!</span>",
|
user.visible_message("<span class='warning'>[user] screws the camera's panel [panel_open ? "open" : "closed"]!</span>",
|
||||||
"<span class='notice'>You screw the camera's panel [panel_open ? "open" : "closed"].</span>")
|
"<span class='notice'>You screw the camera's panel [panel_open ? "open" : "closed"].</span>")
|
||||||
playsound(src.loc, W.usesound, 50, 1)
|
playsound(src, W.usesound, 50, 1)
|
||||||
|
|
||||||
else if((W.is_wirecutter() || istype(W, /obj/item/device/multitool)) && panel_open)
|
else if((W.is_wirecutter() || istype(W, /obj/item/device/multitool)) && panel_open)
|
||||||
interact(user)
|
interact(user)
|
||||||
@@ -258,7 +258,7 @@
|
|||||||
if (istype(W, /obj/item)) //is it even possible to get into attackby() with non-items?
|
if (istype(W, /obj/item)) //is it even possible to get into attackby() with non-items?
|
||||||
var/obj/item/I = W
|
var/obj/item/I = W
|
||||||
if (I.hitsound)
|
if (I.hitsound)
|
||||||
playsound(loc, I.hitsound, 50, 1, -1)
|
playsound(src, I.hitsound, 50, 1, -1)
|
||||||
take_damage(W.force)
|
take_damage(W.force)
|
||||||
|
|
||||||
else
|
else
|
||||||
@@ -278,7 +278,7 @@
|
|||||||
visible_message("<span class='notice'> [user] has deactivated [src]!</span>")
|
visible_message("<span class='notice'> [user] has deactivated [src]!</span>")
|
||||||
else
|
else
|
||||||
visible_message("<span class='notice'> [src] clicks and shuts down. </span>")
|
visible_message("<span class='notice'> [src] clicks and shuts down. </span>")
|
||||||
playsound(src.loc, 'sound/items/Wirecutter.ogg', 100, 1)
|
playsound(src, 'sound/items/Wirecutter.ogg', 100, 1)
|
||||||
icon_state = "[initial(icon_state)]1"
|
icon_state = "[initial(icon_state)]1"
|
||||||
add_hiddenprint(user)
|
add_hiddenprint(user)
|
||||||
else
|
else
|
||||||
@@ -286,7 +286,7 @@
|
|||||||
visible_message("<span class='notice'> [user] has reactivated [src]!</span>")
|
visible_message("<span class='notice'> [user] has reactivated [src]!</span>")
|
||||||
else
|
else
|
||||||
visible_message("<span class='notice'> [src] clicks and reactivates itself. </span>")
|
visible_message("<span class='notice'> [src] clicks and reactivates itself. </span>")
|
||||||
playsound(src.loc, 'sound/items/Wirecutter.ogg', 100, 1)
|
playsound(src, 'sound/items/Wirecutter.ogg', 100, 1)
|
||||||
icon_state = initial(icon_state)
|
icon_state = initial(icon_state)
|
||||||
add_hiddenprint(user)
|
add_hiddenprint(user)
|
||||||
|
|
||||||
@@ -308,7 +308,7 @@
|
|||||||
var/datum/effect/effect/system/spark_spread/spark_system = new /datum/effect/effect/system/spark_spread()
|
var/datum/effect/effect/system/spark_spread/spark_system = new /datum/effect/effect/system/spark_spread()
|
||||||
spark_system.set_up(5, 0, loc)
|
spark_system.set_up(5, 0, loc)
|
||||||
spark_system.start()
|
spark_system.start()
|
||||||
playsound(loc, "sparks", 50, 1)
|
playsound(src, "sparks", 50, 1)
|
||||||
|
|
||||||
/obj/machinery/camera/proc/set_status(var/newstatus)
|
/obj/machinery/camera/proc/set_status(var/newstatus)
|
||||||
if (status != newstatus)
|
if (status != newstatus)
|
||||||
@@ -404,7 +404,7 @@
|
|||||||
|
|
||||||
// Do after stuff here
|
// Do after stuff here
|
||||||
to_chat(user, "<span class='notice'>You start to weld [src]..</span>")
|
to_chat(user, "<span class='notice'>You start to weld [src]..</span>")
|
||||||
playsound(src.loc, WT.usesound, 50, 1)
|
playsound(src, WT.usesound, 50, 1)
|
||||||
WT.eyecheck(user)
|
WT.eyecheck(user)
|
||||||
busy = 1
|
busy = 1
|
||||||
if(do_after(user, 100 * WT.toolspeed))
|
if(do_after(user, 100 * WT.toolspeed))
|
||||||
|
|||||||
@@ -78,7 +78,7 @@
|
|||||||
if(3)
|
if(3)
|
||||||
// State 3
|
// State 3
|
||||||
if(W.is_screwdriver())
|
if(W.is_screwdriver())
|
||||||
playsound(src.loc, W.usesound, 50, 1)
|
playsound(src, W.usesound, 50, 1)
|
||||||
|
|
||||||
var/input = sanitize(input(usr, "Which networks would you like to connect this camera to? Separate networks with a comma. No Spaces!\nFor example: "+using_map.station_short+",Security,Secret ", "Set Network", camera_network ? camera_network : NETWORK_DEFAULT))
|
var/input = sanitize(input(usr, "Which networks would you like to connect this camera to? Separate networks with a comma. No Spaces!\nFor example: "+using_map.station_short+",Security,Secret ", "Set Network", camera_network ? camera_network : NETWORK_DEFAULT))
|
||||||
if(!input)
|
if(!input)
|
||||||
@@ -118,7 +118,7 @@
|
|||||||
else if(W.is_wirecutter())
|
else if(W.is_wirecutter())
|
||||||
|
|
||||||
new/obj/item/stack/cable_coil(get_turf(src), 2)
|
new/obj/item/stack/cable_coil(get_turf(src), 2)
|
||||||
playsound(src.loc, W.usesound, 50, 1)
|
playsound(src, W.usesound, 50, 1)
|
||||||
to_chat(user, "You cut the wires from the circuits.")
|
to_chat(user, "You cut the wires from the circuits.")
|
||||||
state = 2
|
state = 2
|
||||||
return
|
return
|
||||||
@@ -161,7 +161,7 @@
|
|||||||
return 0
|
return 0
|
||||||
|
|
||||||
to_chat(user, "<span class='notice'>You start to weld the [src]..</span>")
|
to_chat(user, "<span class='notice'>You start to weld the [src]..</span>")
|
||||||
playsound(src.loc, WT.usesound, 50, 1)
|
playsound(src, WT.usesound, 50, 1)
|
||||||
WT.eyecheck(user)
|
WT.eyecheck(user)
|
||||||
busy = 1
|
busy = 1
|
||||||
if(do_after(user, 20 * WT.toolspeed))
|
if(do_after(user, 20 * WT.toolspeed))
|
||||||
|
|||||||
@@ -201,7 +201,7 @@
|
|||||||
return
|
return
|
||||||
|
|
||||||
else if((occupant.health >= heal_level || occupant.health == occupant.getMaxHealth()) && (!eject_wait))
|
else if((occupant.health >= heal_level || occupant.health == occupant.getMaxHealth()) && (!eject_wait))
|
||||||
playsound(src.loc, 'sound/machines/ding.ogg', 50, 1)
|
playsound(src, 'sound/machines/ding.ogg', 50, 1)
|
||||||
audible_message("\The [src] signals that the cloning process is complete.")
|
audible_message("\The [src] signals that the cloning process is complete.")
|
||||||
connected_message("Cloning Process Complete.")
|
connected_message("Cloning Process Complete.")
|
||||||
locked = 0
|
locked = 0
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
switch(state)
|
switch(state)
|
||||||
if(0)
|
if(0)
|
||||||
if(P.is_wrench())
|
if(P.is_wrench())
|
||||||
playsound(loc, P.usesound, 50, 1)
|
playsound(src, P.usesound, 50, 1)
|
||||||
if(do_after(user, 20 * P.toolspeed))
|
if(do_after(user, 20 * P.toolspeed))
|
||||||
to_chat(user, "<span class='notice'>You wrench the frame into place.</span>")
|
to_chat(user, "<span class='notice'>You wrench the frame into place.</span>")
|
||||||
anchored = 1
|
anchored = 1
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
if(!WT.isOn())
|
if(!WT.isOn())
|
||||||
to_chat(user, "The welder must be on for this task.")
|
to_chat(user, "The welder must be on for this task.")
|
||||||
return
|
return
|
||||||
playsound(loc, WT.usesound, 50, 1)
|
playsound(src, WT.usesound, 50, 1)
|
||||||
if(do_after(user, 20 * WT.toolspeed))
|
if(do_after(user, 20 * WT.toolspeed))
|
||||||
if(!src || !WT.remove_fuel(0, user)) return
|
if(!src || !WT.remove_fuel(0, user)) return
|
||||||
to_chat(user, "<span class='notice'>You deconstruct the frame.</span>")
|
to_chat(user, "<span class='notice'>You deconstruct the frame.</span>")
|
||||||
@@ -33,25 +33,25 @@
|
|||||||
qdel(src)
|
qdel(src)
|
||||||
if(1)
|
if(1)
|
||||||
if(P.is_wrench())
|
if(P.is_wrench())
|
||||||
playsound(loc, P.usesound, 50, 1)
|
playsound(src, P.usesound, 50, 1)
|
||||||
if(do_after(user, 20 * P.toolspeed))
|
if(do_after(user, 20 * P.toolspeed))
|
||||||
to_chat(user, "<span class='notice'>You unfasten the frame.</span>")
|
to_chat(user, "<span class='notice'>You unfasten the frame.</span>")
|
||||||
anchored = 0
|
anchored = 0
|
||||||
state = 0
|
state = 0
|
||||||
if(istype(P, /obj/item/weapon/circuitboard/aicore) && !circuit)
|
if(istype(P, /obj/item/weapon/circuitboard/aicore) && !circuit)
|
||||||
playsound(loc, 'sound/items/Deconstruct.ogg', 50, 1)
|
playsound(src, 'sound/items/Deconstruct.ogg', 50, 1)
|
||||||
to_chat(user, "<span class='notice'>You place the circuit board inside the frame.</span>")
|
to_chat(user, "<span class='notice'>You place the circuit board inside the frame.</span>")
|
||||||
icon_state = "1"
|
icon_state = "1"
|
||||||
circuit = P
|
circuit = P
|
||||||
user.drop_item()
|
user.drop_item()
|
||||||
P.loc = src
|
P.loc = src
|
||||||
if(P.is_screwdriver() && circuit)
|
if(P.is_screwdriver() && circuit)
|
||||||
playsound(loc, P.usesound, 50, 1)
|
playsound(src, P.usesound, 50, 1)
|
||||||
to_chat(user, "<span class='notice'>You screw the circuit board into place.</span>")
|
to_chat(user, "<span class='notice'>You screw the circuit board into place.</span>")
|
||||||
state = 2
|
state = 2
|
||||||
icon_state = "2"
|
icon_state = "2"
|
||||||
if(P.is_crowbar() && circuit)
|
if(P.is_crowbar() && circuit)
|
||||||
playsound(loc, P.usesound, 50, 1)
|
playsound(src, P.usesound, 50, 1)
|
||||||
to_chat(user, "<span class='notice'>You remove the circuit board.</span>")
|
to_chat(user, "<span class='notice'>You remove the circuit board.</span>")
|
||||||
state = 1
|
state = 1
|
||||||
icon_state = "0"
|
icon_state = "0"
|
||||||
@@ -59,7 +59,7 @@
|
|||||||
circuit = null
|
circuit = null
|
||||||
if(2)
|
if(2)
|
||||||
if(P.is_screwdriver() && circuit)
|
if(P.is_screwdriver() && circuit)
|
||||||
playsound(loc, P.usesound, 50, 1)
|
playsound(src, P.usesound, 50, 1)
|
||||||
to_chat(user, "<span class='notice'>You unfasten the circuit board.</span>")
|
to_chat(user, "<span class='notice'>You unfasten the circuit board.</span>")
|
||||||
state = 1
|
state = 1
|
||||||
icon_state = "1"
|
icon_state = "1"
|
||||||
@@ -69,7 +69,7 @@
|
|||||||
to_chat(user, "<span class='warning'>You need five coils of wire to add them to the frame.</span>")
|
to_chat(user, "<span class='warning'>You need five coils of wire to add them to the frame.</span>")
|
||||||
return
|
return
|
||||||
to_chat(user, "<span class='notice'>You start to add cables to the frame.</span>")
|
to_chat(user, "<span class='notice'>You start to add cables to the frame.</span>")
|
||||||
playsound(loc, 'sound/items/Deconstruct.ogg', 50, 1)
|
playsound(src, 'sound/items/Deconstruct.ogg', 50, 1)
|
||||||
if (do_after(user, 20) && state == 2)
|
if (do_after(user, 20) && state == 2)
|
||||||
if (C.use(5))
|
if (C.use(5))
|
||||||
state = 3
|
state = 3
|
||||||
@@ -81,7 +81,7 @@
|
|||||||
if (brain)
|
if (brain)
|
||||||
to_chat(user, "Get that brain out of there first")
|
to_chat(user, "Get that brain out of there first")
|
||||||
else
|
else
|
||||||
playsound(loc, P.usesound, 50, 1)
|
playsound(src, P.usesound, 50, 1)
|
||||||
to_chat(user, "<span class='notice'>You remove the cables.</span>")
|
to_chat(user, "<span class='notice'>You remove the cables.</span>")
|
||||||
state = 2
|
state = 2
|
||||||
icon_state = "2"
|
icon_state = "2"
|
||||||
@@ -94,7 +94,7 @@
|
|||||||
to_chat(user, "<span class='warning'>You need two sheets of glass to put in the glass panel.</span>")
|
to_chat(user, "<span class='warning'>You need two sheets of glass to put in the glass panel.</span>")
|
||||||
return
|
return
|
||||||
to_chat(user, "<span class='notice'>You start to put in the glass panel.</span>")
|
to_chat(user, "<span class='notice'>You start to put in the glass panel.</span>")
|
||||||
playsound(loc, 'sound/items/Deconstruct.ogg', 50, 1)
|
playsound(src, 'sound/items/Deconstruct.ogg', 50, 1)
|
||||||
if (do_after(user, 20) && state == 3)
|
if (do_after(user, 20) && state == 3)
|
||||||
if(RG.use(2))
|
if(RG.use(2))
|
||||||
to_chat(user, "<span class='notice'>You put in the glass panel.</span>")
|
to_chat(user, "<span class='notice'>You put in the glass panel.</span>")
|
||||||
@@ -146,7 +146,7 @@
|
|||||||
icon_state = "3b"
|
icon_state = "3b"
|
||||||
|
|
||||||
if(P.is_crowbar() && brain)
|
if(P.is_crowbar() && brain)
|
||||||
playsound(loc, P.usesound, 50, 1)
|
playsound(src, P.usesound, 50, 1)
|
||||||
to_chat(user, "<span class='notice'>You remove the brain.</span>")
|
to_chat(user, "<span class='notice'>You remove the brain.</span>")
|
||||||
brain.loc = loc
|
brain.loc = loc
|
||||||
brain = null
|
brain = null
|
||||||
@@ -154,7 +154,7 @@
|
|||||||
|
|
||||||
if(4)
|
if(4)
|
||||||
if(P.is_crowbar())
|
if(P.is_crowbar())
|
||||||
playsound(loc, P.usesound, 50, 1)
|
playsound(src, P.usesound, 50, 1)
|
||||||
to_chat(user, "<span class='notice'>You remove the glass panel.</span>")
|
to_chat(user, "<span class='notice'>You remove the glass panel.</span>")
|
||||||
state = 3
|
state = 3
|
||||||
if (brain)
|
if (brain)
|
||||||
@@ -165,7 +165,7 @@
|
|||||||
return
|
return
|
||||||
|
|
||||||
if(P.is_screwdriver())
|
if(P.is_screwdriver())
|
||||||
playsound(loc, P.usesound, 50, 1)
|
playsound(src, P.usesound, 50, 1)
|
||||||
to_chat(user, "<span class='notice'>You connect the monitor.</span>")
|
to_chat(user, "<span class='notice'>You connect the monitor.</span>")
|
||||||
if(!brain)
|
if(!brain)
|
||||||
var/open_for_latejoin = alert(user, "Would you like this core to be open for latejoining AIs?", "Latejoin", "Yes", "Yes", "No") == "Yes"
|
var/open_for_latejoin = alert(user, "Would you like this core to be open for latejoining AIs?", "Latejoin", "Yes", "Yes", "No") == "Yes"
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
switch(state)
|
switch(state)
|
||||||
if(0)
|
if(0)
|
||||||
if(P.is_wrench())
|
if(P.is_wrench())
|
||||||
playsound(src.loc, P.usesound, 50, 1)
|
playsound(src, P.usesound, 50, 1)
|
||||||
if(do_after(user, 20 * P.toolspeed))
|
if(do_after(user, 20 * P.toolspeed))
|
||||||
to_chat(user, "<span class='notice'>You wrench the frame into place.</span>")
|
to_chat(user, "<span class='notice'>You wrench the frame into place.</span>")
|
||||||
src.anchored = 1
|
src.anchored = 1
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
if(!WT.remove_fuel(0, user))
|
if(!WT.remove_fuel(0, user))
|
||||||
to_chat(user, "The welding tool must be on to complete this task.")
|
to_chat(user, "The welding tool must be on to complete this task.")
|
||||||
return
|
return
|
||||||
playsound(src.loc, WT.usesound, 50, 1)
|
playsound(src, WT.usesound, 50, 1)
|
||||||
if(do_after(user, 20 * WT.toolspeed))
|
if(do_after(user, 20 * WT.toolspeed))
|
||||||
if(!src || !WT.isOn()) return
|
if(!src || !WT.isOn()) return
|
||||||
to_chat(user, "<span class='notice'>You deconstruct the frame.</span>")
|
to_chat(user, "<span class='notice'>You deconstruct the frame.</span>")
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
qdel(src)
|
qdel(src)
|
||||||
if(1)
|
if(1)
|
||||||
if(P.is_wrench())
|
if(P.is_wrench())
|
||||||
playsound(src.loc, P.usesound, 50, 1)
|
playsound(src, P.usesound, 50, 1)
|
||||||
if(do_after(user, 20 * P.toolspeed))
|
if(do_after(user, 20 * P.toolspeed))
|
||||||
to_chat(user, "<span class='notice'>You unfasten the frame.</span>")
|
to_chat(user, "<span class='notice'>You unfasten the frame.</span>")
|
||||||
src.anchored = 0
|
src.anchored = 0
|
||||||
@@ -40,7 +40,7 @@
|
|||||||
if(istype(P, /obj/item/weapon/circuitboard) && !circuit)
|
if(istype(P, /obj/item/weapon/circuitboard) && !circuit)
|
||||||
var/obj/item/weapon/circuitboard/B = P
|
var/obj/item/weapon/circuitboard/B = P
|
||||||
if(B.board_type == "computer")
|
if(B.board_type == "computer")
|
||||||
playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1)
|
playsound(src, 'sound/items/Deconstruct.ogg', 50, 1)
|
||||||
to_chat(user, "<span class='notice'>You place the circuit board inside the frame.</span>")
|
to_chat(user, "<span class='notice'>You place the circuit board inside the frame.</span>")
|
||||||
src.icon_state = "1"
|
src.icon_state = "1"
|
||||||
src.circuit = P
|
src.circuit = P
|
||||||
@@ -49,12 +49,12 @@
|
|||||||
else
|
else
|
||||||
to_chat(user, "<span class='warning'>This frame does not accept circuit boards of this type!</span>")
|
to_chat(user, "<span class='warning'>This frame does not accept circuit boards of this type!</span>")
|
||||||
if(P.is_screwdriver() && circuit)
|
if(P.is_screwdriver() && circuit)
|
||||||
playsound(src.loc, P.usesound, 50, 1)
|
playsound(src, P.usesound, 50, 1)
|
||||||
to_chat(user, "<span class='notice'>You screw the circuit board into place.</span>")
|
to_chat(user, "<span class='notice'>You screw the circuit board into place.</span>")
|
||||||
src.state = 2
|
src.state = 2
|
||||||
src.icon_state = "2"
|
src.icon_state = "2"
|
||||||
if(P.is_crowbar()) && circuit)
|
if(P.is_crowbar()) && circuit)
|
||||||
playsound(src.loc, P.usesound, 50, 1)
|
playsound(src, P.usesound, 50, 1)
|
||||||
to_chat(user, "<span class='notice'>You remove the circuit board.</span>")
|
to_chat(user, "<span class='notice'>You remove the circuit board.</span>")
|
||||||
src.state = 1
|
src.state = 1
|
||||||
src.icon_state = "0"
|
src.icon_state = "0"
|
||||||
@@ -62,7 +62,7 @@
|
|||||||
src.circuit = null
|
src.circuit = null
|
||||||
if(2)
|
if(2)
|
||||||
if(P.is_screwdriver() && circuit)
|
if(P.is_screwdriver() && circuit)
|
||||||
playsound(src.loc, P.usesound, 50, 1)
|
playsound(src, P.usesound, 50, 1)
|
||||||
to_chat(user, "<span class='notice'>You unfasten the circuit board.</span>")
|
to_chat(user, "<span class='notice'>You unfasten the circuit board.</span>")
|
||||||
src.state = 1
|
src.state = 1
|
||||||
src.icon_state = "1"
|
src.icon_state = "1"
|
||||||
@@ -72,7 +72,7 @@
|
|||||||
to_chat(user, "<span class='warning'>You need five coils of wire to add them to the frame.</span>")
|
to_chat(user, "<span class='warning'>You need five coils of wire to add them to the frame.</span>")
|
||||||
return
|
return
|
||||||
to_chat(user, "<span class='notice'>You start to add cables to the frame.</span>")
|
to_chat(user, "<span class='notice'>You start to add cables to the frame.</span>")
|
||||||
playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1)
|
playsound(src, 'sound/items/Deconstruct.ogg', 50, 1)
|
||||||
if(do_after(user, 20) && state == 2)
|
if(do_after(user, 20) && state == 2)
|
||||||
if (C.use(5))
|
if (C.use(5))
|
||||||
to_chat(user, "<span class='notice'>You add cables to the frame.</span>")
|
to_chat(user, "<span class='notice'>You add cables to the frame.</span>")
|
||||||
@@ -80,7 +80,7 @@
|
|||||||
icon_state = "3"
|
icon_state = "3"
|
||||||
if(3)
|
if(3)
|
||||||
if(P.is_wirecutter())
|
if(P.is_wirecutter())
|
||||||
playsound(src.loc, P.usesound, 50, 1)
|
playsound(src, P.usesound, 50, 1)
|
||||||
to_chat(user, "<span class='notice'>You remove the cables.</span>")
|
to_chat(user, "<span class='notice'>You remove the cables.</span>")
|
||||||
src.state = 2
|
src.state = 2
|
||||||
src.icon_state = "2"
|
src.icon_state = "2"
|
||||||
@@ -92,7 +92,7 @@
|
|||||||
if (G.get_amount() < 2)
|
if (G.get_amount() < 2)
|
||||||
to_chat(user, "<span class='warning'>You need two sheets of glass to put in the glass panel.</span>")
|
to_chat(user, "<span class='warning'>You need two sheets of glass to put in the glass panel.</span>")
|
||||||
return
|
return
|
||||||
playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1)
|
playsound(src, 'sound/items/Deconstruct.ogg', 50, 1)
|
||||||
to_chat(user, "<span class='notice'>You start to put in the glass panel.</span>")
|
to_chat(user, "<span class='notice'>You start to put in the glass panel.</span>")
|
||||||
if(do_after(user, 20) && state == 3)
|
if(do_after(user, 20) && state == 3)
|
||||||
if (G.use(2))
|
if (G.use(2))
|
||||||
@@ -101,13 +101,13 @@
|
|||||||
src.icon_state = "4"
|
src.icon_state = "4"
|
||||||
if(4)
|
if(4)
|
||||||
if(P.is_crowbar())
|
if(P.is_crowbar())
|
||||||
playsound(src.loc, P.usesound, 50, 1)
|
playsound(src, P.usesound, 50, 1)
|
||||||
to_chat(user, "<span class='notice'>You remove the glass panel.</span>")
|
to_chat(user, "<span class='notice'>You remove the glass panel.</span>")
|
||||||
src.state = 3
|
src.state = 3
|
||||||
src.icon_state = "3"
|
src.icon_state = "3"
|
||||||
new /obj/item/stack/material/glass( src.loc, 2 )
|
new /obj/item/stack/material/glass( src.loc, 2 )
|
||||||
if(P.is_screwdriver())
|
if(P.is_screwdriver())
|
||||||
playsound(src.loc, P.usesound, 50, 1)
|
playsound(src, P.usesound, 50, 1)
|
||||||
to_chat(user, "<span class='notice'>You connect the monitor.</span>")
|
to_chat(user, "<span class='notice'>You connect the monitor.</span>")
|
||||||
var/B = new src.circuit.build_path ( src.loc )
|
var/B = new src.circuit.build_path ( src.loc )
|
||||||
src.circuit.construct(B)
|
src.circuit.construct(B)
|
||||||
|
|||||||
@@ -51,7 +51,7 @@
|
|||||||
/*
|
/*
|
||||||
/obj/machinery/computer/pod/attackby(I as obj, user as mob)
|
/obj/machinery/computer/pod/attackby(I as obj, user as mob)
|
||||||
if(I.is_screwdriver())
|
if(I.is_screwdriver())
|
||||||
playsound(src.loc, W.usesound, 50, 1)
|
playsound(src, W.usesound, 50, 1)
|
||||||
if(do_after(user, 20))
|
if(do_after(user, 20))
|
||||||
if(stat & BROKEN)
|
if(stat & BROKEN)
|
||||||
to_chat(user, "<span class='notice'>The broken glass falls out.</span>")
|
to_chat(user, "<span class='notice'>The broken glass falls out.</span>")
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
if (C.get_amount() < 5)
|
if (C.get_amount() < 5)
|
||||||
to_chat(user, "<span class='warning'>You need five lengths of cable to add them to the frame.</span>")
|
to_chat(user, "<span class='warning'>You need five lengths of cable to add them to the frame.</span>")
|
||||||
return
|
return
|
||||||
playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1)
|
playsound(src, 'sound/items/Deconstruct.ogg', 50, 1)
|
||||||
to_chat(user, "<span class='notice'>You start to add cables to the frame.</span>")
|
to_chat(user, "<span class='notice'>You start to add cables to the frame.</span>")
|
||||||
if(do_after(user, 20) && state == 1)
|
if(do_after(user, 20) && state == 1)
|
||||||
if(C.use(5))
|
if(C.use(5))
|
||||||
@@ -50,7 +50,7 @@
|
|||||||
if(istype(P, /obj/item/weapon/circuitboard))
|
if(istype(P, /obj/item/weapon/circuitboard))
|
||||||
var/obj/item/weapon/circuitboard/B = P
|
var/obj/item/weapon/circuitboard/B = P
|
||||||
if(B.board_type == "machine")
|
if(B.board_type == "machine")
|
||||||
playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1)
|
playsound(src, 'sound/items/Deconstruct.ogg', 50, 1)
|
||||||
to_chat(user, "<span class='notice'>You add the circuit board to the frame.</span>")
|
to_chat(user, "<span class='notice'>You add the circuit board to the frame.</span>")
|
||||||
circuit = P
|
circuit = P
|
||||||
user.drop_item()
|
user.drop_item()
|
||||||
@@ -72,7 +72,7 @@
|
|||||||
to_chat(user, "<span class='warning'>This frame does not accept circuit boards of this type!</span>")
|
to_chat(user, "<span class='warning'>This frame does not accept circuit boards of this type!</span>")
|
||||||
else
|
else
|
||||||
if(P.is_wirecutter())
|
if(P.is_wirecutter())
|
||||||
playsound(src.loc, P.usesound, 50, 1)
|
playsound(src, P.usesound, 50, 1)
|
||||||
to_chat(user, "<span class='notice'>You remove the cables.</span>")
|
to_chat(user, "<span class='notice'>You remove the cables.</span>")
|
||||||
state = 1
|
state = 1
|
||||||
icon_state = "box_0"
|
icon_state = "box_0"
|
||||||
@@ -103,7 +103,7 @@
|
|||||||
component_check = 0
|
component_check = 0
|
||||||
break
|
break
|
||||||
if(component_check)
|
if(component_check)
|
||||||
playsound(src.loc, P.usesound, 50, 1)
|
playsound(src, P.usesound, 50, 1)
|
||||||
var/obj/machinery/new_machine = new src.circuit.build_path(src.loc, src.dir)
|
var/obj/machinery/new_machine = new src.circuit.build_path(src.loc, src.dir)
|
||||||
|
|
||||||
if(new_machine.component_parts)
|
if(new_machine.component_parts)
|
||||||
@@ -131,7 +131,7 @@
|
|||||||
if(istype(P, /obj/item))
|
if(istype(P, /obj/item))
|
||||||
for(var/I in req_components)
|
for(var/I in req_components)
|
||||||
if(istype(P, text2path(I)) && (req_components[I] > 0))
|
if(istype(P, text2path(I)) && (req_components[I] > 0))
|
||||||
playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1)
|
playsound(src, 'sound/items/Deconstruct.ogg', 50, 1)
|
||||||
if(P.is_cable_coil))
|
if(P.is_cable_coil))
|
||||||
var/obj/item/stack/cable_coil/CP = P
|
var/obj/item/stack/cable_coil/CP = P
|
||||||
if(CP.get_amount() > 1)
|
if(CP.get_amount() > 1)
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ Barricades
|
|||||||
if("brute")
|
if("brute")
|
||||||
health -= W.force * 0.75
|
health -= W.force * 0.75
|
||||||
if(material == (get_material_by_name(MAT_WOOD) || get_material_by_name(MAT_SIFWOOD)))
|
if(material == (get_material_by_name(MAT_WOOD) || get_material_by_name(MAT_SIFWOOD)))
|
||||||
playsound(loc, 'sound/effects/woodcutting.ogg', 100, 1)
|
playsound(src, 'sound/effects/woodcutting.ogg', 100, 1)
|
||||||
else
|
else
|
||||||
playsound(src, 'sound/weapons/smash.ogg', 50, 1)
|
playsound(src, 'sound/weapons/smash.ogg', 50, 1)
|
||||||
CheckHealth()
|
CheckHealth()
|
||||||
@@ -76,9 +76,9 @@ Barricades
|
|||||||
/obj/structure/barricade/attack_generic(var/mob/user, var/damage, var/attack_verb)
|
/obj/structure/barricade/attack_generic(var/mob/user, var/damage, var/attack_verb)
|
||||||
visible_message("<span class='danger'>[user] [attack_verb] the [src]!</span>")
|
visible_message("<span class='danger'>[user] [attack_verb] the [src]!</span>")
|
||||||
if(material == get_material_by_name("resin"))
|
if(material == get_material_by_name("resin"))
|
||||||
playsound(loc, 'sound/effects/attackblob.ogg', 100, 1)
|
playsound(src, 'sound/effects/attackblob.ogg', 100, 1)
|
||||||
else if(material == (get_material_by_name(MAT_WOOD) || get_material_by_name(MAT_SIFWOOD)))
|
else if(material == (get_material_by_name(MAT_WOOD) || get_material_by_name(MAT_SIFWOOD)))
|
||||||
playsound(loc, 'sound/effects/woodcutting.ogg', 100, 1)
|
playsound(src, 'sound/effects/woodcutting.ogg', 100, 1)
|
||||||
else
|
else
|
||||||
playsound(src, 'sound/weapons/smash.ogg', 50, 1)
|
playsound(src, 'sound/weapons/smash.ogg', 50, 1)
|
||||||
user.do_attack_animation(src)
|
user.do_attack_animation(src)
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
if(req_access.len || req_one_access.len)
|
if(req_access.len || req_one_access.len)
|
||||||
req_access = list()
|
req_access = list()
|
||||||
req_one_access = list()
|
req_one_access = list()
|
||||||
playsound(src.loc, "sparks", 100, 1)
|
playsound(src, "sparks", 100, 1)
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
/obj/machinery/button/remote/attack_hand(mob/user as mob)
|
/obj/machinery/button/remote/attack_hand(mob/user as mob)
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
if(inoperable())
|
if(inoperable())
|
||||||
return
|
return
|
||||||
use_power(active_power_usage)
|
use_power(active_power_usage)
|
||||||
playsound(src.loc, chime_sound, 75)
|
playsound(src, chime_sound, 75)
|
||||||
icon_state = "dbchime-active"
|
icon_state = "dbchime-active"
|
||||||
set_light(2, 0.5, "#33FF33")
|
set_light(2, 0.5, "#33FF33")
|
||||||
visible_message("\The [src]'s light flashes.")
|
visible_message("\The [src]'s light flashes.")
|
||||||
@@ -139,7 +139,7 @@
|
|||||||
to_chat(user, "<span class='caution'>You save the data in \the [M]'s buffer.</span>")
|
to_chat(user, "<span class='caution'>You save the data in \the [M]'s buffer.</span>")
|
||||||
else if(W.is_wrench())
|
else if(W.is_wrench())
|
||||||
to_chat(user, "<span class='notice'>You start to unwrench \the [src].</span>")
|
to_chat(user, "<span class='notice'>You start to unwrench \the [src].</span>")
|
||||||
playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1)
|
playsound(src, 'sound/items/Ratchet.ogg', 50, 1)
|
||||||
if(do_after(user, 15) && !QDELETED(src))
|
if(do_after(user, 15) && !QDELETED(src))
|
||||||
to_chat(user, "<span class='notice'>You unwrench \the [src].</span>")
|
to_chat(user, "<span class='notice'>You unwrench \the [src].</span>")
|
||||||
new /obj/item/frame/doorbell(src.loc)
|
new /obj/item/frame/doorbell(src.loc)
|
||||||
|
|||||||
@@ -81,7 +81,7 @@
|
|||||||
if(do_after(user,5 SECONDS,src))
|
if(do_after(user,5 SECONDS,src))
|
||||||
visible_message("<span class='danger'>\The [user] forces \the [src] open, sparks flying from its electronics!</span>")
|
visible_message("<span class='danger'>\The [user] forces \the [src] open, sparks flying from its electronics!</span>")
|
||||||
src.do_animate("spark")
|
src.do_animate("spark")
|
||||||
playsound(src.loc, 'sound/machines/airlock_creaking.ogg', 100, 1)
|
playsound(src, 'sound/machines/airlock_creaking.ogg', 100, 1)
|
||||||
src.locked = 0
|
src.locked = 0
|
||||||
src.welded = 0
|
src.welded = 0
|
||||||
update_icon()
|
update_icon()
|
||||||
@@ -90,7 +90,7 @@
|
|||||||
else if(src.density)
|
else if(src.density)
|
||||||
visible_message("<span class='alium'>\The [user] begins forcing \the [src] open!</span>")
|
visible_message("<span class='alium'>\The [user] begins forcing \the [src] open!</span>")
|
||||||
if(do_after(user, 5 SECONDS,src))
|
if(do_after(user, 5 SECONDS,src))
|
||||||
playsound(src.loc, 'sound/machines/airlock_creaking.ogg', 100, 1)
|
playsound(src, 'sound/machines/airlock_creaking.ogg', 100, 1)
|
||||||
visible_message("<span class='danger'>\The [user] forces \the [src] open!</span>")
|
visible_message("<span class='danger'>\The [user] forces \the [src] open!</span>")
|
||||||
open(1)
|
open(1)
|
||||||
else
|
else
|
||||||
@@ -946,7 +946,7 @@ About the new airlock wires panel:
|
|||||||
src.welded = 1
|
src.welded = 1
|
||||||
else
|
else
|
||||||
src.welded = null
|
src.welded = null
|
||||||
playsound(src.loc, C.usesound, 75, 1)
|
playsound(src, C.usesound, 75, 1)
|
||||||
src.update_icon()
|
src.update_icon()
|
||||||
return
|
return
|
||||||
else
|
else
|
||||||
@@ -1066,9 +1066,9 @@ About the new airlock wires panel:
|
|||||||
|
|
||||||
//if the door is unpowered then it doesn't make sense to hear the woosh of a pneumatic actuator
|
//if the door is unpowered then it doesn't make sense to hear the woosh of a pneumatic actuator
|
||||||
if(arePowerSystemsOn())
|
if(arePowerSystemsOn())
|
||||||
playsound(src.loc, open_sound_powered, 50, 1)
|
playsound(src, open_sound_powered, 50, 1)
|
||||||
else
|
else
|
||||||
playsound(src.loc, open_sound_unpowered, 75, 1)
|
playsound(src, open_sound_unpowered, 75, 1)
|
||||||
|
|
||||||
if(src.closeOther != null && istype(src.closeOther, /obj/machinery/door/airlock/) && !src.closeOther.density)
|
if(src.closeOther != null && istype(src.closeOther, /obj/machinery/door/airlock/) && !src.closeOther.density)
|
||||||
src.closeOther.close()
|
src.closeOther.close()
|
||||||
@@ -1150,7 +1150,7 @@ About the new airlock wires panel:
|
|||||||
for(var/atom/movable/AM in turf)
|
for(var/atom/movable/AM in turf)
|
||||||
if(AM.blocks_airlock())
|
if(AM.blocks_airlock())
|
||||||
if(!has_beeped)
|
if(!has_beeped)
|
||||||
playsound(src.loc, 'sound/machines/buzz-two.ogg', 50, 0)
|
playsound(src, 'sound/machines/buzz-two.ogg', 50, 0)
|
||||||
has_beeped = 1
|
has_beeped = 1
|
||||||
autoclose_in(6)
|
autoclose_in(6)
|
||||||
return
|
return
|
||||||
@@ -1163,9 +1163,9 @@ About the new airlock wires panel:
|
|||||||
use_power(360) //360 W seems much more appropriate for an actuator moving an industrial door capable of crushing people
|
use_power(360) //360 W seems much more appropriate for an actuator moving an industrial door capable of crushing people
|
||||||
has_beeped = 0
|
has_beeped = 0
|
||||||
if(arePowerSystemsOn())
|
if(arePowerSystemsOn())
|
||||||
playsound(src.loc, close_sound_powered, 50, 1)
|
playsound(src, close_sound_powered, 50, 1)
|
||||||
else
|
else
|
||||||
playsound(src.loc, open_sound_unpowered, 75, 1)
|
playsound(src, open_sound_unpowered, 75, 1)
|
||||||
for(var/turf/turf in locs)
|
for(var/turf/turf in locs)
|
||||||
var/obj/structure/window/killthis = (locate(/obj/structure/window) in turf)
|
var/obj/structure/window/killthis = (locate(/obj/structure/window) in turf)
|
||||||
if(killthis)
|
if(killthis)
|
||||||
|
|||||||
@@ -100,7 +100,7 @@
|
|||||||
// Description: Opens or closes the door, depending on current state. No checks are done inside this proc.
|
// Description: Opens or closes the door, depending on current state. No checks are done inside this proc.
|
||||||
/obj/machinery/door/blast/proc/force_toggle(var/forced = 0, mob/user as mob)
|
/obj/machinery/door/blast/proc/force_toggle(var/forced = 0, mob/user as mob)
|
||||||
if (forced)
|
if (forced)
|
||||||
playsound(src.loc, 'sound/machines/airlock_creaking.ogg', 100, 1)
|
playsound(src, 'sound/machines/airlock_creaking.ogg', 100, 1)
|
||||||
|
|
||||||
if(src.density)
|
if(src.density)
|
||||||
src.force_open()
|
src.force_open()
|
||||||
@@ -150,7 +150,7 @@
|
|||||||
user.visible_message("<span class='danger'>\The [user] hits \the [src] with \the [W] with no visible effect.</span>")
|
user.visible_message("<span class='danger'>\The [user] hits \the [src] with \the [W] with no visible effect.</span>")
|
||||||
else
|
else
|
||||||
user.visible_message("<span class='danger'>\The [user] forcefully strikes \the [src] with \the [W]!</span>")
|
user.visible_message("<span class='danger'>\The [user] forcefully strikes \the [src] with \the [W]!</span>")
|
||||||
playsound(src.loc, hitsound, 100, 1)
|
playsound(src, hitsound, 100, 1)
|
||||||
take_damage(W.force*0.35) //it's a blast door, it should take a while. -Luke
|
take_damage(W.force*0.35) //it's a blast door, it should take a while. -Luke
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -180,7 +180,7 @@
|
|||||||
user.visible_message("<span class='danger'>\The [user] hits \the [src] with \the [W] with no visible effect.</span>")
|
user.visible_message("<span class='danger'>\The [user] hits \the [src] with \the [W] with no visible effect.</span>")
|
||||||
else
|
else
|
||||||
user.visible_message("<span class='danger'>\The [user] forcefully strikes \the [src] with \the [W]!</span>")
|
user.visible_message("<span class='danger'>\The [user] forcefully strikes \the [src] with \the [W]!</span>")
|
||||||
playsound(src.loc, hitsound, 100, 1)
|
playsound(src, hitsound, 100, 1)
|
||||||
take_damage(W.force*0.15) //If the item isn't a weapon, let's make this take longer than usual to break it down.
|
take_damage(W.force*0.15) //If the item isn't a weapon, let's make this take longer than usual to break it down.
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -194,13 +194,13 @@
|
|||||||
if(src.density)
|
if(src.density)
|
||||||
visible_message("<span class='alium'>\The [user] begins forcing \the [src] open!</span>")
|
visible_message("<span class='alium'>\The [user] begins forcing \the [src] open!</span>")
|
||||||
if(do_after(user, 15 SECONDS,src))
|
if(do_after(user, 15 SECONDS,src))
|
||||||
playsound(src.loc, 'sound/machines/airlock_creaking.ogg', 100, 1)
|
playsound(src, 'sound/machines/airlock_creaking.ogg', 100, 1)
|
||||||
visible_message("<span class='danger'>\The [user] forces \the [src] open!</span>")
|
visible_message("<span class='danger'>\The [user] forces \the [src] open!</span>")
|
||||||
force_open(1)
|
force_open(1)
|
||||||
else
|
else
|
||||||
visible_message("<span class='alium'>\The [user] begins forcing \the [src] closed!</span>")
|
visible_message("<span class='alium'>\The [user] begins forcing \the [src] closed!</span>")
|
||||||
if(do_after(user, 5 SECONDS,src))
|
if(do_after(user, 5 SECONDS,src))
|
||||||
playsound(src.loc, 'sound/machines/airlock_creaking.ogg', 100, 1)
|
playsound(src, 'sound/machines/airlock_creaking.ogg', 100, 1)
|
||||||
visible_message("<span class='danger'>\The [user] forces \the [src] closed!</span>")
|
visible_message("<span class='danger'>\The [user] forces \the [src] closed!</span>")
|
||||||
force_close(1)
|
force_close(1)
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -201,7 +201,7 @@
|
|||||||
tforce = 15 * (speed/5)
|
tforce = 15 * (speed/5)
|
||||||
else
|
else
|
||||||
tforce = AM:throwforce * (speed/5)
|
tforce = AM:throwforce * (speed/5)
|
||||||
playsound(src.loc, hitsound, 100, 1)
|
playsound(src, hitsound, 100, 1)
|
||||||
take_damage(tforce)
|
take_damage(tforce)
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -289,7 +289,7 @@
|
|||||||
user.visible_message("<span class='danger'>\The [user] hits \the [src] with \the [W] with no visible effect.</span>")
|
user.visible_message("<span class='danger'>\The [user] hits \the [src] with \the [W] with no visible effect.</span>")
|
||||||
else
|
else
|
||||||
user.visible_message("<span class='danger'>\The [user] forcefully strikes \the [src] with \the [W]!</span>")
|
user.visible_message("<span class='danger'>\The [user] forcefully strikes \the [src] with \the [W]!</span>")
|
||||||
playsound(src.loc, hitsound, 100, 1)
|
playsound(src, hitsound, 100, 1)
|
||||||
take_damage(W.force)
|
take_damage(W.force)
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -414,7 +414,7 @@
|
|||||||
if("deny")
|
if("deny")
|
||||||
if(density && !(stat & (NOPOWER|BROKEN)))
|
if(density && !(stat & (NOPOWER|BROKEN)))
|
||||||
flick("door_deny", src)
|
flick("door_deny", src)
|
||||||
playsound(src.loc, 'sound/machines/buzz-two.ogg', 50, 0)
|
playsound(src, 'sound/machines/buzz-two.ogg', 50, 0)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -200,14 +200,14 @@
|
|||||||
if(src.blocked)
|
if(src.blocked)
|
||||||
visible_message("<span class='alium'>\The [user] begins digging into \the [src] internals!</span>")
|
visible_message("<span class='alium'>\The [user] begins digging into \the [src] internals!</span>")
|
||||||
if(do_after(user,5 SECONDS,src))
|
if(do_after(user,5 SECONDS,src))
|
||||||
playsound(src.loc, 'sound/machines/airlock_creaking.ogg', 100, 1)
|
playsound(src, 'sound/machines/airlock_creaking.ogg', 100, 1)
|
||||||
src.blocked = 0
|
src.blocked = 0
|
||||||
update_icon()
|
update_icon()
|
||||||
open(1)
|
open(1)
|
||||||
else if(src.density)
|
else if(src.density)
|
||||||
visible_message("<span class='alium'>\The [user] begins forcing \the [src] open!</span>")
|
visible_message("<span class='alium'>\The [user] begins forcing \the [src] open!</span>")
|
||||||
if(do_after(user, 2 SECONDS,src))
|
if(do_after(user, 2 SECONDS,src))
|
||||||
playsound(src.loc, 'sound/machines/airlock_creaking.ogg', 100, 1)
|
playsound(src, 'sound/machines/airlock_creaking.ogg', 100, 1)
|
||||||
visible_message("<span class='danger'>\The [user] forces \the [src] open!</span>")
|
visible_message("<span class='danger'>\The [user] forces \the [src] open!</span>")
|
||||||
open(1)
|
open(1)
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ obj/structure/firedoor_assembly/attackby(obj/item/C, mob/user as mob)
|
|||||||
to_chat(user, "<span class='notice'>You wire \the [src].</span>")
|
to_chat(user, "<span class='notice'>You wire \the [src].</span>")
|
||||||
|
|
||||||
else if(C.is_wirecutter() && wired )
|
else if(C.is_wirecutter() && wired )
|
||||||
playsound(src.loc, C.usesound, 100, 1)
|
playsound(src, C.usesound, 100, 1)
|
||||||
user.visible_message("[user] cuts the wires from \the [src].", "You start to cut the wires from \the [src].")
|
user.visible_message("[user] cuts the wires from \the [src].", "You start to cut the wires from \the [src].")
|
||||||
|
|
||||||
if(do_after(user, 40))
|
if(do_after(user, 40))
|
||||||
@@ -43,7 +43,7 @@ obj/structure/firedoor_assembly/attackby(obj/item/C, mob/user as mob)
|
|||||||
|
|
||||||
else if(istype(C, /obj/item/weapon/circuitboard/airalarm) && wired)
|
else if(istype(C, /obj/item/weapon/circuitboard/airalarm) && wired)
|
||||||
if(anchored)
|
if(anchored)
|
||||||
playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1)
|
playsound(src, 'sound/items/Deconstruct.ogg', 50, 1)
|
||||||
user.visible_message("<span class='warning'>[user] has inserted a circuit into \the [src]!</span>",
|
user.visible_message("<span class='warning'>[user] has inserted a circuit into \the [src]!</span>",
|
||||||
"You have inserted the circuit into \the [src]!")
|
"You have inserted the circuit into \the [src]!")
|
||||||
if(glass)
|
if(glass)
|
||||||
@@ -56,7 +56,7 @@ obj/structure/firedoor_assembly/attackby(obj/item/C, mob/user as mob)
|
|||||||
to_chat(user, "<span class='warning'>You must secure \the [src] first!</span>")
|
to_chat(user, "<span class='warning'>You must secure \the [src] first!</span>")
|
||||||
else if(C.is_wrench())
|
else if(C.is_wrench())
|
||||||
anchored = !anchored
|
anchored = !anchored
|
||||||
playsound(src.loc, C.usesound, 50, 1)
|
playsound(src, C.usesound, 50, 1)
|
||||||
user.visible_message("<span class='warning'>[user] has [anchored ? "" : "un" ]secured \the [src]!</span>",
|
user.visible_message("<span class='warning'>[user] has [anchored ? "" : "un" ]secured \the [src]!</span>",
|
||||||
"You have [anchored ? "" : "un" ]secured \the [src]!")
|
"You have [anchored ? "" : "un" ]secured \the [src]!")
|
||||||
update_icon()
|
update_icon()
|
||||||
@@ -86,7 +86,7 @@ obj/structure/firedoor_assembly/attackby(obj/item/C, mob/user as mob)
|
|||||||
else if(istype(C, /obj/item/stack/material) && C.get_material_name() == "rglass" && !glass)
|
else if(istype(C, /obj/item/stack/material) && C.get_material_name() == "rglass" && !glass)
|
||||||
var/obj/item/stack/S = C
|
var/obj/item/stack/S = C
|
||||||
if (S.get_amount() >= 1)
|
if (S.get_amount() >= 1)
|
||||||
playsound(src.loc, 'sound/items/Crowbar.ogg', 100, 1)
|
playsound(src, 'sound/items/Crowbar.ogg', 100, 1)
|
||||||
user.visible_message("<span class='info'>[user] adds [S.name] to \the [src].</span>",
|
user.visible_message("<span class='info'>[user] adds [S.name] to \the [src].</span>",
|
||||||
"<span class='notice'>You start to install [S.name] into \the [src].</span>")
|
"<span class='notice'>You start to install [S.name] into \the [src].</span>")
|
||||||
if(do_after(user, 40, src) && !glass && S.use(1))
|
if(do_after(user, 40, src) && !glass && S.use(1))
|
||||||
|
|||||||
@@ -115,7 +115,7 @@
|
|||||||
if (!operating) //in case of emag
|
if (!operating) //in case of emag
|
||||||
operating = 1
|
operating = 1
|
||||||
flick(text("[src.base_state]opening"), src)
|
flick(text("[src.base_state]opening"), src)
|
||||||
playsound(src.loc, 'sound/machines/windowdoor.ogg', 100, 1)
|
playsound(src, 'sound/machines/windowdoor.ogg', 100, 1)
|
||||||
sleep(10)
|
sleep(10)
|
||||||
|
|
||||||
explosion_resistance = 0
|
explosion_resistance = 0
|
||||||
@@ -132,7 +132,7 @@
|
|||||||
return FALSE
|
return FALSE
|
||||||
operating = TRUE
|
operating = TRUE
|
||||||
flick(text("[]closing", src.base_state), src)
|
flick(text("[]closing", src.base_state), src)
|
||||||
playsound(src.loc, 'sound/machines/windowdoor.ogg', 100, 1)
|
playsound(src, 'sound/machines/windowdoor.ogg', 100, 1)
|
||||||
|
|
||||||
density = TRUE
|
density = TRUE
|
||||||
update_icon()
|
update_icon()
|
||||||
@@ -158,7 +158,7 @@
|
|||||||
if(istype(user,/mob/living/carbon/human))
|
if(istype(user,/mob/living/carbon/human))
|
||||||
var/mob/living/carbon/human/H = user
|
var/mob/living/carbon/human/H = user
|
||||||
if(H.species.can_shred(H))
|
if(H.species.can_shred(H))
|
||||||
playsound(src.loc, 'sound/effects/Glasshit.ogg', 75, 1)
|
playsound(src, 'sound/effects/Glasshit.ogg', 75, 1)
|
||||||
visible_message("<span class='danger'>[user] smashes against the [src.name].</span>", 1)
|
visible_message("<span class='danger'>[user] smashes against the [src.name].</span>", 1)
|
||||||
user.do_attack_animation(src)
|
user.do_attack_animation(src)
|
||||||
user.setClickCooldown(user.get_attack_speed())
|
user.setClickCooldown(user.get_attack_speed())
|
||||||
@@ -212,8 +212,8 @@
|
|||||||
var/datum/effect/effect/system/spark_spread/spark_system = new /datum/effect/effect/system/spark_spread()
|
var/datum/effect/effect/system/spark_spread/spark_system = new /datum/effect/effect/system/spark_spread()
|
||||||
spark_system.set_up(5, 0, src.loc)
|
spark_system.set_up(5, 0, src.loc)
|
||||||
spark_system.start()
|
spark_system.start()
|
||||||
playsound(src.loc, "sparks", 50, 1)
|
playsound(src, "sparks", 50, 1)
|
||||||
playsound(src.loc, 'sound/weapons/blade1.ogg', 50, 1)
|
playsound(src, 'sound/weapons/blade1.ogg', 50, 1)
|
||||||
visible_message("<span class='warning'>The glass door was sliced open by [user]!</span>")
|
visible_message("<span class='warning'>The glass door was sliced open by [user]!</span>")
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
@@ -259,7 +259,7 @@
|
|||||||
if(src.density && istype(I, /obj/item/weapon) && !istype(I, /obj/item/weapon/card))
|
if(src.density && istype(I, /obj/item/weapon) && !istype(I, /obj/item/weapon/card))
|
||||||
user.setClickCooldown(user.get_attack_speed(I))
|
user.setClickCooldown(user.get_attack_speed(I))
|
||||||
var/aforce = I.force
|
var/aforce = I.force
|
||||||
playsound(src.loc, 'sound/effects/Glasshit.ogg', 75, 1)
|
playsound(src, 'sound/effects/Glasshit.ogg', 75, 1)
|
||||||
visible_message("<span class='danger'>[src] was hit by [I].</span>")
|
visible_message("<span class='danger'>[src] was hit by [I].</span>")
|
||||||
if(I.damtype == BRUTE || I.damtype == BURN)
|
if(I.damtype == BRUTE || I.damtype == BURN)
|
||||||
take_damage(aforce)
|
take_damage(aforce)
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ FIRE ALARM
|
|||||||
for(var/obj/machinery/firealarm/FA in area)
|
for(var/obj/machinery/firealarm/FA in area)
|
||||||
fire_alarm.triggerAlarm(loc, FA, duration, hidden = alarms_hidden)
|
fire_alarm.triggerAlarm(loc, FA, duration, hidden = alarms_hidden)
|
||||||
update_icon()
|
update_icon()
|
||||||
playsound(src.loc, 'sound/machines/airalarm.ogg', 25, 0, 4)
|
playsound(src, 'sound/machines/airalarm.ogg', 25, 0, 4)
|
||||||
return
|
return
|
||||||
|
|
||||||
/obj/machinery/firealarm/proc/set_security_level(var/newlevel)
|
/obj/machinery/firealarm/proc/set_security_level(var/newlevel)
|
||||||
|
|||||||
@@ -56,7 +56,7 @@
|
|||||||
if((disable) || (last_flash && world.time < last_flash + 150))
|
if((disable) || (last_flash && world.time < last_flash + 150))
|
||||||
return
|
return
|
||||||
|
|
||||||
playsound(src.loc, 'sound/weapons/flash.ogg', 100, 1)
|
playsound(src, 'sound/weapons/flash.ogg', 100, 1)
|
||||||
flick("[base_state]_flash", src)
|
flick("[base_state]_flash", src)
|
||||||
last_flash = world.time
|
last_flash = world.time
|
||||||
use_power(1500)
|
use_power(1500)
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ var/list/floor_light_cache = list()
|
|||||||
if(!WT.remove_fuel(0, user))
|
if(!WT.remove_fuel(0, user))
|
||||||
to_chat(user, "<span class='warning'>\The [src] must be on to complete this task.</span>")
|
to_chat(user, "<span class='warning'>\The [src] must be on to complete this task.</span>")
|
||||||
return
|
return
|
||||||
playsound(src.loc, WT.usesound, 50, 1)
|
playsound(src, WT.usesound, 50, 1)
|
||||||
if(!do_after(user, 20 * WT.toolspeed))
|
if(!do_after(user, 20 * WT.toolspeed))
|
||||||
return
|
return
|
||||||
if(!src || !WT.isOn())
|
if(!src || !WT.isOn())
|
||||||
@@ -53,7 +53,7 @@ var/list/floor_light_cache = list()
|
|||||||
stat |= BROKEN
|
stat |= BROKEN
|
||||||
else
|
else
|
||||||
visible_message("<span class='danger'>\The [user] attacks \the [src]!</span>")
|
visible_message("<span class='danger'>\The [user] attacks \the [src]!</span>")
|
||||||
playsound(src.loc, 'sound/effects/Glasshit.ogg', 75, 1)
|
playsound(src, 'sound/effects/Glasshit.ogg', 75, 1)
|
||||||
if(isnull(damaged)) damaged = 0
|
if(isnull(damaged)) damaged = 0
|
||||||
update_brightness()
|
update_brightness()
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -277,7 +277,7 @@
|
|||||||
if(P.is_wrench())
|
if(P.is_wrench())
|
||||||
if(state == FRAME_PLACED && !anchored)
|
if(state == FRAME_PLACED && !anchored)
|
||||||
to_chat(user, "<span class='notice'>You start to wrench the frame into place.</span>")
|
to_chat(user, "<span class='notice'>You start to wrench the frame into place.</span>")
|
||||||
playsound(src.loc, P.usesound, 50, 1)
|
playsound(src, P.usesound, 50, 1)
|
||||||
if(do_after(user, 20 * P.toolspeed))
|
if(do_after(user, 20 * P.toolspeed))
|
||||||
anchored = TRUE
|
anchored = TRUE
|
||||||
if(!need_circuit && circuit)
|
if(!need_circuit && circuit)
|
||||||
@@ -298,7 +298,7 @@
|
|||||||
if(state == FRAME_PLACED)
|
if(state == FRAME_PLACED)
|
||||||
var/obj/item/weapon/weldingtool/WT = P
|
var/obj/item/weapon/weldingtool/WT = P
|
||||||
if(WT.remove_fuel(0, user))
|
if(WT.remove_fuel(0, user))
|
||||||
playsound(src.loc, P.usesound, 50, 1)
|
playsound(src, P.usesound, 50, 1)
|
||||||
if(do_after(user, 20 * P.toolspeed))
|
if(do_after(user, 20 * P.toolspeed))
|
||||||
if(src && WT.isOn())
|
if(src && WT.isOn())
|
||||||
to_chat(user, "<span class='notice'>You deconstruct the frame.</span>")
|
to_chat(user, "<span class='notice'>You deconstruct the frame.</span>")
|
||||||
@@ -314,7 +314,7 @@
|
|||||||
var/obj/item/weapon/circuitboard/B = P
|
var/obj/item/weapon/circuitboard/B = P
|
||||||
var/datum/frame/frame_types/board_type = B.board_type
|
var/datum/frame/frame_types/board_type = B.board_type
|
||||||
if(board_type.name == frame_type.name)
|
if(board_type.name == frame_type.name)
|
||||||
playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1)
|
playsound(src, 'sound/items/Deconstruct.ogg', 50, 1)
|
||||||
to_chat(user, "<span class='notice'>You place the circuit board inside the frame.</span>")
|
to_chat(user, "<span class='notice'>You place the circuit board inside the frame.</span>")
|
||||||
circuit = P
|
circuit = P
|
||||||
user.drop_item()
|
user.drop_item()
|
||||||
@@ -467,7 +467,7 @@
|
|||||||
to_chat(user, "<span class='warning'>You need five coils of wire to add them to the frame.</span>")
|
to_chat(user, "<span class='warning'>You need five coils of wire to add them to the frame.</span>")
|
||||||
return
|
return
|
||||||
to_chat(user, "<span class='notice'>You start to add cables to the frame.</span>")
|
to_chat(user, "<span class='notice'>You start to add cables to the frame.</span>")
|
||||||
playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1)
|
playsound(src, 'sound/items/Deconstruct.ogg', 50, 1)
|
||||||
if(do_after(user, 20) && state == FRAME_FASTENED)
|
if(do_after(user, 20) && state == FRAME_FASTENED)
|
||||||
if(C.use(5))
|
if(C.use(5))
|
||||||
to_chat(user, "<span class='notice'>You add cables to the frame.</span>")
|
to_chat(user, "<span class='notice'>You add cables to the frame.</span>")
|
||||||
@@ -478,7 +478,7 @@
|
|||||||
if(frame_type.frame_class == FRAME_CLASS_MACHINE)
|
if(frame_type.frame_class == FRAME_CLASS_MACHINE)
|
||||||
for(var/I in req_components)
|
for(var/I in req_components)
|
||||||
if(istype(P, I) && (req_components[I] > 0))
|
if(istype(P, I) && (req_components[I] > 0))
|
||||||
playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1)
|
playsound(src, 'sound/items/Deconstruct.ogg', 50, 1)
|
||||||
if(istype(P, /obj/item/stack/cable_coil))
|
if(istype(P, /obj/item/stack/cable_coil))
|
||||||
var/obj/item/stack/cable_coil/CP = P
|
var/obj/item/stack/cable_coil/CP = P
|
||||||
if(CP.get_amount() > 1)
|
if(CP.get_amount() > 1)
|
||||||
@@ -527,7 +527,7 @@
|
|||||||
if(G.get_amount() < 2)
|
if(G.get_amount() < 2)
|
||||||
to_chat(user, "<span class='warning'>You need two sheets of glass to put in the glass panel.</span>")
|
to_chat(user, "<span class='warning'>You need two sheets of glass to put in the glass panel.</span>")
|
||||||
return
|
return
|
||||||
playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1)
|
playsound(src, 'sound/items/Deconstruct.ogg', 50, 1)
|
||||||
to_chat(user, "<span class='notice'>You start to put in the glass panel.</span>")
|
to_chat(user, "<span class='notice'>You start to put in the glass panel.</span>")
|
||||||
if(do_after(user, 20) && state == FRAME_WIRED)
|
if(do_after(user, 20) && state == FRAME_WIRED)
|
||||||
if(G.use(2))
|
if(G.use(2))
|
||||||
@@ -539,7 +539,7 @@
|
|||||||
if(G.get_amount() < 2)
|
if(G.get_amount() < 2)
|
||||||
to_chat(user, "<span class='warning'>You need two sheets of glass to put in the glass panel.</span>")
|
to_chat(user, "<span class='warning'>You need two sheets of glass to put in the glass panel.</span>")
|
||||||
return
|
return
|
||||||
playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1)
|
playsound(src, 'sound/items/Deconstruct.ogg', 50, 1)
|
||||||
to_chat(user, "<span class='notice'>You start to put in the glass panel.</span>")
|
to_chat(user, "<span class='notice'>You start to put in the glass panel.</span>")
|
||||||
if(do_after(user, 20) && state == FRAME_WIRED)
|
if(do_after(user, 20) && state == FRAME_WIRED)
|
||||||
if(G.use(2))
|
if(G.use(2))
|
||||||
@@ -551,7 +551,7 @@
|
|||||||
if(frame_type.frame_class == FRAME_CLASS_MACHINE)
|
if(frame_type.frame_class == FRAME_CLASS_MACHINE)
|
||||||
for(var/I in req_components)
|
for(var/I in req_components)
|
||||||
if(istype(P, I) && (req_components[I] > 0))
|
if(istype(P, I) && (req_components[I] > 0))
|
||||||
playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1)
|
playsound(src, 'sound/items/Deconstruct.ogg', 50, 1)
|
||||||
if(istype(P, /obj/item/stack))
|
if(istype(P, /obj/item/stack))
|
||||||
var/obj/item/stack/ST = P
|
var/obj/item/stack/ST = P
|
||||||
if(ST.get_amount() > 1)
|
if(ST.get_amount() > 1)
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ GLOBAL_LIST_EMPTY(holoposters)
|
|||||||
if(stat & (NOPOWER))
|
if(stat & (NOPOWER))
|
||||||
return
|
return
|
||||||
if (W.is_multitool())
|
if (W.is_multitool())
|
||||||
playsound(user.loc, 'sound/items/penclick.ogg', 60, 1)
|
playsound(src, 'sound/items/penclick.ogg', 60, 1)
|
||||||
icon_state = input("Available Posters", "Holographic Poster") as null|anything in postertypes + "random"
|
icon_state = input("Available Posters", "Holographic Poster") as null|anything in postertypes + "random"
|
||||||
if(!Adjacent(user))
|
if(!Adjacent(user))
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -217,7 +217,7 @@
|
|||||||
StopPlaying()
|
StopPlaying()
|
||||||
else if(href_list["play"])
|
else if(href_list["play"])
|
||||||
if(emagged)
|
if(emagged)
|
||||||
playsound(src.loc, 'sound/items/AirHorn.ogg', 100, 1)
|
playsound(src, 'sound/items/AirHorn.ogg', 100, 1)
|
||||||
for(var/mob/living/carbon/M in ohearers(6, src))
|
for(var/mob/living/carbon/M in ohearers(6, src))
|
||||||
if(M.get_ear_protection() >= 2)
|
if(M.get_ear_protection() >= 2)
|
||||||
continue
|
continue
|
||||||
|
|||||||
@@ -277,7 +277,7 @@ Class Procs:
|
|||||||
text = "\The [src] pings."
|
text = "\The [src] pings."
|
||||||
|
|
||||||
state(text, "blue")
|
state(text, "blue")
|
||||||
playsound(src.loc, 'sound/machines/ping.ogg', 50, 0)
|
playsound(src, 'sound/machines/ping.ogg', 50, 0)
|
||||||
|
|
||||||
/obj/machinery/proc/shock(mob/user, prb)
|
/obj/machinery/proc/shock(mob/user, prb)
|
||||||
if(inoperable())
|
if(inoperable())
|
||||||
@@ -342,7 +342,7 @@ Class Procs:
|
|||||||
return FALSE
|
return FALSE
|
||||||
if(panel_open)
|
if(panel_open)
|
||||||
return FALSE // Close panel first!
|
return FALSE // Close panel first!
|
||||||
playsound(loc, W.usesound, 50, 1)
|
playsound(src, W.usesound, 50, 1)
|
||||||
var/actual_time = W.toolspeed * time
|
var/actual_time = W.toolspeed * time
|
||||||
if(actual_time != 0)
|
if(actual_time != 0)
|
||||||
user.visible_message( \
|
user.visible_message( \
|
||||||
@@ -403,12 +403,12 @@ Class Procs:
|
|||||||
if(!panel_open)
|
if(!panel_open)
|
||||||
return 0
|
return 0
|
||||||
user.visible_message("<span class='warning'>[user] has cut the wires inside \the [src]!</span>", "You have cut the wires inside \the [src].")
|
user.visible_message("<span class='warning'>[user] has cut the wires inside \the [src]!</span>", "You have cut the wires inside \the [src].")
|
||||||
playsound(src.loc, W.usesound, 50, 1)
|
playsound(src, W.usesound, 50, 1)
|
||||||
new/obj/item/stack/cable_coil(get_turf(src), 5)
|
new/obj/item/stack/cable_coil(get_turf(src), 5)
|
||||||
. = dismantle()
|
. = dismantle()
|
||||||
|
|
||||||
/obj/machinery/proc/dismantle()
|
/obj/machinery/proc/dismantle()
|
||||||
playsound(src.loc, 'sound/items/Crowbar.ogg', 50, 1)
|
playsound(src, 'sound/items/Crowbar.ogg', 50, 1)
|
||||||
//TFF 3/6/19 - port Cit RP fix of infinite frames. If it doesn't have a circuit board, don't create a frame. Return a smack instead. BONK!
|
//TFF 3/6/19 - port Cit RP fix of infinite frames. If it doesn't have a circuit board, don't create a frame. Return a smack instead. BONK!
|
||||||
if(!circuit)
|
if(!circuit)
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
@@ -904,7 +904,7 @@ obj/item/weapon/newspaper/Topic(href, href_list)
|
|||||||
if(curr_page == 0) //We're at the start, get to the middle
|
if(curr_page == 0) //We're at the start, get to the middle
|
||||||
screen = 1
|
screen = 1
|
||||||
curr_page++
|
curr_page++
|
||||||
playsound(loc, "pageturn", 50, 1)
|
playsound(src, "pageturn", 50, 1)
|
||||||
|
|
||||||
else if(href_list["prev_page"])
|
else if(href_list["prev_page"])
|
||||||
if(curr_page == 0)
|
if(curr_page == 0)
|
||||||
@@ -916,7 +916,7 @@ obj/item/weapon/newspaper/Topic(href, href_list)
|
|||||||
if(curr_page == pages+1) //we're at the end, let's go back to the middle.
|
if(curr_page == pages+1) //we're at the end, let's go back to the middle.
|
||||||
screen = 1
|
screen = 1
|
||||||
curr_page--
|
curr_page--
|
||||||
playsound(src.loc, "pageturn", 50, 1)
|
playsound(src, "pageturn", 50, 1)
|
||||||
|
|
||||||
if(istype(src.loc, /mob))
|
if(istype(src.loc, /mob))
|
||||||
attack_self(src.loc)
|
attack_self(src.loc)
|
||||||
@@ -974,9 +974,9 @@ obj/item/weapon/newspaper/attackby(obj/item/weapon/W as obj, mob/user as mob)
|
|||||||
spawn(300)
|
spawn(300)
|
||||||
alert = 0
|
alert = 0
|
||||||
update_icon()
|
update_icon()
|
||||||
playsound(src.loc, 'sound/machines/twobeep.ogg', 75, 1)
|
playsound(src, 'sound/machines/twobeep.ogg', 75, 1)
|
||||||
else
|
else
|
||||||
for(var/mob/O in hearers(world.view-1, T))
|
for(var/mob/O in hearers(world.view-1, T))
|
||||||
O.show_message("<span class='newscaster'><EM>[name]</EM> beeps, \"Attention! Wanted issue distributed!\"</span>",2)
|
O.show_message("<span class='newscaster'><EM>[name]</EM> beeps, \"Attention! Wanted issue distributed!\"</span>",2)
|
||||||
playsound(src.loc, 'sound/machines/warning-buzzer.ogg', 75, 1)
|
playsound(src, 'sound/machines/warning-buzzer.ogg', 75, 1)
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -93,12 +93,12 @@
|
|||||||
if(href_list["paint"])
|
if(href_list["paint"])
|
||||||
for(var/atom/movable/O in processing)
|
for(var/atom/movable/O in processing)
|
||||||
O.color = activecolor
|
O.color = activecolor
|
||||||
playsound(src.loc, 'sound/effects/spray3.ogg', 50, 1)
|
playsound(src, 'sound/effects/spray3.ogg', 50, 1)
|
||||||
|
|
||||||
if(href_list["clear"])
|
if(href_list["clear"])
|
||||||
for(var/atom/movable/O in processing)
|
for(var/atom/movable/O in processing)
|
||||||
O.color = initial(O.color)
|
O.color = initial(O.color)
|
||||||
playsound(src.loc, 'sound/effects/spray3.ogg', 50, 1)
|
playsound(src, 'sound/effects/spray3.ogg', 50, 1)
|
||||||
|
|
||||||
if(href_list["eject"])
|
if(href_list["eject"])
|
||||||
for(var/atom/movable/O in processing)
|
for(var/atom/movable/O in processing)
|
||||||
|
|||||||
@@ -167,7 +167,7 @@
|
|||||||
busy = 0
|
busy = 0
|
||||||
update_use_power(USE_POWER_IDLE)
|
update_use_power(USE_POWER_IDLE)
|
||||||
update_icon()
|
update_icon()
|
||||||
playsound(src.loc, 'sound/machines/chime.ogg', 50, 0)
|
playsound(src, 'sound/machines/chime.ogg', 50, 0)
|
||||||
|
|
||||||
/obj/machinery/partslathe/proc/addToQueue(var/datum/category_item/partslathe/D)
|
/obj/machinery/partslathe/proc/addToQueue(var/datum/category_item/partslathe/D)
|
||||||
queue += D
|
queue += D
|
||||||
|
|||||||
@@ -549,12 +549,12 @@
|
|||||||
if(do_after(user, 50 * I.toolspeed))
|
if(do_after(user, 50 * I.toolspeed))
|
||||||
//This code handles moving the turret around. After all, it's a portable turret!
|
//This code handles moving the turret around. After all, it's a portable turret!
|
||||||
if(!anchored)
|
if(!anchored)
|
||||||
playsound(loc, I.usesound, 100, 1)
|
playsound(src, I.usesound, 100, 1)
|
||||||
anchored = TRUE
|
anchored = TRUE
|
||||||
update_icon()
|
update_icon()
|
||||||
to_chat(user, "<span class='notice'>You secure the exterior bolts on the turret.</span>")
|
to_chat(user, "<span class='notice'>You secure the exterior bolts on the turret.</span>")
|
||||||
else if(anchored)
|
else if(anchored)
|
||||||
playsound(loc, I.usesound, 100, 1)
|
playsound(src, I.usesound, 100, 1)
|
||||||
anchored = FALSE
|
anchored = FALSE
|
||||||
to_chat(user, "<span class='notice'>You unsecure the exterior bolts on the turret.</span>")
|
to_chat(user, "<span class='notice'>You unsecure the exterior bolts on the turret.</span>")
|
||||||
update_icon()
|
update_icon()
|
||||||
@@ -890,10 +890,10 @@
|
|||||||
var/obj/item/projectile/A
|
var/obj/item/projectile/A
|
||||||
if(emagged || lethal)
|
if(emagged || lethal)
|
||||||
A = new lethal_projectile(loc)
|
A = new lethal_projectile(loc)
|
||||||
playsound(loc, lethal_shot_sound, 75, 1)
|
playsound(src, lethal_shot_sound, 75, 1)
|
||||||
else
|
else
|
||||||
A = new projectile(loc)
|
A = new projectile(loc)
|
||||||
playsound(loc, shot_sound, 75, 1)
|
playsound(src, shot_sound, 75, 1)
|
||||||
|
|
||||||
// Lethal/emagged turrets use twice the power due to higher energy beams
|
// Lethal/emagged turrets use twice the power due to higher energy beams
|
||||||
// Emagged turrets again use twice as much power due to higher firing rates
|
// Emagged turrets again use twice as much power due to higher firing rates
|
||||||
@@ -966,14 +966,14 @@
|
|||||||
switch(build_step)
|
switch(build_step)
|
||||||
if(0) //first step
|
if(0) //first step
|
||||||
if(I.is_wrench() && !anchored)
|
if(I.is_wrench() && !anchored)
|
||||||
playsound(loc, I.usesound, 100, 1)
|
playsound(src, I.usesound, 100, 1)
|
||||||
to_chat(user, "<span class='notice'>You secure the external bolts.</span>")
|
to_chat(user, "<span class='notice'>You secure the external bolts.</span>")
|
||||||
anchored = TRUE
|
anchored = TRUE
|
||||||
build_step = 1
|
build_step = 1
|
||||||
return
|
return
|
||||||
|
|
||||||
else if(I.is_crowbar() && !anchored)
|
else if(I.is_crowbar() && !anchored)
|
||||||
playsound(loc, I.usesound, 75, 1)
|
playsound(src, I.usesound, 75, 1)
|
||||||
to_chat(user, "<span class='notice'>You dismantle the turret construction.</span>")
|
to_chat(user, "<span class='notice'>You dismantle the turret construction.</span>")
|
||||||
new /obj/item/stack/material/steel(loc, 5)
|
new /obj/item/stack/material/steel(loc, 5)
|
||||||
qdel(src)
|
qdel(src)
|
||||||
@@ -991,7 +991,7 @@
|
|||||||
return
|
return
|
||||||
|
|
||||||
else if(I.is_wrench())
|
else if(I.is_wrench())
|
||||||
playsound(loc, I.usesound, 75, 1)
|
playsound(src, I.usesound, 75, 1)
|
||||||
to_chat(user, "<span class='notice'>You unfasten the external bolts.</span>")
|
to_chat(user, "<span class='notice'>You unfasten the external bolts.</span>")
|
||||||
anchored = FALSE
|
anchored = FALSE
|
||||||
build_step = 0
|
build_step = 0
|
||||||
@@ -999,7 +999,7 @@
|
|||||||
|
|
||||||
if(2)
|
if(2)
|
||||||
if(I.is_wrench())
|
if(I.is_wrench())
|
||||||
playsound(loc, I.usesound, 100, 1)
|
playsound(src, I.usesound, 100, 1)
|
||||||
to_chat(user, "<span class='notice'>You bolt the metal armor into place.</span>")
|
to_chat(user, "<span class='notice'>You bolt the metal armor into place.</span>")
|
||||||
build_step = 3
|
build_step = 3
|
||||||
return
|
return
|
||||||
@@ -1012,7 +1012,7 @@
|
|||||||
to_chat(user, "<span class='notice'>You need more fuel to complete this task.</span>")
|
to_chat(user, "<span class='notice'>You need more fuel to complete this task.</span>")
|
||||||
return
|
return
|
||||||
|
|
||||||
playsound(loc, I.usesound, 50, 1)
|
playsound(src, I.usesound, 50, 1)
|
||||||
if(do_after(user, 20 * I.toolspeed))
|
if(do_after(user, 20 * I.toolspeed))
|
||||||
if(!src || !WT.remove_fuel(5, user)) return
|
if(!src || !WT.remove_fuel(5, user)) return
|
||||||
build_step = 1
|
build_step = 1
|
||||||
@@ -1039,7 +1039,7 @@
|
|||||||
return
|
return
|
||||||
|
|
||||||
else if(I.is_wrench())
|
else if(I.is_wrench())
|
||||||
playsound(loc, I.usesound, 100, 1)
|
playsound(src, I.usesound, 100, 1)
|
||||||
to_chat(user, "<span class='notice'>You remove the turret's metal armor bolts.</span>")
|
to_chat(user, "<span class='notice'>You remove the turret's metal armor bolts.</span>")
|
||||||
build_step = 2
|
build_step = 2
|
||||||
return
|
return
|
||||||
@@ -1058,7 +1058,7 @@
|
|||||||
|
|
||||||
if(5)
|
if(5)
|
||||||
if(I.is_screwdriver())
|
if(I.is_screwdriver())
|
||||||
playsound(loc, I.usesound, 100, 1)
|
playsound(src, I.usesound, 100, 1)
|
||||||
build_step = 6
|
build_step = 6
|
||||||
to_chat(user, "<span class='notice'>You close the internal access hatch.</span>")
|
to_chat(user, "<span class='notice'>You close the internal access hatch.</span>")
|
||||||
return
|
return
|
||||||
@@ -1076,7 +1076,7 @@
|
|||||||
return
|
return
|
||||||
|
|
||||||
else if(I.is_screwdriver())
|
else if(I.is_screwdriver())
|
||||||
playsound(loc, I.usesound, 100, 1)
|
playsound(src, I.usesound, 100, 1)
|
||||||
build_step = 5
|
build_step = 5
|
||||||
to_chat(user, "<span class='notice'>You open the internal access hatch.</span>")
|
to_chat(user, "<span class='notice'>You open the internal access hatch.</span>")
|
||||||
return
|
return
|
||||||
@@ -1088,7 +1088,7 @@
|
|||||||
if(WT.get_fuel() < 5)
|
if(WT.get_fuel() < 5)
|
||||||
to_chat(user, "<span class='notice'>You need more fuel to complete this task.</span>")
|
to_chat(user, "<span class='notice'>You need more fuel to complete this task.</span>")
|
||||||
|
|
||||||
playsound(loc, WT.usesound, 50, 1)
|
playsound(src, WT.usesound, 50, 1)
|
||||||
if(do_after(user, 30 * WT.toolspeed))
|
if(do_after(user, 30 * WT.toolspeed))
|
||||||
if(!src || !WT.remove_fuel(5, user))
|
if(!src || !WT.remove_fuel(5, user))
|
||||||
return
|
return
|
||||||
@@ -1106,7 +1106,7 @@
|
|||||||
qdel(src) // qdel
|
qdel(src) // qdel
|
||||||
|
|
||||||
else if(I.is_crowbar())
|
else if(I.is_crowbar())
|
||||||
playsound(loc, I.usesound, 75, 1)
|
playsound(src, I.usesound, 75, 1)
|
||||||
to_chat(user, "<span class='notice'>You pry off the turret's exterior armor.</span>")
|
to_chat(user, "<span class='notice'>You pry off the turret's exterior armor.</span>")
|
||||||
new /obj/item/stack/material/steel(loc, 2)
|
new /obj/item/stack/material/steel(loc, 2)
|
||||||
build_step = 6
|
build_step = 6
|
||||||
|
|||||||
@@ -84,7 +84,7 @@
|
|||||||
return
|
return
|
||||||
anchored = !anchored
|
anchored = !anchored
|
||||||
to_chat(user, "You [anchored ? "attached" : "detached"] [src].")
|
to_chat(user, "You [anchored ? "attached" : "detached"] [src].")
|
||||||
playsound(loc, G.usesound, 75, 1)
|
playsound(src, G.usesound, 75, 1)
|
||||||
else if(default_deconstruction_screwdriver(user, G))
|
else if(default_deconstruction_screwdriver(user, G))
|
||||||
return
|
return
|
||||||
else if(default_deconstruction_crowbar(user, G))
|
else if(default_deconstruction_crowbar(user, G))
|
||||||
|
|||||||
@@ -206,7 +206,7 @@
|
|||||||
protected = 1
|
protected = 1
|
||||||
|
|
||||||
if(!protected)
|
if(!protected)
|
||||||
playsound(src.loc, "sparks", 75, 1, -1)
|
playsound(src, "sparks", 75, 1, -1)
|
||||||
to_chat(user, "<font color='red'>You try to touch the controls but you get zapped. There must be a short circuit somewhere.</font>")
|
to_chat(user, "<font color='red'>You try to touch the controls but you get zapped. There must be a short circuit somewhere.</font>")
|
||||||
return*/
|
return*/
|
||||||
else //welp, the guy is protected, we can continue
|
else //welp, the guy is protected, we can continue
|
||||||
@@ -232,7 +232,7 @@
|
|||||||
protected = 1
|
protected = 1
|
||||||
|
|
||||||
if(!protected)
|
if(!protected)
|
||||||
playsound(src.loc, "sparks", 75, 1, -1)
|
playsound(src, "sparks", 75, 1, -1)
|
||||||
to_chat(user, "<font color='red'>You try to touch the controls but you get zapped. There must be a short circuit somewhere.</font>")
|
to_chat(user, "<font color='red'>You try to touch the controls but you get zapped. There must be a short circuit somewhere.</font>")
|
||||||
return*/
|
return*/
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -192,7 +192,7 @@
|
|||||||
|
|
||||||
/obj/machinery/computer/telecomms/server/emag_act(var/remaining_charges, var/mob/user)
|
/obj/machinery/computer/telecomms/server/emag_act(var/remaining_charges, var/mob/user)
|
||||||
if(!emagged)
|
if(!emagged)
|
||||||
playsound(src.loc, 'sound/effects/sparks4.ogg', 75, 1)
|
playsound(src, 'sound/effects/sparks4.ogg', 75, 1)
|
||||||
emagged = 1
|
emagged = 1
|
||||||
to_chat(user, "<span class='notice'>You you disable the security protocols</span>")
|
to_chat(user, "<span class='notice'>You you disable the security protocols</span>")
|
||||||
src.updateUsrDialog()
|
src.updateUsrDialog()
|
||||||
|
|||||||
@@ -127,7 +127,7 @@
|
|||||||
|
|
||||||
/obj/machinery/computer/telecomms/monitor/emag_act(var/remaining_charges, var/mob/user)
|
/obj/machinery/computer/telecomms/monitor/emag_act(var/remaining_charges, var/mob/user)
|
||||||
if(!emagged)
|
if(!emagged)
|
||||||
playsound(src.loc, 'sound/effects/sparks4.ogg', 75, 1)
|
playsound(src, 'sound/effects/sparks4.ogg', 75, 1)
|
||||||
emagged = 1
|
emagged = 1
|
||||||
to_chat(user, "<span class='notice'>You you disable the security protocols</span>")
|
to_chat(user, "<span class='notice'>You you disable the security protocols</span>")
|
||||||
src.updateUsrDialog()
|
src.updateUsrDialog()
|
||||||
|
|||||||
@@ -210,7 +210,7 @@
|
|||||||
|
|
||||||
/obj/machinery/computer/telecomms/traffic/emag_act(var/remaining_charges, var/mob/user)
|
/obj/machinery/computer/telecomms/traffic/emag_act(var/remaining_charges, var/mob/user)
|
||||||
if(!emagged)
|
if(!emagged)
|
||||||
playsound(src.loc, 'sound/effects/sparks4.ogg', 75, 1)
|
playsound(src, 'sound/effects/sparks4.ogg', 75, 1)
|
||||||
emagged = 1
|
emagged = 1
|
||||||
to_chat(user, "<span class='notice'>You you disable the security protocols</span>")
|
to_chat(user, "<span class='notice'>You you disable the security protocols</span>")
|
||||||
src.updateUsrDialog()
|
src.updateUsrDialog()
|
||||||
|
|||||||
@@ -28,14 +28,14 @@
|
|||||||
if(stat & (BROKEN|NOPOWER))
|
if(stat & (BROKEN|NOPOWER))
|
||||||
return
|
return
|
||||||
if(!transform_dead && H.stat == DEAD)
|
if(!transform_dead && H.stat == DEAD)
|
||||||
playsound(src.loc, 'sound/machines/buzz-sigh.ogg', 50, 0)
|
playsound(src, 'sound/machines/buzz-sigh.ogg', 50, 0)
|
||||||
return
|
return
|
||||||
playsound(src.loc, 'sound/items/Welder.ogg', 50, 1)
|
playsound(src, 'sound/items/Welder.ogg', 50, 1)
|
||||||
use_power(5000) // Use a lot of power.
|
use_power(5000) // Use a lot of power.
|
||||||
var/mob/living/silicon/robot = H.Robotize()
|
var/mob/living/silicon/robot = H.Robotize()
|
||||||
robot.SetLockDown()
|
robot.SetLockDown()
|
||||||
spawn(50) // So he can't jump out the gate right away.
|
spawn(50) // So he can't jump out the gate right away.
|
||||||
playsound(src.loc, 'sound/machines/ping.ogg', 50, 0)
|
playsound(src, 'sound/machines/ping.ogg', 50, 0)
|
||||||
if(robot)
|
if(robot)
|
||||||
robot.SetLockDown(0)
|
robot.SetLockDown(0)
|
||||||
|
|
||||||
|
|||||||
@@ -252,7 +252,7 @@
|
|||||||
*/
|
*/
|
||||||
/obj/machinery/vending/proc/pay_with_ewallet(var/obj/item/weapon/spacecash/ewallet/wallet)
|
/obj/machinery/vending/proc/pay_with_ewallet(var/obj/item/weapon/spacecash/ewallet/wallet)
|
||||||
visible_message("<span class='info'>\The [usr] swipes \the [wallet] through \the [src].</span>")
|
visible_message("<span class='info'>\The [usr] swipes \the [wallet] through \the [src].</span>")
|
||||||
playsound(src.loc, 'sound/machines/id_swipe.ogg', 50, 1)
|
playsound(src, 'sound/machines/id_swipe.ogg', 50, 1)
|
||||||
if(currently_vending.price > wallet.worth)
|
if(currently_vending.price > wallet.worth)
|
||||||
status_message = "Insufficient funds on chargecard."
|
status_message = "Insufficient funds on chargecard."
|
||||||
status_error = 1
|
status_error = 1
|
||||||
@@ -273,7 +273,7 @@
|
|||||||
visible_message("<span class='info'>\The [usr] swipes \the [I] through \the [src].</span>")
|
visible_message("<span class='info'>\The [usr] swipes \the [I] through \the [src].</span>")
|
||||||
else
|
else
|
||||||
visible_message("<span class='info'>\The [usr] swipes \the [ID_container] through \the [src].</span>")
|
visible_message("<span class='info'>\The [usr] swipes \the [ID_container] through \the [src].</span>")
|
||||||
playsound(src.loc, 'sound/machines/id_swipe.ogg', 50, 1)
|
playsound(src, 'sound/machines/id_swipe.ogg', 50, 1)
|
||||||
var/datum/money_account/customer_account = get_account(I.associated_account_number)
|
var/datum/money_account/customer_account = get_account(I.associated_account_number)
|
||||||
if(!customer_account)
|
if(!customer_account)
|
||||||
status_message = "Error: Unable to access account. Please contact technical support if problem persists."
|
status_message = "Error: Unable to access account. Please contact technical support if problem persists."
|
||||||
@@ -429,7 +429,7 @@
|
|||||||
if((!allowed(usr)) && !emagged && scan_id) //For SECURE VENDING MACHINES YEAH
|
if((!allowed(usr)) && !emagged && scan_id) //For SECURE VENDING MACHINES YEAH
|
||||||
to_chat(usr, "<span class='warning'>Access denied.</span>") //Unless emagged of course
|
to_chat(usr, "<span class='warning'>Access denied.</span>") //Unless emagged of course
|
||||||
flick("[icon_state]-deny",src)
|
flick("[icon_state]-deny",src)
|
||||||
playsound(src.loc, 'sound/machines/deniedbeep.ogg', 50, 0)
|
playsound(src, 'sound/machines/deniedbeep.ogg', 50, 0)
|
||||||
return
|
return
|
||||||
|
|
||||||
var/key = text2num(href_list["vend"])
|
var/key = text2num(href_list["vend"])
|
||||||
@@ -466,7 +466,7 @@
|
|||||||
if((!allowed(usr)) && !emagged && scan_id) //For SECURE VENDING MACHINES YEAH
|
if((!allowed(usr)) && !emagged && scan_id) //For SECURE VENDING MACHINES YEAH
|
||||||
to_chat(usr, "<span class='warning'>Access denied.</span>") //Unless emagged of course
|
to_chat(usr, "<span class='warning'>Access denied.</span>") //Unless emagged of course
|
||||||
flick("[icon_state]-deny",src)
|
flick("[icon_state]-deny",src)
|
||||||
playsound(src.loc, 'sound/machines/deniedbeep.ogg', 50, 0)
|
playsound(src, 'sound/machines/deniedbeep.ogg', 50, 0)
|
||||||
return
|
return
|
||||||
vend_ready = 0 //One thing at a time!!
|
vend_ready = 0 //One thing at a time!!
|
||||||
status_message = "Vending..."
|
status_message = "Vending..."
|
||||||
@@ -505,7 +505,7 @@
|
|||||||
sleep(3)
|
sleep(3)
|
||||||
if(R.get_product(get_turf(src)))
|
if(R.get_product(get_turf(src)))
|
||||||
visible_message("<span class='notice'>\The [src] clunks as it vends an additional item.</span>")
|
visible_message("<span class='notice'>\The [src] clunks as it vends an additional item.</span>")
|
||||||
playsound(src.loc, "sound/[vending_sound]", 100, 1, 1)
|
playsound(src, "sound/[vending_sound]", 100, 1, 1)
|
||||||
|
|
||||||
status_message = ""
|
status_message = ""
|
||||||
status_error = 0
|
status_error = 0
|
||||||
|
|||||||
@@ -164,7 +164,7 @@
|
|||||||
else if(moved && gravity && !ground_capable)
|
else if(moved && gravity && !ground_capable)
|
||||||
occupant_message("Collision alert! Vehicle not rated for use in gravity!")
|
occupant_message("Collision alert! Vehicle not rated for use in gravity!")
|
||||||
take_damage(NOGRAV_FIGHTER_DAMAGE, "brute")
|
take_damage(NOGRAV_FIGHTER_DAMAGE, "brute")
|
||||||
playsound(loc, 'sound/effects/grillehit.ogg', 50, 1)
|
playsound(src, 'sound/effects/grillehit.ogg', 50, 1)
|
||||||
|
|
||||||
/obj/mecha/combat/fighter/handle_equipment_movement()
|
/obj/mecha/combat/fighter/handle_equipment_movement()
|
||||||
. = ..()
|
. = ..()
|
||||||
|
|||||||
@@ -179,7 +179,7 @@
|
|||||||
src.occupant_message("<font color='[src.zoom?"blue":"red"]'>Zoom mode [zoom?"en":"dis"]abled.</font>")
|
src.occupant_message("<font color='[src.zoom?"blue":"red"]'>Zoom mode [zoom?"en":"dis"]abled.</font>")
|
||||||
if(zoom)
|
if(zoom)
|
||||||
src.occupant.set_viewsize(12)
|
src.occupant.set_viewsize(12)
|
||||||
playsound(src.occupant, 'sound/mecha/imag_enh.ogg',50)
|
playsound(src, 'sound/mecha/imag_enh.ogg',50)
|
||||||
else
|
else
|
||||||
src.occupant.set_viewsize() // Reset to default
|
src.occupant.set_viewsize() // Reset to default
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
sleep(equip_cooldown)
|
sleep(equip_cooldown)
|
||||||
set_ready_state(1)
|
set_ready_state(1)
|
||||||
if(ready_sound) //Kind of like the kinetic accelerator.
|
if(ready_sound) //Kind of like the kinetic accelerator.
|
||||||
playsound(loc, ready_sound, 50, 1, -1)
|
playsound(src, ready_sound, 50, 1, -1)
|
||||||
if(target && chassis)
|
if(target && chassis)
|
||||||
return 1
|
return 1
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
if(FD.blocked)
|
if(FD.blocked)
|
||||||
FD.visible_message("<span class='danger'>\The [chassis] begins prying on \the [FD]!</span>")
|
FD.visible_message("<span class='danger'>\The [chassis] begins prying on \the [FD]!</span>")
|
||||||
if(do_after(chassis.occupant,10 SECONDS,FD))
|
if(do_after(chassis.occupant,10 SECONDS,FD))
|
||||||
playsound(FD.loc, 'sound/machines/airlock_creaking.ogg', 100, 1)
|
playsound(FD, 'sound/machines/airlock_creaking.ogg', 100, 1)
|
||||||
FD.blocked = 0
|
FD.blocked = 0
|
||||||
FD.update_icon()
|
FD.update_icon()
|
||||||
FD.open(1)
|
FD.open(1)
|
||||||
@@ -41,7 +41,7 @@
|
|||||||
else if(FD.density)
|
else if(FD.density)
|
||||||
FD.visible_message("<span class='warning'>\The [chassis] begins forcing \the [FD] open!</span>")
|
FD.visible_message("<span class='warning'>\The [chassis] begins forcing \the [FD] open!</span>")
|
||||||
if(do_after(chassis.occupant, 5 SECONDS,FD))
|
if(do_after(chassis.occupant, 5 SECONDS,FD))
|
||||||
playsound(FD.loc, 'sound/machines/airlock_creaking.ogg', 100, 1)
|
playsound(FD, 'sound/machines/airlock_creaking.ogg', 100, 1)
|
||||||
FD.visible_message("<span class='danger'>\The [chassis] forces \the [FD] open!</span>")
|
FD.visible_message("<span class='danger'>\The [chassis] forces \the [FD] open!</span>")
|
||||||
FD.open(1)
|
FD.open(1)
|
||||||
else
|
else
|
||||||
@@ -57,7 +57,7 @@
|
|||||||
if(do_after(chassis.occupant, 15 SECONDS,AD) && chassis.Adjacent(AD))
|
if(do_after(chassis.occupant, 15 SECONDS,AD) && chassis.Adjacent(AD))
|
||||||
AD.welded = FALSE
|
AD.welded = FALSE
|
||||||
AD.update_icon()
|
AD.update_icon()
|
||||||
playsound(AD.loc, 'sound/machines/airlock_creaking.ogg', 100, 1)
|
playsound(AD, 'sound/machines/airlock_creaking.ogg', 100, 1)
|
||||||
AD.visible_message("<span class='danger'>\The [chassis] tears \the [AD] open!</span>")
|
AD.visible_message("<span class='danger'>\The [chassis] tears \the [AD] open!</span>")
|
||||||
if(!AD.welded)
|
if(!AD.welded)
|
||||||
if(density)
|
if(density)
|
||||||
@@ -100,15 +100,15 @@
|
|||||||
M.adjustOxyLoss(round(dam_force/2))
|
M.adjustOxyLoss(round(dam_force/2))
|
||||||
M.updatehealth()
|
M.updatehealth()
|
||||||
occupant_message("<span class='warning'>You squeeze [target] with [src.name]. Something cracks.</span>")
|
occupant_message("<span class='warning'>You squeeze [target] with [src.name]. Something cracks.</span>")
|
||||||
playsound(src.loc, "fracture", 5, 1, -2) //CRACK
|
playsound(src, "fracture", 5, 1, -2) //CRACK
|
||||||
chassis.visible_message("<span class='warning'>[chassis] squeezes [target].</span>")
|
chassis.visible_message("<span class='warning'>[chassis] squeezes [target].</span>")
|
||||||
else if(chassis.occupant.a_intent == I_DISARM && enable_special)
|
else if(chassis.occupant.a_intent == I_DISARM && enable_special)
|
||||||
playsound(src.loc, 'sound/mecha/hydraulic.ogg', 10, 1, -2)
|
playsound(src, 'sound/mecha/hydraulic.ogg', 10, 1, -2)
|
||||||
M.take_overall_damage(dam_force/2)
|
M.take_overall_damage(dam_force/2)
|
||||||
M.adjustOxyLoss(round(dam_force/3))
|
M.adjustOxyLoss(round(dam_force/3))
|
||||||
M.updatehealth()
|
M.updatehealth()
|
||||||
occupant_message("<span class='warning'>You slam [target] with [src.name]. Something cracks.</span>")
|
occupant_message("<span class='warning'>You slam [target] with [src.name]. Something cracks.</span>")
|
||||||
playsound(src.loc, "fracture", 3, 1, -2) //CRACK 2
|
playsound(src, "fracture", 3, 1, -2) //CRACK 2
|
||||||
chassis.visible_message("<span class='warning'>[chassis] slams [target].</span>")
|
chassis.visible_message("<span class='warning'>[chassis] slams [target].</span>")
|
||||||
M.throw_at(get_step(M,get_dir(src, M)), 14, 1.5, chassis)
|
M.throw_at(get_step(M,get_dir(src, M)), 14, 1.5, chassis)
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -46,7 +46,7 @@
|
|||||||
log_message("Activated.")
|
log_message("Activated.")
|
||||||
cloak_iterator.start()
|
cloak_iterator.start()
|
||||||
set_ready_state(0)
|
set_ready_state(0)
|
||||||
playsound(get_turf(src), 'sound/effects/EMPulse.ogg', 100, 1)
|
playsound(src, 'sound/effects/EMPulse.ogg', 100, 1)
|
||||||
|
|
||||||
/obj/item/mecha_parts/mecha_equipment/cloak/proc/stop_cloak()
|
/obj/item/mecha_parts/mecha_equipment/cloak/proc/stop_cloak()
|
||||||
if(chassis)
|
if(chassis)
|
||||||
@@ -54,7 +54,7 @@
|
|||||||
log_message("Deactivated.")
|
log_message("Deactivated.")
|
||||||
cloak_iterator.stop()
|
cloak_iterator.stop()
|
||||||
set_ready_state(1)
|
set_ready_state(1)
|
||||||
playsound(get_turf(src), 'sound/effects/EMPulse.ogg', 100, 1)
|
playsound(src, 'sound/effects/EMPulse.ogg', 100, 1)
|
||||||
|
|
||||||
// These things are so silly
|
// These things are so silly
|
||||||
/datum/global_iterator/mecha_cloak/process(var/obj/item/mecha_parts/mecha_equipment/cloak/cloak)
|
/datum/global_iterator/mecha_cloak/process(var/obj/item/mecha_parts/mecha_equipment/cloak/cloak)
|
||||||
|
|||||||
@@ -25,14 +25,14 @@
|
|||||||
var/obj/o = target
|
var/obj/o = target
|
||||||
var/amount = o.reagents.trans_to_obj(src, 200)
|
var/amount = o.reagents.trans_to_obj(src, 200)
|
||||||
occupant_message("<span class='notice'>[amount] units transferred into internal tank.</span>")
|
occupant_message("<span class='notice'>[amount] units transferred into internal tank.</span>")
|
||||||
playsound(chassis, 'sound/effects/refill.ogg', 50, 1, -6)
|
playsound(src, 'sound/effects/refill.ogg', 50, 1, -6)
|
||||||
return
|
return
|
||||||
|
|
||||||
if (src.reagents.total_volume < 1)
|
if (src.reagents.total_volume < 1)
|
||||||
occupant_message("<span class='warning'>\The [src] is empty.</span>")
|
occupant_message("<span class='warning'>\The [src] is empty.</span>")
|
||||||
return
|
return
|
||||||
|
|
||||||
playsound(chassis, 'sound/effects/extinguish.ogg', 75, 1, -3)
|
playsound(src, 'sound/effects/extinguish.ogg', 75, 1, -3)
|
||||||
|
|
||||||
var/direction = get_dir(chassis,target)
|
var/direction = get_dir(chassis,target)
|
||||||
|
|
||||||
|
|||||||
@@ -67,7 +67,7 @@
|
|||||||
syringes -= S
|
syringes -= S
|
||||||
S.icon = 'icons/obj/chemical.dmi'
|
S.icon = 'icons/obj/chemical.dmi'
|
||||||
S.icon_state = "syringeproj"
|
S.icon_state = "syringeproj"
|
||||||
playsound(chassis, 'sound/items/syringeproj.ogg', 50, 1)
|
playsound(src, 'sound/items/syringeproj.ogg', 50, 1)
|
||||||
log_message("Launched [S] from [src], targeting [target].")
|
log_message("Launched [S] from [src], targeting [target].")
|
||||||
spawn(-1)
|
spawn(-1)
|
||||||
src = null //if src is deleted, still process the syringe
|
src = null //if src is deleted, still process the syringe
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
if(!equip_ready)
|
if(!equip_ready)
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
playsound(chassis, 'sound/effects/bang.ogg', 30, 1, 30)
|
playsound(src, 'sound/effects/bang.ogg', 30, 1, 30)
|
||||||
chassis.occupant_message("<span class='warning'>You emit a high-pitched noise from the mech.</span>")
|
chassis.occupant_message("<span class='warning'>You emit a high-pitched noise from the mech.</span>")
|
||||||
for(var/mob/living/carbon/M in ohearers(6, chassis))
|
for(var/mob/living/carbon/M in ohearers(6, chassis))
|
||||||
if(istype(M, /mob/living/carbon/human))
|
if(istype(M, /mob/living/carbon/human))
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
aimloc = locate(targloc.x+GaussRandRound(deviation,1),targloc.y+GaussRandRound(deviation,1),targloc.z)
|
aimloc = locate(targloc.x+GaussRandRound(deviation,1),targloc.y+GaussRandRound(deviation,1),targloc.z)
|
||||||
if(!aimloc || aimloc == curloc || (locs && aimloc in locs))
|
if(!aimloc || aimloc == curloc || (locs && aimloc in locs))
|
||||||
break
|
break
|
||||||
playsound(chassis, fire_sound, fire_volume, 1)
|
playsound(src, fire_sound, fire_volume, 1)
|
||||||
projectiles--
|
projectiles--
|
||||||
var/turf/projectile_turf
|
var/turf/projectile_turf
|
||||||
if(chassis.locs && chassis.locs.len) // Multi tile.
|
if(chassis.locs && chassis.locs.len) // Multi tile.
|
||||||
|
|||||||
@@ -673,12 +673,12 @@
|
|||||||
if(!prob(src.deflect_chance))
|
if(!prob(src.deflect_chance))
|
||||||
src.take_damage(15)
|
src.take_damage(15)
|
||||||
src.check_for_internal_damage(list(MECHA_INT_TEMP_CONTROL,MECHA_INT_TANK_BREACH,MECHA_INT_CONTROL_LOST))
|
src.check_for_internal_damage(list(MECHA_INT_TEMP_CONTROL,MECHA_INT_TANK_BREACH,MECHA_INT_CONTROL_LOST))
|
||||||
playsound(src.loc, 'sound/weapons/slash.ogg', 50, 1, -1)
|
playsound(src, 'sound/weapons/slash.ogg', 50, 1, -1)
|
||||||
to_chat(user, "<span class='danger'>You slash at the armored suit!</span>")
|
to_chat(user, "<span class='danger'>You slash at the armored suit!</span>")
|
||||||
visible_message("<span class='danger'>\The [user] slashes at [src.name]'s armor!</span>")
|
visible_message("<span class='danger'>\The [user] slashes at [src.name]'s armor!</span>")
|
||||||
else
|
else
|
||||||
src.log_append_to_last("Armor saved.")
|
src.log_append_to_last("Armor saved.")
|
||||||
playsound(src.loc, 'sound/weapons/slash.ogg', 50, 1, -1)
|
playsound(src, 'sound/weapons/slash.ogg', 50, 1, -1)
|
||||||
to_chat(user, "<span class='danger'>Your claws had no effect!</span>")
|
to_chat(user, "<span class='danger'>Your claws had no effect!</span>")
|
||||||
src.occupant_message("<span class='notice'>\The [user]'s claws are stopped by the armor.</span>")
|
src.occupant_message("<span class='notice'>\The [user]'s claws are stopped by the armor.</span>")
|
||||||
visible_message("<span class='warning'>\The [user] rebounds off [src.name]'s armor!</span>")
|
visible_message("<span class='warning'>\The [user] rebounds off [src.name]'s armor!</span>")
|
||||||
@@ -807,14 +807,14 @@
|
|||||||
if(!prob(src.deflect_chance))
|
if(!prob(src.deflect_chance))
|
||||||
src.take_damage(6)
|
src.take_damage(6)
|
||||||
src.check_for_internal_damage(list(MECHA_INT_TEMP_CONTROL,MECHA_INT_TANK_BREACH,MECHA_INT_CONTROL_LOST))
|
src.check_for_internal_damage(list(MECHA_INT_TEMP_CONTROL,MECHA_INT_TANK_BREACH,MECHA_INT_CONTROL_LOST))
|
||||||
playsound(src.loc, 'sound/effects/blobattack.ogg', 50, 1, -1)
|
playsound(src, 'sound/effects/blobattack.ogg', 50, 1, -1)
|
||||||
to_chat(user, "<span class='danger'>You smash at the armored suit!</span>")
|
to_chat(user, "<span class='danger'>You smash at the armored suit!</span>")
|
||||||
for (var/mob/V in viewers(src))
|
for (var/mob/V in viewers(src))
|
||||||
if(V.client && !(V.blinded))
|
if(V.client && !(V.blinded))
|
||||||
V.show_message("<span class='danger'>\The [user] smashes against [src.name]'s armor!</span>", 1)
|
V.show_message("<span class='danger'>\The [user] smashes against [src.name]'s armor!</span>", 1)
|
||||||
else
|
else
|
||||||
src.log_append_to_last("Armor saved.")
|
src.log_append_to_last("Armor saved.")
|
||||||
playsound(src.loc, 'sound/effects/blobattack.ogg', 50, 1, -1)
|
playsound(src, 'sound/effects/blobattack.ogg', 50, 1, -1)
|
||||||
to_chat(user, "<span class='warning'>Your attack had no effect!</span>")
|
to_chat(user, "<span class='warning'>Your attack had no effect!</span>")
|
||||||
src.occupant_message("<span class='warning'>\The [user]'s attack is stopped by the armor.</span>")
|
src.occupant_message("<span class='warning'>\The [user]'s attack is stopped by the armor.</span>")
|
||||||
for (var/mob/V in viewers(src))
|
for (var/mob/V in viewers(src))
|
||||||
@@ -2023,7 +2023,7 @@
|
|||||||
user.attack_log += text("\[[time_stamp()]\] <font color='red'>attacked [src.name]</font>")
|
user.attack_log += text("\[[time_stamp()]\] <font color='red'>attacked [src.name]</font>")
|
||||||
else
|
else
|
||||||
src.log_append_to_last("Armor saved.")
|
src.log_append_to_last("Armor saved.")
|
||||||
playsound(src.loc, 'sound/weapons/slash.ogg', 50, 1, -1)
|
playsound(src, 'sound/weapons/slash.ogg', 50, 1, -1)
|
||||||
src.occupant_message("<span class='notice'>\The [user]'s attack is stopped by the armor.</span>")
|
src.occupant_message("<span class='notice'>\The [user]'s attack is stopped by the armor.</span>")
|
||||||
visible_message("<span class='notice'>\The [user] rebounds off [src.name]'s armor!</span>")
|
visible_message("<span class='notice'>\The [user] rebounds off [src.name]'s armor!</span>")
|
||||||
user.attack_log += text("\[[time_stamp()]\] <font color='red'>attacked [src.name]</font>")
|
user.attack_log += text("\[[time_stamp()]\] <font color='red'>attacked [src.name]</font>")
|
||||||
|
|||||||
@@ -135,7 +135,7 @@
|
|||||||
// step_towards(M, src)
|
// step_towards(M, src)
|
||||||
|
|
||||||
. = buckle_mob(M, forced)
|
. = buckle_mob(M, forced)
|
||||||
playsound(src.loc, 'sound/effects/seatbelt.ogg', 50, 1)
|
playsound(src, 'sound/effects/seatbelt.ogg', 50, 1)
|
||||||
if(.)
|
if(.)
|
||||||
var/reveal_message = list("buckled_mob" = null, "buckled_to" = null) //VORE EDIT: This being a list and messages existing for the buckle target atom.
|
var/reveal_message = list("buckled_mob" = null, "buckled_to" = null) //VORE EDIT: This being a list and messages existing for the buckle target atom.
|
||||||
if(!silent)
|
if(!silent)
|
||||||
@@ -163,7 +163,7 @@
|
|||||||
|
|
||||||
/atom/movable/proc/user_unbuckle_mob(mob/living/buckled_mob, mob/user)
|
/atom/movable/proc/user_unbuckle_mob(mob/living/buckled_mob, mob/user)
|
||||||
var/mob/living/M = unbuckle_mob(buckled_mob)
|
var/mob/living/M = unbuckle_mob(buckled_mob)
|
||||||
playsound(src.loc, 'sound/effects/seatbelt.ogg', 50, 1)
|
playsound(src, 'sound/effects/seatbelt.ogg', 50, 1)
|
||||||
if(M)
|
if(M)
|
||||||
if(M != user)
|
if(M != user)
|
||||||
M.visible_message(\
|
M.visible_message(\
|
||||||
|
|||||||
@@ -66,7 +66,7 @@
|
|||||||
|
|
||||||
/obj/effect/alien/resin/attack_generic(var/mob/user, var/damage, var/attack_verb)
|
/obj/effect/alien/resin/attack_generic(var/mob/user, var/damage, var/attack_verb)
|
||||||
visible_message("<span class='danger'>[user] [attack_verb] the [src]!</span>")
|
visible_message("<span class='danger'>[user] [attack_verb] the [src]!</span>")
|
||||||
playsound(loc, 'sound/effects/attackblob.ogg', 100, 1)
|
playsound(src, 'sound/effects/attackblob.ogg', 100, 1)
|
||||||
user.do_attack_animation(src)
|
user.do_attack_animation(src)
|
||||||
health -= damage
|
health -= damage
|
||||||
healthcheck()
|
healthcheck()
|
||||||
@@ -100,7 +100,7 @@
|
|||||||
tforce = 10
|
tforce = 10
|
||||||
else
|
else
|
||||||
tforce = AM:throwforce
|
tforce = AM:throwforce
|
||||||
playsound(loc, 'sound/effects/attackblob.ogg', 100, 1)
|
playsound(src, 'sound/effects/attackblob.ogg', 100, 1)
|
||||||
health = max(0, health - tforce)
|
health = max(0, health - tforce)
|
||||||
healthcheck()
|
healthcheck()
|
||||||
..()
|
..()
|
||||||
@@ -137,7 +137,7 @@
|
|||||||
user.setClickCooldown(user.get_attack_speed(W))
|
user.setClickCooldown(user.get_attack_speed(W))
|
||||||
var/aforce = W.force
|
var/aforce = W.force
|
||||||
health = max(0, health - aforce)
|
health = max(0, health - aforce)
|
||||||
playsound(loc, 'sound/effects/attackblob.ogg', 100, 1)
|
playsound(src, 'sound/effects/attackblob.ogg', 100, 1)
|
||||||
healthcheck()
|
healthcheck()
|
||||||
..()
|
..()
|
||||||
return
|
return
|
||||||
@@ -328,7 +328,7 @@
|
|||||||
|
|
||||||
if(WT.remove_fuel(0, user))
|
if(WT.remove_fuel(0, user))
|
||||||
damage = 15
|
damage = 15
|
||||||
playsound(loc, 'sound/items/Welder.ogg', 100, 1)
|
playsound(src, 'sound/items/Welder.ogg', 100, 1)
|
||||||
|
|
||||||
health -= damage
|
health -= damage
|
||||||
healthcheck()
|
healthcheck()
|
||||||
@@ -531,7 +531,7 @@
|
|||||||
|
|
||||||
if(WT.remove_fuel(0, user))
|
if(WT.remove_fuel(0, user))
|
||||||
damage = 15
|
damage = 15
|
||||||
playsound(src.loc, 'sound/items/Welder.ogg', 100, 1)
|
playsound(src, 'sound/items/Welder.ogg', 100, 1)
|
||||||
|
|
||||||
src.health -= damage
|
src.health -= damage
|
||||||
src.healthcheck()
|
src.healthcheck()
|
||||||
|
|||||||
@@ -146,7 +146,7 @@
|
|||||||
|
|
||||||
/obj/structure/sign/poster/attackby(obj/item/weapon/W as obj, mob/user as mob)
|
/obj/structure/sign/poster/attackby(obj/item/weapon/W as obj, mob/user as mob)
|
||||||
if(W.is_wirecutter())
|
if(W.is_wirecutter())
|
||||||
playsound(src.loc, W.usesound, 100, 1)
|
playsound(src, W.usesound, 100, 1)
|
||||||
if(ruined)
|
if(ruined)
|
||||||
to_chat(user, "<span class='notice'>You remove the remnants of the poster.</span>")
|
to_chat(user, "<span class='notice'>You remove the remnants of the poster.</span>")
|
||||||
qdel(src)
|
qdel(src)
|
||||||
@@ -166,7 +166,7 @@
|
|||||||
return
|
return
|
||||||
|
|
||||||
visible_message("<span class='warning'>[user] rips [src] in a single, decisive motion!</span>" )
|
visible_message("<span class='warning'>[user] rips [src] in a single, decisive motion!</span>" )
|
||||||
playsound(src.loc, 'sound/items/poster_ripped.ogg', 100, 1)
|
playsound(src, 'sound/items/poster_ripped.ogg', 100, 1)
|
||||||
ruined = 1
|
ruined = 1
|
||||||
icon_state = "poster_ripped"
|
icon_state = "poster_ripped"
|
||||||
name = "ripped poster"
|
name = "ripped poster"
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ steam.start() -- spawns the effect
|
|||||||
|
|
||||||
/obj/effect/effect/sparks/New()
|
/obj/effect/effect/sparks/New()
|
||||||
..()
|
..()
|
||||||
playsound(src.loc, "sparks", 100, 1)
|
playsound(src, "sparks", 100, 1)
|
||||||
var/turf/T = src.loc
|
var/turf/T = src.loc
|
||||||
if (istype(T, /turf))
|
if (istype(T, /turf))
|
||||||
T.hotspot_expose(1000,100)
|
T.hotspot_expose(1000,100)
|
||||||
|
|||||||
@@ -61,7 +61,7 @@
|
|||||||
panel_open = !panel_open
|
panel_open = !panel_open
|
||||||
user.visible_message("<span class='warning'>[user] very carefully screws the mine's panel [panel_open ? "open" : "closed"].</span>",
|
user.visible_message("<span class='warning'>[user] very carefully screws the mine's panel [panel_open ? "open" : "closed"].</span>",
|
||||||
"<span class='notice'>You very carefully screw the mine's panel [panel_open ? "open" : "closed"].</span>")
|
"<span class='notice'>You very carefully screw the mine's panel [panel_open ? "open" : "closed"].</span>")
|
||||||
playsound(src.loc, W.usesound, 50, 1)
|
playsound(src, W.usesound, 50, 1)
|
||||||
|
|
||||||
else if((W.is_wirecutter() || istype(W, /obj/item/device/multitool)) && panel_open)
|
else if((W.is_wirecutter() || istype(W, /obj/item/device/multitool)) && panel_open)
|
||||||
interact(user)
|
interact(user)
|
||||||
@@ -224,7 +224,7 @@
|
|||||||
msg_admin_attack("[key_name_admin(user)] primed \a [src]")
|
msg_admin_attack("[key_name_admin(user)] primed \a [src]")
|
||||||
user.visible_message("[user] starts priming \the [src.name].", "You start priming \the [src.name]. Hold still!")
|
user.visible_message("[user] starts priming \the [src.name].", "You start priming \the [src.name]. Hold still!")
|
||||||
if(do_after(user, 10 SECONDS))
|
if(do_after(user, 10 SECONDS))
|
||||||
playsound(loc, 'sound/weapons/armbomb.ogg', 75, 1, -3)
|
playsound(src, 'sound/weapons/armbomb.ogg', 75, 1, -3)
|
||||||
prime(user)
|
prime(user)
|
||||||
else
|
else
|
||||||
visible_message("[user] triggers \the [src.name]!", "You accidentally trigger \the [src.name]!")
|
visible_message("[user] triggers \the [src.name]!", "You accidentally trigger \the [src.name]!")
|
||||||
|
|||||||
@@ -508,7 +508,7 @@ var/list/global/slot_flags_enumeration = list(
|
|||||||
var/hit_zone = get_zone_with_miss_chance(U.zone_sel.selecting, M, U.get_accuracy_penalty(U))
|
var/hit_zone = get_zone_with_miss_chance(U.zone_sel.selecting, M, U.get_accuracy_penalty(U))
|
||||||
if(!hit_zone)
|
if(!hit_zone)
|
||||||
U.do_attack_animation(M)
|
U.do_attack_animation(M)
|
||||||
playsound(loc, 'sound/weapons/punchmiss.ogg', 25, 1, -1)
|
playsound(src, 'sound/weapons/punchmiss.ogg', 25, 1, -1)
|
||||||
//visible_message("<span class='danger'>[U] attempts to stab [M] in the eyes, but misses!</span>")
|
//visible_message("<span class='danger'>[U] attempts to stab [M] in the eyes, but misses!</span>")
|
||||||
for(var/mob/V in viewers(M))
|
for(var/mob/V in viewers(M))
|
||||||
V.show_message("<span class='danger'>[U] attempts to stab [M] in the eyes, but misses!</span>")
|
V.show_message("<span class='danger'>[U] attempts to stab [M] in the eyes, but misses!</span>")
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
/obj/item/weapon/deskbell/attack(mob/target as mob, mob/living/user as mob)
|
/obj/item/weapon/deskbell/attack(mob/target as mob, mob/living/user as mob)
|
||||||
if(!broken)
|
if(!broken)
|
||||||
playsound(user.loc, 'sound/effects/deskbell.ogg', 50, 1)
|
playsound(src, 'sound/effects/deskbell.ogg', 50, 1)
|
||||||
..()
|
..()
|
||||||
|
|
||||||
/obj/item/weapon/deskbell/attack_hand(mob/user)
|
/obj/item/weapon/deskbell/attack_hand(mob/user)
|
||||||
@@ -61,12 +61,12 @@
|
|||||||
|
|
||||||
/obj/item/weapon/deskbell/proc/ring(mob/user)
|
/obj/item/weapon/deskbell/proc/ring(mob/user)
|
||||||
if(user.a_intent == "harm")
|
if(user.a_intent == "harm")
|
||||||
playsound(user.loc, 'sound/effects/deskbell_rude.ogg', 50, 1)
|
playsound(src, 'sound/effects/deskbell_rude.ogg', 50, 1)
|
||||||
to_chat(user,"<span class='notice'>You hammer [src] rudely!</span>")
|
to_chat(user,"<span class='notice'>You hammer [src] rudely!</span>")
|
||||||
if (prob(2))
|
if (prob(2))
|
||||||
break_bell(user)
|
break_bell(user)
|
||||||
else
|
else
|
||||||
playsound(user.loc, 'sound/effects/deskbell.ogg', 50, 1)
|
playsound(src, 'sound/effects/deskbell.ogg', 50, 1)
|
||||||
to_chat(user,"<span class='notice'>You gracefully ring [src].</span>")
|
to_chat(user,"<span class='notice'>You gracefully ring [src].</span>")
|
||||||
|
|
||||||
/obj/item/weapon/deskbell/proc/check_ability(mob/user)
|
/obj/item/weapon/deskbell/proc/check_ability(mob/user)
|
||||||
|
|||||||
@@ -330,7 +330,7 @@ var/global/list/obj/item/device/pda/PDAs = list()
|
|||||||
/obj/item/device/pda/ai/attack_self(mob/user as mob)
|
/obj/item/device/pda/ai/attack_self(mob/user as mob)
|
||||||
if ((honkamt > 0) && (prob(60)))//For clown virus.
|
if ((honkamt > 0) && (prob(60)))//For clown virus.
|
||||||
honkamt--
|
honkamt--
|
||||||
playsound(loc, 'sound/items/bikehorn.ogg', 30, 1)
|
playsound(src, 'sound/items/bikehorn.ogg', 30, 1)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
@@ -774,7 +774,7 @@ var/global/list/obj/item/device/pda/PDAs = list()
|
|||||||
scanmode = 4
|
scanmode = 4
|
||||||
if("Honk")
|
if("Honk")
|
||||||
if ( !(last_honk && world.time < last_honk + 20) )
|
if ( !(last_honk && world.time < last_honk + 20) )
|
||||||
playsound(loc, 'sound/items/bikehorn.ogg', 50, 1)
|
playsound(src, 'sound/items/bikehorn.ogg', 50, 1)
|
||||||
last_honk = world.time
|
last_honk = world.time
|
||||||
if("Gas Scan")
|
if("Gas Scan")
|
||||||
if(scanmode == 5)
|
if(scanmode == 5)
|
||||||
@@ -983,7 +983,7 @@ var/global/list/obj/item/device/pda/PDAs = list()
|
|||||||
|
|
||||||
if ((honkamt > 0) && (prob(60)))//For clown virus.
|
if ((honkamt > 0) && (prob(60)))//For clown virus.
|
||||||
honkamt--
|
honkamt--
|
||||||
playsound(loc, 'sound/items/bikehorn.ogg', 30, 1)
|
playsound(src, 'sound/items/bikehorn.ogg', 30, 1)
|
||||||
|
|
||||||
return 1 // return 1 tells it to refresh the UI in NanoUI
|
return 1 // return 1 tells it to refresh the UI in NanoUI
|
||||||
|
|
||||||
@@ -1020,14 +1020,14 @@ var/global/list/obj/item/device/pda/PDAs = list()
|
|||||||
var/datum/effect/effect/system/smoke_spread/chem/S = new /datum/effect/effect/system/smoke_spread/chem
|
var/datum/effect/effect/system/smoke_spread/chem/S = new /datum/effect/effect/system/smoke_spread/chem
|
||||||
S.attach(P.loc)
|
S.attach(P.loc)
|
||||||
S.set_up(P, 10, 0, P.loc)
|
S.set_up(P, 10, 0, P.loc)
|
||||||
playsound(P.loc, 'sound/effects/smoke.ogg', 50, 1, -3)
|
playsound(P, 'sound/effects/smoke.ogg', 50, 1, -3)
|
||||||
S.start()
|
S.start()
|
||||||
message += "Large clouds of smoke billow forth from your [P]!"
|
message += "Large clouds of smoke billow forth from your [P]!"
|
||||||
if(i>=40 && i<=45) //Bad smoke
|
if(i>=40 && i<=45) //Bad smoke
|
||||||
var/datum/effect/effect/system/smoke_spread/bad/B = new /datum/effect/effect/system/smoke_spread/bad
|
var/datum/effect/effect/system/smoke_spread/bad/B = new /datum/effect/effect/system/smoke_spread/bad
|
||||||
B.attach(P.loc)
|
B.attach(P.loc)
|
||||||
B.set_up(P, 10, 0, P.loc)
|
B.set_up(P, 10, 0, P.loc)
|
||||||
playsound(P.loc, 'sound/effects/smoke.ogg', 50, 1, -3)
|
playsound(P, 'sound/effects/smoke.ogg', 50, 1, -3)
|
||||||
B.start()
|
B.start()
|
||||||
message += "Large clouds of noxious smoke billow forth from your [P]!"
|
message += "Large clouds of noxious smoke billow forth from your [P]!"
|
||||||
if(i>=65 && i<=75) //Weaken
|
if(i>=65 && i<=75) //Weaken
|
||||||
@@ -1064,7 +1064,7 @@ var/global/list/obj/item/device/pda/PDAs = list()
|
|||||||
var/mob/M = loc
|
var/mob/M = loc
|
||||||
M.put_in_hands(id)
|
M.put_in_hands(id)
|
||||||
to_chat(usr, "<span class='notice'>You remove the ID from the [name].</span>")
|
to_chat(usr, "<span class='notice'>You remove the ID from the [name].</span>")
|
||||||
playsound(loc, 'sound/machines/id_swipe.ogg', 100, 1)
|
playsound(src, 'sound/machines/id_swipe.ogg', 100, 1)
|
||||||
else
|
else
|
||||||
id.loc = get_turf(src)
|
id.loc = get_turf(src)
|
||||||
id = null
|
id = null
|
||||||
@@ -1151,7 +1151,7 @@ var/global/list/obj/item/device/pda/PDAs = list()
|
|||||||
|
|
||||||
/obj/item/device/pda/proc/new_info(var/beep_silent, var/message_tone, var/reception_message)
|
/obj/item/device/pda/proc/new_info(var/beep_silent, var/message_tone, var/reception_message)
|
||||||
if (!beep_silent)
|
if (!beep_silent)
|
||||||
playsound(loc, 'sound/machines/twobeep.ogg', 50, 1)
|
playsound(src, 'sound/machines/twobeep.ogg', 50, 1)
|
||||||
for (var/mob/O in hearers(2, loc))
|
for (var/mob/O in hearers(2, loc))
|
||||||
O.show_message(text("[bicon(src)] *[message_tone]*"))
|
O.show_message(text("[bicon(src)] *[message_tone]*"))
|
||||||
//Search for holder of the PDA.
|
//Search for holder of the PDA.
|
||||||
@@ -1280,7 +1280,7 @@ var/global/list/obj/item/device/pda/PDAs = list()
|
|||||||
if (cartridge.radio)
|
if (cartridge.radio)
|
||||||
cartridge.radio.hostpda = null
|
cartridge.radio.hostpda = null
|
||||||
to_chat(usr, "<span class='notice'>You remove \the [cartridge] from the [name].</span>")
|
to_chat(usr, "<span class='notice'>You remove \the [cartridge] from the [name].</span>")
|
||||||
playsound(loc, 'sound/machines/id_swipe.ogg', 100, 1)
|
playsound(src, 'sound/machines/id_swipe.ogg', 100, 1)
|
||||||
cartridge = null
|
cartridge = null
|
||||||
|
|
||||||
/obj/item/device/pda/proc/id_check(mob/user as mob, choice as num)//To check for IDs; 1 for in-pda use, 2 for out of pda use.
|
/obj/item/device/pda/proc/id_check(mob/user as mob, choice as num)//To check for IDs; 1 for in-pda use, 2 for out of pda use.
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
if(!proximity) return
|
if(!proximity) return
|
||||||
if(!active_dummy)
|
if(!active_dummy)
|
||||||
if(istype(target,/obj/item) && !istype(target, /obj/item/weapon/disk/nuclear))
|
if(istype(target,/obj/item) && !istype(target, /obj/item/weapon/disk/nuclear))
|
||||||
playsound(get_turf(src), 'sound/weapons/flash.ogg', 100, 1, -6)
|
playsound(src, 'sound/weapons/flash.ogg', 100, 1, -6)
|
||||||
to_chat(user, "<span class='notice'>Scanned [target].</span>")
|
to_chat(user, "<span class='notice'>Scanned [target].</span>")
|
||||||
saved_item = target.type
|
saved_item = target.type
|
||||||
saved_icon = target.icon
|
saved_icon = target.icon
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
if(!can_use || !saved_item) return
|
if(!can_use || !saved_item) return
|
||||||
if(active_dummy)
|
if(active_dummy)
|
||||||
eject_all()
|
eject_all()
|
||||||
playsound(get_turf(src), 'sound/effects/pop.ogg', 100, 1, -6)
|
playsound(src, 'sound/effects/pop.ogg', 100, 1, -6)
|
||||||
qdel(active_dummy)
|
qdel(active_dummy)
|
||||||
active_dummy = null
|
active_dummy = null
|
||||||
to_chat(usr, "<span class='notice'>You deactivate the [src].</span>")
|
to_chat(usr, "<span class='notice'>You deactivate the [src].</span>")
|
||||||
@@ -51,7 +51,7 @@
|
|||||||
flick("emppulse",T)
|
flick("emppulse",T)
|
||||||
spawn(8) qdel(T)
|
spawn(8) qdel(T)
|
||||||
else
|
else
|
||||||
playsound(get_turf(src), 'sound/effects/pop.ogg', 100, 1, -6)
|
playsound(src, 'sound/effects/pop.ogg', 100, 1, -6)
|
||||||
var/obj/O = new saved_item(src)
|
var/obj/O = new saved_item(src)
|
||||||
if(!O) return
|
if(!O) return
|
||||||
var/obj/effect/dummy/chameleon/C = new /obj/effect/dummy/chameleon(usr.loc)
|
var/obj/effect/dummy/chameleon/C = new /obj/effect/dummy/chameleon(usr.loc)
|
||||||
|
|||||||
@@ -76,7 +76,7 @@
|
|||||||
return
|
return
|
||||||
|
|
||||||
if(ringer)
|
if(ringer)
|
||||||
playsound(loc, 'sound/machines/twobeep.ogg', 50, 1)
|
playsound(src, 'sound/machines/twobeep.ogg', 50, 1)
|
||||||
for (var/mob/O in hearers(2, loc))
|
for (var/mob/O in hearers(2, loc))
|
||||||
O.show_message(text("[bicon(src)] *beep*"))
|
O.show_message(text("[bicon(src)] *beep*"))
|
||||||
|
|
||||||
|
|||||||
@@ -161,7 +161,7 @@
|
|||||||
voice_requests |= candidate
|
voice_requests |= candidate
|
||||||
|
|
||||||
if(ringer)
|
if(ringer)
|
||||||
playsound(loc, 'sound/machines/twobeep.ogg', 50, 1)
|
playsound(src, 'sound/machines/twobeep.ogg', 50, 1)
|
||||||
for (var/mob/O in hearers(2, loc))
|
for (var/mob/O in hearers(2, loc))
|
||||||
O.show_message(text("[bicon(src)] *beep*"))
|
O.show_message(text("[bicon(src)] *beep*"))
|
||||||
|
|
||||||
|
|||||||
@@ -395,12 +395,12 @@
|
|||||||
if(!do_after(user, 30, H))
|
if(!do_after(user, 30, H))
|
||||||
return
|
return
|
||||||
user.visible_message("<span class='notice'>\The [user] places [src] on [H]'s chest.</span>", "<span class='warning'>You place [src] on [H]'s chest.</span>")
|
user.visible_message("<span class='notice'>\The [user] places [src] on [H]'s chest.</span>", "<span class='warning'>You place [src] on [H]'s chest.</span>")
|
||||||
playsound(get_turf(src), 'sound/machines/defib_charge.ogg', 50, 0)
|
playsound(src, 'sound/machines/defib_charge.ogg', 50, 0)
|
||||||
|
|
||||||
var/error = can_defib(H)
|
var/error = can_defib(H)
|
||||||
if(error)
|
if(error)
|
||||||
make_announcement(error, "warning")
|
make_announcement(error, "warning")
|
||||||
playsound(get_turf(src), 'sound/machines/defib_failed.ogg', 50, 0)
|
playsound(src, 'sound/machines/defib_failed.ogg', 50, 0)
|
||||||
return
|
return
|
||||||
|
|
||||||
if(check_blood_level(H))
|
if(check_blood_level(H))
|
||||||
@@ -413,18 +413,18 @@
|
|||||||
//deduct charge here, in case the base unit was EMPed or something during the delay time
|
//deduct charge here, in case the base unit was EMPed or something during the delay time
|
||||||
if(!checked_use(chargecost))
|
if(!checked_use(chargecost))
|
||||||
make_announcement("buzzes, \"Insufficient charge.\"", "warning")
|
make_announcement("buzzes, \"Insufficient charge.\"", "warning")
|
||||||
playsound(get_turf(src), 'sound/machines/defib_failed.ogg', 50, 0)
|
playsound(src, 'sound/machines/defib_failed.ogg', 50, 0)
|
||||||
return
|
return
|
||||||
|
|
||||||
H.visible_message("<span class='warning'>\The [H]'s body convulses a bit.</span>")
|
H.visible_message("<span class='warning'>\The [H]'s body convulses a bit.</span>")
|
||||||
playsound(get_turf(src), "bodyfall", 50, 1)
|
playsound(src, "bodyfall", 50, 1)
|
||||||
playsound(get_turf(src), 'sound/machines/defib_zap.ogg', 50, 1, -1)
|
playsound(src, 'sound/machines/defib_zap.ogg', 50, 1, -1)
|
||||||
set_cooldown(cooldowntime)
|
set_cooldown(cooldowntime)
|
||||||
|
|
||||||
error = can_revive(H)
|
error = can_revive(H)
|
||||||
if(error)
|
if(error)
|
||||||
make_announcement(error, "warning")
|
make_announcement(error, "warning")
|
||||||
playsound(get_turf(src), 'sound/machines/defib_failed.ogg', 50, 0)
|
playsound(src, 'sound/machines/defib_failed.ogg', 50, 0)
|
||||||
return
|
return
|
||||||
|
|
||||||
H.apply_damage(burn_damage_amt, BURN, BP_TORSO)
|
H.apply_damage(burn_damage_amt, BURN, BP_TORSO)
|
||||||
@@ -438,7 +438,7 @@
|
|||||||
H.adjustToxLoss(-H.getToxLoss())
|
H.adjustToxLoss(-H.getToxLoss())
|
||||||
|
|
||||||
make_announcement("pings, \"Resuscitation successful.\"", "notice")
|
make_announcement("pings, \"Resuscitation successful.\"", "notice")
|
||||||
playsound(get_turf(src), 'sound/machines/defib_success.ogg', 50, 0)
|
playsound(src, 'sound/machines/defib_success.ogg', 50, 0)
|
||||||
|
|
||||||
make_alive(H)
|
make_alive(H)
|
||||||
|
|
||||||
@@ -459,7 +459,7 @@
|
|||||||
to_chat(user, "<span class='warning'>You can't do that while the safety is enabled.</span>")
|
to_chat(user, "<span class='warning'>You can't do that while the safety is enabled.</span>")
|
||||||
return
|
return
|
||||||
|
|
||||||
playsound(get_turf(src), 'sound/machines/defib_charge.ogg', 50, 0)
|
playsound(src, 'sound/machines/defib_charge.ogg', 50, 0)
|
||||||
audible_message("<span class='warning'>\The [src] lets out a steadily rising hum...</span>")
|
audible_message("<span class='warning'>\The [src] lets out a steadily rising hum...</span>")
|
||||||
|
|
||||||
if(!do_after(user, chargetime, H))
|
if(!do_after(user, chargetime, H))
|
||||||
@@ -468,12 +468,12 @@
|
|||||||
//deduct charge here, in case the base unit was EMPed or something during the delay time
|
//deduct charge here, in case the base unit was EMPed or something during the delay time
|
||||||
if(!checked_use(chargecost))
|
if(!checked_use(chargecost))
|
||||||
make_announcement("buzzes, \"Insufficient charge.\"", "warning")
|
make_announcement("buzzes, \"Insufficient charge.\"", "warning")
|
||||||
playsound(get_turf(src), 'sound/machines/defib_failed.ogg', 50, 0)
|
playsound(src, 'sound/machines/defib_failed.ogg', 50, 0)
|
||||||
return
|
return
|
||||||
|
|
||||||
user.visible_message("<span class='danger'><i>\The [user] shocks [H] with \the [src]!</i></span>", "<span class='warning'>You shock [H] with \the [src]!</span>")
|
user.visible_message("<span class='danger'><i>\The [user] shocks [H] with \the [src]!</i></span>", "<span class='warning'>You shock [H] with \the [src]!</span>")
|
||||||
playsound(get_turf(src), 'sound/machines/defib_zap.ogg', 100, 1, -1)
|
playsound(src, 'sound/machines/defib_zap.ogg', 100, 1, -1)
|
||||||
playsound(loc, 'sound/weapons/Egloves.ogg', 100, 1, -1)
|
playsound(src, 'sound/weapons/Egloves.ogg', 100, 1, -1)
|
||||||
set_cooldown(cooldowntime)
|
set_cooldown(cooldowntime)
|
||||||
|
|
||||||
H.stun_effect_act(2, 120, target_zone)
|
H.stun_effect_act(2, 120, target_zone)
|
||||||
@@ -547,10 +547,10 @@
|
|||||||
safety = new_safety
|
safety = new_safety
|
||||||
if(safety)
|
if(safety)
|
||||||
make_announcement("beeps, \"Safety protocols enabled!\"", "notice")
|
make_announcement("beeps, \"Safety protocols enabled!\"", "notice")
|
||||||
playsound(get_turf(src), 'sound/machines/defib_safetyon.ogg', 50, 0)
|
playsound(src, 'sound/machines/defib_safetyon.ogg', 50, 0)
|
||||||
else
|
else
|
||||||
make_announcement("beeps, \"Safety protocols disabled!\"", "warning")
|
make_announcement("beeps, \"Safety protocols disabled!\"", "warning")
|
||||||
playsound(get_turf(src), 'sound/machines/defib_safetyoff.ogg', 50, 0)
|
playsound(src, 'sound/machines/defib_safetyoff.ogg', 50, 0)
|
||||||
update_icon()
|
update_icon()
|
||||||
..()
|
..()
|
||||||
|
|
||||||
|
|||||||
@@ -48,7 +48,7 @@
|
|||||||
user.visible_message("<span class='notice'>\The [user] successfully repairs \the [src]!</span>")
|
user.visible_message("<span class='notice'>\The [user] successfully repairs \the [src]!</span>")
|
||||||
broken = FALSE
|
broken = FALSE
|
||||||
update_icon()
|
update_icon()
|
||||||
playsound(src.loc, W.usesound, 50, 1)
|
playsound(src, W.usesound, 50, 1)
|
||||||
else
|
else
|
||||||
user.visible_message("<span class='notice'>\The [user] fails to repair \the [src].</span>")
|
user.visible_message("<span class='notice'>\The [user] fails to repair \the [src].</span>")
|
||||||
repairing = FALSE
|
repairing = FALSE
|
||||||
@@ -138,7 +138,7 @@
|
|||||||
if(user)
|
if(user)
|
||||||
update_icon()
|
update_icon()
|
||||||
to_chat(user, "<span class='warning'><i>click</i></span>")
|
to_chat(user, "<span class='warning'><i>click</i></span>")
|
||||||
playsound(src.loc, 'sound/weapons/empty.ogg', 80, 1)
|
playsound(src, 'sound/weapons/empty.ogg', 80, 1)
|
||||||
return FALSE
|
return FALSE
|
||||||
else if(battery && battery.checked_use(charge_cost + (round(charge_cost / 4) * max(0, times_used - max_flashes)))) // Using over your maximum flashes starts taking more charge per added flash.
|
else if(battery && battery.checked_use(charge_cost + (round(charge_cost / 4) * max(0, times_used - max_flashes)))) // Using over your maximum flashes starts taking more charge per added flash.
|
||||||
times_used++
|
times_used++
|
||||||
@@ -164,7 +164,7 @@
|
|||||||
if(!check_capacitor(user))
|
if(!check_capacitor(user))
|
||||||
return
|
return
|
||||||
|
|
||||||
playsound(src.loc, 'sound/weapons/flash.ogg', 100, 1)
|
playsound(src, 'sound/weapons/flash.ogg', 100, 1)
|
||||||
var/flashfail = 0
|
var/flashfail = 0
|
||||||
|
|
||||||
//VOREStation Add - NIF
|
//VOREStation Add - NIF
|
||||||
@@ -253,7 +253,7 @@
|
|||||||
if(!check_capacitor(user))
|
if(!check_capacitor(user))
|
||||||
return
|
return
|
||||||
|
|
||||||
playsound(src.loc, 'sound/weapons/flash.ogg', 100, 1)
|
playsound(src, 'sound/weapons/flash.ogg', 100, 1)
|
||||||
flick("flash2", src)
|
flick("flash2", src)
|
||||||
if(user && isrobot(user))
|
if(user && isrobot(user))
|
||||||
spawn(0)
|
spawn(0)
|
||||||
|
|||||||
@@ -60,7 +60,7 @@
|
|||||||
if(cell.use(power_usage) != power_usage) // we weren't able to use our full power_usage amount!
|
if(cell.use(power_usage) != power_usage) // we weren't able to use our full power_usage amount!
|
||||||
visible_message("<span class='warning'>\The [src] flickers before going dull.</span>")
|
visible_message("<span class='warning'>\The [src] flickers before going dull.</span>")
|
||||||
set_light(0)
|
set_light(0)
|
||||||
playsound(src.loc, 'sound/effects/sparks3.ogg', 10, 1, -3) //Small cue that your light went dull in your pocket.
|
playsound(src, 'sound/effects/sparks3.ogg', 10, 1, -3) //Small cue that your light went dull in your pocket.
|
||||||
on = 0
|
on = 0
|
||||||
update_icon()
|
update_icon()
|
||||||
return PROCESS_KILL
|
return PROCESS_KILL
|
||||||
@@ -109,7 +109,7 @@
|
|||||||
START_PROCESSING(SSobj, src)
|
START_PROCESSING(SSobj, src)
|
||||||
else if(power_use)
|
else if(power_use)
|
||||||
STOP_PROCESSING(SSobj, src)
|
STOP_PROCESSING(SSobj, src)
|
||||||
playsound(src.loc, 'sound/weapons/empty.ogg', 15, 1, -3)
|
playsound(src, 'sound/weapons/empty.ogg', 15, 1, -3)
|
||||||
update_icon()
|
update_icon()
|
||||||
user.update_action_buttons()
|
user.update_action_buttons()
|
||||||
return 1
|
return 1
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
/obj/item/device/multitool/hacktool/attackby(var/obj/item/W, var/mob/user)
|
/obj/item/device/multitool/hacktool/attackby(var/obj/item/W, var/mob/user)
|
||||||
if(W.is_screwdriver())
|
if(W.is_screwdriver())
|
||||||
in_hack_mode = !in_hack_mode
|
in_hack_mode = !in_hack_mode
|
||||||
playsound(src.loc, W.usesound, 50, 1)
|
playsound(src, W.usesound, 50, 1)
|
||||||
else
|
else
|
||||||
..()
|
..()
|
||||||
|
|
||||||
|
|||||||
@@ -96,7 +96,7 @@
|
|||||||
new_bulbs += AddShards(1)
|
new_bulbs += AddShards(1)
|
||||||
qdel(L)
|
qdel(L)
|
||||||
if(new_bulbs != 0)
|
if(new_bulbs != 0)
|
||||||
playsound(src.loc, 'sound/machines/ding.ogg', 50, 1)
|
playsound(src, 'sound/machines/ding.ogg', 50, 1)
|
||||||
to_chat(user, "You insert \the [L.name] into \the [src.name]. You have [uses] light\s remaining.")
|
to_chat(user, "You insert \the [L.name] into \the [src.name]. You have [uses] light\s remaining.")
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -148,7 +148,7 @@
|
|||||||
|
|
||||||
/obj/item/device/lightreplacer/proc/Use(var/mob/user)
|
/obj/item/device/lightreplacer/proc/Use(var/mob/user)
|
||||||
|
|
||||||
playsound(src.loc, 'sound/machines/click.ogg', 50, 1)
|
playsound(src, 'sound/machines/click.ogg', 50, 1)
|
||||||
add_uses(-1)
|
add_uses(-1)
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
@@ -182,7 +182,7 @@
|
|||||||
var/new_bulbs = AddShards(1)
|
var/new_bulbs = AddShards(1)
|
||||||
if(new_bulbs != 0)
|
if(new_bulbs != 0)
|
||||||
to_chat(U, "<span class='notice'>\The [src] has fabricated a new bulb from the broken bulbs it has stored. It now has [uses] uses.</span>")
|
to_chat(U, "<span class='notice'>\The [src] has fabricated a new bulb from the broken bulbs it has stored. It now has [uses] uses.</span>")
|
||||||
playsound(src.loc, 'sound/machines/ding.ogg', 50, 1)
|
playsound(src, 'sound/machines/ding.ogg', 50, 1)
|
||||||
target.status = LIGHT_EMPTY
|
target.status = LIGHT_EMPTY
|
||||||
target.update()
|
target.update()
|
||||||
|
|
||||||
@@ -211,7 +211,7 @@
|
|||||||
|
|
||||||
/obj/item/device/lightreplacer/emag_act(var/remaining_charges, var/mob/user)
|
/obj/item/device/lightreplacer/emag_act(var/remaining_charges, var/mob/user)
|
||||||
emagged = !emagged
|
emagged = !emagged
|
||||||
playsound(src.loc, "sparks", 100, 1)
|
playsound(src, "sparks", 100, 1)
|
||||||
update_icon()
|
update_icon()
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
|
|||||||
@@ -134,7 +134,7 @@
|
|||||||
user.audible_message("<B>[user.GetVoice()]</B>[user.GetAltName()] broadcasts, <FONT size=[broadcast_size] face='[broadcast_font]' color='[broadcast_color]'>\"[pick(insultmsg)]\"</FONT>")
|
user.audible_message("<B>[user.GetVoice()]</B>[user.GetAltName()] broadcasts, <FONT size=[broadcast_size] face='[broadcast_font]' color='[broadcast_color]'>\"[pick(insultmsg)]\"</FONT>")
|
||||||
if(broadcast_size >= 11)
|
if(broadcast_size >= 11)
|
||||||
var/turf/T = get_turf(user)
|
var/turf/T = get_turf(user)
|
||||||
playsound(T, 'sound/items/AirHorn.ogg', 100, 1)
|
playsound(src, 'sound/items/AirHorn.ogg', 100, 1)
|
||||||
for(var/mob/living/carbon/M in oviewers(4, T))
|
for(var/mob/living/carbon/M in oviewers(4, T))
|
||||||
if(M.get_ear_protection() >= 2)
|
if(M.get_ear_protection() >= 2)
|
||||||
continue
|
continue
|
||||||
|
|||||||
@@ -47,7 +47,7 @@
|
|||||||
to_chat(user, "<span class='warning'>[O] must be safely placed on the ground for modification.</span>")
|
to_chat(user, "<span class='warning'>[O] must be safely placed on the ground for modification.</span>")
|
||||||
return
|
return
|
||||||
|
|
||||||
playsound(src.loc, O.usesound, 100, 1)
|
playsound(src, O.usesound, 100, 1)
|
||||||
|
|
||||||
user.visible_message("<span class='notice'>\The [user] opens \the [src] and modifies \the [O].</span>","<span class='notice'>You open \the [src] and modify \the [O].</span>")
|
user.visible_message("<span class='notice'>\The [user] opens \the [src] and modifies \the [O].</span>","<span class='notice'>You open \the [src] and modify \the [O].</span>")
|
||||||
|
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ effective or pretty fucking useless.
|
|||||||
|
|
||||||
add_attack_logs(user,affected,"Used a [name]")
|
add_attack_logs(user,affected,"Used a [name]")
|
||||||
|
|
||||||
playsound(src.loc, 'sound/misc/interference.ogg', 50, 1)
|
playsound(src, 'sound/misc/interference.ogg', 50, 1)
|
||||||
to_chat(user, "<span class='notice'>You trigger [src].</span>")
|
to_chat(user, "<span class='notice'>You trigger [src].</span>")
|
||||||
times_used += 1
|
times_used += 1
|
||||||
if(times_used >= max_uses)
|
if(times_used >= max_uses)
|
||||||
|
|||||||
@@ -506,7 +506,7 @@ GLOBAL_LIST_BOILERPLATE(premade_tele_beacons, /obj/item/device/perfect_tele_beac
|
|||||||
while(recharging)
|
while(recharging)
|
||||||
if(!do_after(user, 10, src))
|
if(!do_after(user, 10, src))
|
||||||
break
|
break
|
||||||
playsound(get_turf(src),'sound/items/change_drill.ogg',25,1)
|
playsound(src,'sound/items/change_drill.ogg',25,1)
|
||||||
if(power_source.give(phase_power) < phase_power)
|
if(power_source.give(phase_power) < phase_power)
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|||||||
@@ -32,11 +32,11 @@
|
|||||||
return
|
return
|
||||||
|
|
||||||
if(isnull(insults))
|
if(isnull(insults))
|
||||||
playsound(get_turf(src), 'sound/voice/halt.ogg', 100, 1, vary = 0)
|
playsound(src, 'sound/voice/halt.ogg', 100, 1, vary = 0)
|
||||||
user.audible_message("<span class='warning'>[user]'s [name] rasps, \"[use_message]\"</span>", "<span class='warning'>\The [user] holds up \the [name].</span>")
|
user.audible_message("<span class='warning'>[user]'s [name] rasps, \"[use_message]\"</span>", "<span class='warning'>\The [user] holds up \the [name].</span>")
|
||||||
else
|
else
|
||||||
if(insults > 0)
|
if(insults > 0)
|
||||||
playsound(get_turf(src), 'sound/voice/binsult.ogg', 100, 1, vary = 0)
|
playsound(src, 'sound/voice/binsult.ogg', 100, 1, vary = 0)
|
||||||
// Yes, it used to show the transcription of the sound clip. That was a) inaccurate b) immature as shit.
|
// Yes, it used to show the transcription of the sound clip. That was a) inaccurate b) immature as shit.
|
||||||
user.audible_message("<span class='warning'>[user]'s [name] gurgles something indecipherable and deeply offensive.</span>", "<span class='warning'>\The [user] holds up \the [name].</span>")
|
user.audible_message("<span class='warning'>[user]'s [name] gurgles something indecipherable and deeply offensive.</span>", "<span class='warning'>\The [user] holds up \the [name].</span>")
|
||||||
insults--
|
insults--
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
for(var/mob/living/M in oviewers(3, src))
|
for(var/mob/living/M in oviewers(3, src))
|
||||||
shake_camera(M, 2, 2)
|
shake_camera(M, 2, 2)
|
||||||
|
|
||||||
playsound(loc, 'sound/effects/meteorimpact.ogg', 50, 1)
|
playsound(src, 'sound/effects/meteorimpact.ogg', 50, 1)
|
||||||
density = initial(density)
|
density = initial(density)
|
||||||
opacity = initial(opacity)
|
opacity = initial(opacity)
|
||||||
plane = initial(plane)
|
plane = initial(plane)
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
/obj/item/device/kit/proc/use(var/amt, var/mob/user)
|
/obj/item/device/kit/proc/use(var/amt, var/mob/user)
|
||||||
uses -= amt
|
uses -= amt
|
||||||
playsound(get_turf(user), 'sound/items/Screwdriver.ogg', 50, 1)
|
playsound(src, 'sound/items/Screwdriver.ogg', 50, 1)
|
||||||
if(uses<1)
|
if(uses<1)
|
||||||
user.drop_item()
|
user.drop_item()
|
||||||
qdel(src)
|
qdel(src)
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ var/list/marker_beacon_colors = list(
|
|||||||
return
|
return
|
||||||
if(use(1))
|
if(use(1))
|
||||||
to_chat(user, "<span class='notice'>You activate and anchor [amount ? "a":"the"] [singular_name] in place.</span>")
|
to_chat(user, "<span class='notice'>You activate and anchor [amount ? "a":"the"] [singular_name] in place.</span>")
|
||||||
playsound(user, 'sound/machines/click.ogg', 50, 1)
|
playsound(src, 'sound/machines/click.ogg', 50, 1)
|
||||||
var/obj/structure/marker_beacon/M = new(user.loc, picked_color)
|
var/obj/structure/marker_beacon/M = new(user.loc, picked_color)
|
||||||
transfer_fingerprints_to(M)
|
transfer_fingerprints_to(M)
|
||||||
|
|
||||||
|
|||||||
@@ -181,7 +181,7 @@
|
|||||||
bullets--
|
bullets--
|
||||||
D.icon_state = "foamdart"
|
D.icon_state = "foamdart"
|
||||||
D.name = "foam dart"
|
D.name = "foam dart"
|
||||||
playsound(user.loc, 'sound/items/syringeproj.ogg', 50, 1)
|
playsound(src, 'sound/items/syringeproj.ogg', 50, 1)
|
||||||
|
|
||||||
for(var/i=0, i<6, i++)
|
for(var/i=0, i<6, i++)
|
||||||
if (D)
|
if (D)
|
||||||
@@ -229,7 +229,7 @@
|
|||||||
O.show_message(text("<span class='danger'>\The [] casually lines up a shot with []'s head and pulls the trigger!</span>", user, M), 1, "<span class='warning'>You hear the sound of foam against skull</span>", 2)
|
O.show_message(text("<span class='danger'>\The [] casually lines up a shot with []'s head and pulls the trigger!</span>", user, M), 1, "<span class='warning'>You hear the sound of foam against skull</span>", 2)
|
||||||
O.show_message(text("<span class='warning'>\The [] was hit in the head by the foam dart!</span>", M), 1)
|
O.show_message(text("<span class='warning'>\The [] was hit in the head by the foam dart!</span>", M), 1)
|
||||||
|
|
||||||
playsound(user.loc, 'sound/items/syringeproj.ogg', 50, 1)
|
playsound(src, 'sound/items/syringeproj.ogg', 50, 1)
|
||||||
new /obj/item/toy/ammo/crossbow(M.loc)
|
new /obj/item/toy/ammo/crossbow(M.loc)
|
||||||
src.bullets--
|
src.bullets--
|
||||||
else if (M.lying && src.bullets == 0)
|
else if (M.lying && src.bullets == 0)
|
||||||
@@ -278,12 +278,12 @@
|
|||||||
src.active = !( src.active )
|
src.active = !( src.active )
|
||||||
if (src.active)
|
if (src.active)
|
||||||
to_chat(user, "<span class='notice'>You extend the plastic blade with a quick flick of your wrist.</span>")
|
to_chat(user, "<span class='notice'>You extend the plastic blade with a quick flick of your wrist.</span>")
|
||||||
playsound(user, 'sound/weapons/saberon.ogg', 50, 1)
|
playsound(src, 'sound/weapons/saberon.ogg', 50, 1)
|
||||||
src.item_state = "[icon_state]_blade"
|
src.item_state = "[icon_state]_blade"
|
||||||
src.w_class = ITEMSIZE_LARGE
|
src.w_class = ITEMSIZE_LARGE
|
||||||
else
|
else
|
||||||
to_chat(user, "<span class='notice'>You push the plastic blade back down into the handle.</span>")
|
to_chat(user, "<span class='notice'>You push the plastic blade back down into the handle.</span>")
|
||||||
playsound(user, 'sound/weapons/saberoff.ogg', 50, 1)
|
playsound(src, 'sound/weapons/saberoff.ogg', 50, 1)
|
||||||
src.item_state = "[icon_state]"
|
src.item_state = "[icon_state]"
|
||||||
src.w_class = ITEMSIZE_SMALL
|
src.w_class = ITEMSIZE_SMALL
|
||||||
update_icon()
|
update_icon()
|
||||||
@@ -397,7 +397,7 @@
|
|||||||
/obj/item/toy/bosunwhistle/attack_self(mob/user as mob)
|
/obj/item/toy/bosunwhistle/attack_self(mob/user as mob)
|
||||||
if(cooldown < world.time - 35)
|
if(cooldown < world.time - 35)
|
||||||
to_chat(user, "<span class='notice'>You blow on [src], creating an ear-splitting noise!</span>")
|
to_chat(user, "<span class='notice'>You blow on [src], creating an ear-splitting noise!</span>")
|
||||||
playsound(user, 'sound/misc/boatswain.ogg', 20, 1)
|
playsound(src, 'sound/misc/boatswain.ogg', 20, 1)
|
||||||
cooldown = world.time
|
cooldown = world.time
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -413,14 +413,14 @@
|
|||||||
/obj/item/toy/prize/attack_self(mob/user as mob)
|
/obj/item/toy/prize/attack_self(mob/user as mob)
|
||||||
if(cooldown < world.time - 8)
|
if(cooldown < world.time - 8)
|
||||||
to_chat(user, "<span class='notice'>You play with [src].</span>")
|
to_chat(user, "<span class='notice'>You play with [src].</span>")
|
||||||
playsound(user, 'sound/mecha/mechstep.ogg', 20, 1)
|
playsound(src, 'sound/mecha/mechstep.ogg', 20, 1)
|
||||||
cooldown = world.time
|
cooldown = world.time
|
||||||
|
|
||||||
/obj/item/toy/prize/attack_hand(mob/user as mob)
|
/obj/item/toy/prize/attack_hand(mob/user as mob)
|
||||||
if(loc == user)
|
if(loc == user)
|
||||||
if(cooldown < world.time - 8)
|
if(cooldown < world.time - 8)
|
||||||
to_chat(user, "<span class='notice'>You play with [src].</span>")
|
to_chat(user, "<span class='notice'>You play with [src].</span>")
|
||||||
playsound(user, 'sound/mecha/mechturn.ogg', 20, 1)
|
playsound(src, 'sound/mecha/mechturn.ogg', 20, 1)
|
||||||
cooldown = world.time
|
cooldown = world.time
|
||||||
return
|
return
|
||||||
..()
|
..()
|
||||||
@@ -499,7 +499,7 @@
|
|||||||
if(cooldown < world.time)
|
if(cooldown < world.time)
|
||||||
cooldown = (world.time + 30) //3 second cooldown
|
cooldown = (world.time + 30) //3 second cooldown
|
||||||
user.visible_message("<span class='notice'>The [src] says \"[toysay]\".</span>")
|
user.visible_message("<span class='notice'>The [src] says \"[toysay]\".</span>")
|
||||||
playsound(user, 'sound/machines/click.ogg', 20, 1)
|
playsound(src, 'sound/machines/click.ogg', 20, 1)
|
||||||
|
|
||||||
/obj/item/toy/figure/cmo
|
/obj/item/toy/figure/cmo
|
||||||
name = "Chief Medical Officer action figure"
|
name = "Chief Medical Officer action figure"
|
||||||
@@ -753,12 +753,12 @@
|
|||||||
|
|
||||||
// Attack mob
|
// Attack mob
|
||||||
/obj/item/toy/plushie/carp/attack(mob/M as mob, mob/user as mob)
|
/obj/item/toy/plushie/carp/attack(mob/M as mob, mob/user as mob)
|
||||||
playsound(loc, bitesound, 20, 1) // Play bite sound in local area
|
playsound(src, bitesound, 20, 1) // Play bite sound in local area
|
||||||
return ..()
|
return ..()
|
||||||
|
|
||||||
// Attack self
|
// Attack self
|
||||||
/obj/item/toy/plushie/carp/attack_self(mob/user as mob)
|
/obj/item/toy/plushie/carp/attack_self(mob/user as mob)
|
||||||
playsound(src.loc, bitesound, 20, 1)
|
playsound(src, bitesound, 20, 1)
|
||||||
return ..()
|
return ..()
|
||||||
|
|
||||||
|
|
||||||
@@ -1371,7 +1371,7 @@
|
|||||||
if(!cooldown) //for the sanity of everyone
|
if(!cooldown) //for the sanity of everyone
|
||||||
var/message = generate_ion_law()
|
var/message = generate_ion_law()
|
||||||
to_chat(user, "<span class='notice'>You press the button on [src].</span>")
|
to_chat(user, "<span class='notice'>You press the button on [src].</span>")
|
||||||
playsound(user, 'sound/machines/click.ogg', 20, 1)
|
playsound(src, 'sound/machines/click.ogg', 20, 1)
|
||||||
visible_message("<span class='danger'>[message]</span>")
|
visible_message("<span class='danger'>[message]</span>")
|
||||||
cooldown = 1
|
cooldown = 1
|
||||||
spawn(30) cooldown = 0
|
spawn(30) cooldown = 0
|
||||||
@@ -1390,7 +1390,7 @@
|
|||||||
if(!cooldown) //for the sanity of everyone
|
if(!cooldown) //for the sanity of everyone
|
||||||
var/message = pick("You won't get away this time, Griffin!", "Stop right there, criminal!", "Hoot! Hoot!", "I am the night!")
|
var/message = pick("You won't get away this time, Griffin!", "Stop right there, criminal!", "Hoot! Hoot!", "I am the night!")
|
||||||
to_chat(user, "<span class='notice'>You pull the string on the [src].</span>")
|
to_chat(user, "<span class='notice'>You pull the string on the [src].</span>")
|
||||||
//playsound(user, 'sound/misc/hoot.ogg', 25, 1)
|
//playsound(src, 'sound/misc/hoot.ogg', 25, 1)
|
||||||
visible_message("<span class='danger'>[message]</span>")
|
visible_message("<span class='danger'>[message]</span>")
|
||||||
cooldown = 1
|
cooldown = 1
|
||||||
spawn(30) cooldown = 0
|
spawn(30) cooldown = 0
|
||||||
@@ -1409,7 +1409,7 @@
|
|||||||
if(!cooldown) //for the sanity of everyone
|
if(!cooldown) //for the sanity of everyone
|
||||||
var/message = pick("You can't stop me, Owl!", "My plan is flawless! The vault is mine!", "Caaaawwww!", "You will never catch me!")
|
var/message = pick("You can't stop me, Owl!", "My plan is flawless! The vault is mine!", "Caaaawwww!", "You will never catch me!")
|
||||||
to_chat(user, "<span class='notice'>You pull the string on the [src].</span>")
|
to_chat(user, "<span class='notice'>You pull the string on the [src].</span>")
|
||||||
//playsound(user, 'sound/misc/caw.ogg', 25, 1)
|
//playsound(src, 'sound/misc/caw.ogg', 25, 1)
|
||||||
visible_message("<span class='danger'>[message]</span>")
|
visible_message("<span class='danger'>[message]</span>")
|
||||||
cooldown = 1
|
cooldown = 1
|
||||||
spawn(30) cooldown = 0
|
spawn(30) cooldown = 0
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
if(ishuman(M))
|
if(ishuman(M))
|
||||||
var/mob/living/carbon/human/H = M
|
var/mob/living/carbon/human/H = M
|
||||||
if(H.species.trashcan == 1)
|
if(H.species.trashcan == 1)
|
||||||
playsound(H.loc,'sound/items/eatfood.ogg', rand(10,50), 1)
|
playsound(src,'sound/items/eatfood.ogg', rand(10,50), 1)
|
||||||
user.drop_item()
|
user.drop_item()
|
||||||
forceMove(H.vore_selected)
|
forceMove(H.vore_selected)
|
||||||
to_chat(H, "<span class='notice'>You can taste the flavor of garbage. Wait what?</span>")
|
to_chat(H, "<span class='notice'>You can taste the flavor of garbage. Wait what?</span>")
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
if(isrobot(M))
|
if(isrobot(M))
|
||||||
var/mob/living/silicon/robot/R = M
|
var/mob/living/silicon/robot/R = M
|
||||||
if(R.module.type == /obj/item/weapon/robot_module/robot/scrubpup) // You can now feed the trash borg yay.
|
if(R.module.type == /obj/item/weapon/robot_module/robot/scrubpup) // You can now feed the trash borg yay.
|
||||||
playsound(R.loc,'sound/items/eatfood.ogg', rand(10,50), 1)
|
playsound(src,'sound/items/eatfood.ogg', rand(10,50), 1)
|
||||||
user.drop_item()
|
user.drop_item()
|
||||||
forceMove(R.vore_selected)
|
forceMove(R.vore_selected)
|
||||||
R.visible_message("<span class='warning'>[user] feeds [R] with [src]!</span>")
|
R.visible_message("<span class='warning'>[user] feeds [R] with [src]!</span>")
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user