mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
fixing bugs
This commit is contained in:
@@ -252,6 +252,7 @@
|
|||||||
return
|
return
|
||||||
*/
|
*/
|
||||||
/obj/machinery/teleport/hub/Crossed(AM as mob|obj)
|
/obj/machinery/teleport/hub/Crossed(AM as mob|obj)
|
||||||
|
if(AM == src) return//DUH
|
||||||
if(istype(AM,/obj/item/projectile/beam))
|
if(istype(AM,/obj/item/projectile/beam))
|
||||||
var/obj/item/projectile/beam/B = AM
|
var/obj/item/projectile/beam/B = AM
|
||||||
B.wait = 1
|
B.wait = 1
|
||||||
|
|||||||
@@ -108,7 +108,7 @@
|
|||||||
return
|
return
|
||||||
if(perp.shoes)
|
if(perp.shoes)
|
||||||
var/obj/item/clothing/shoes/S = perp.shoes
|
var/obj/item/clothing/shoes/S = perp.shoes
|
||||||
S.track_blood = Clamp(amount, 0, S.track_blood) //Adding blood to shoes
|
S.track_blood = max(amount,S.track_blood) //Adding blood to shoes
|
||||||
|
|
||||||
if(!blood_overlays[S.type]) //If there isn't a precreated blood overlay make one
|
if(!blood_overlays[S.type]) //If there isn't a precreated blood overlay make one
|
||||||
S.generate_blood_overlay()
|
S.generate_blood_overlay()
|
||||||
|
|||||||
@@ -65,9 +65,9 @@
|
|||||||
if(dist <= round(max_range + world.view - 2, 1))
|
if(dist <= round(max_range + world.view - 2, 1))
|
||||||
if(devastation_range > 0)
|
if(devastation_range > 0)
|
||||||
M.playsound_local(epicenter, get_sfx("explosion"), 100, 1, frequency, falloff = 5) // get_sfx() is so that everyone gets the same sound
|
M.playsound_local(epicenter, get_sfx("explosion"), 100, 1, frequency, falloff = 5) // get_sfx() is so that everyone gets the same sound
|
||||||
|
shake_camera(M, 10, 2)
|
||||||
else
|
else
|
||||||
M.playsound_local(epicenter, get_sfx("explosion_small"), 100, 1, frequency, falloff = 5)
|
M.playsound_local(epicenter, get_sfx("explosion_small"), 100, 1, frequency, falloff = 5)
|
||||||
shake_camera(M, 10, 2)
|
|
||||||
|
|
||||||
//You hear a far explosion if you're outside the blast radius. Small bombs shouldn't be heard all over the station.
|
//You hear a far explosion if you're outside the blast radius. Small bombs shouldn't be heard all over the station.
|
||||||
|
|
||||||
@@ -76,10 +76,10 @@
|
|||||||
far_volume += (dist <= far_dist * 0.5 ? 50 : 0) // add 50 volume if the mob is pretty close to the explosion
|
far_volume += (dist <= far_dist * 0.5 ? 50 : 0) // add 50 volume if the mob is pretty close to the explosion
|
||||||
if(devastation_range > 0)
|
if(devastation_range > 0)
|
||||||
M.playsound_local(epicenter, 'sound/effects/explosionfar.ogg', far_volume, 1, frequency, falloff = 5)
|
M.playsound_local(epicenter, 'sound/effects/explosionfar.ogg', far_volume, 1, frequency, falloff = 5)
|
||||||
|
M << "<span class='warning'>You feel something shake the structure...</span>"
|
||||||
|
shake_camera(M, 4, 1)
|
||||||
else
|
else
|
||||||
M.playsound_local(epicenter, 'sound/effects/explosionsmallfar.ogg', far_volume, 1, frequency, falloff = 5)
|
M.playsound_local(epicenter, 'sound/effects/explosionsmallfar.ogg', far_volume, 1, frequency, falloff = 5)
|
||||||
M << "<span class='warning'>You feel something shake the structure...</span>"
|
|
||||||
shake_camera(M, 4, 1)
|
|
||||||
|
|
||||||
var/close = trange(world.view+round(devastation_range,1), epicenter)
|
var/close = trange(world.view+round(devastation_range,1), epicenter)
|
||||||
//To all distanced mobs play a different sound
|
//To all distanced mobs play a different sound
|
||||||
|
|||||||
@@ -89,6 +89,7 @@
|
|||||||
if(M.CheckSlip() < 1) //No slipping
|
if(M.CheckSlip() < 1) //No slipping
|
||||||
return ..()
|
return ..()
|
||||||
if(M.m_intent == "run")
|
if(M.m_intent == "run")
|
||||||
|
sleep(1)
|
||||||
M.stop_pulling()
|
M.stop_pulling()
|
||||||
step(M, M.dir)
|
step(M, M.dir)
|
||||||
M.visible_message("<span class='warning'>[M] slips on the wet floor!</span>", \
|
M.visible_message("<span class='warning'>[M] slips on the wet floor!</span>", \
|
||||||
@@ -99,6 +100,7 @@
|
|||||||
|
|
||||||
if(2) //Lube
|
if(2) //Lube
|
||||||
M.stop_pulling()
|
M.stop_pulling()
|
||||||
|
sleep(1)
|
||||||
step(M, M.dir)
|
step(M, M.dir)
|
||||||
spawn(1)
|
spawn(1)
|
||||||
step(M, M.dir)
|
step(M, M.dir)
|
||||||
@@ -118,6 +120,7 @@
|
|||||||
if(!M.CheckSlip() < 1) //No slipping
|
if(!M.CheckSlip() < 1) //No slipping
|
||||||
return ..()
|
return ..()
|
||||||
if((M.m_intent == "run") && prob(30))
|
if((M.m_intent == "run") && prob(30))
|
||||||
|
sleep(1)
|
||||||
M.stop_pulling()
|
M.stop_pulling()
|
||||||
step(M, M.dir)
|
step(M, M.dir)
|
||||||
M.visible_message("<span class='warning'>[M] slips on the icy floor!</span>", \
|
M.visible_message("<span class='warning'>[M] slips on the icy floor!</span>", \
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
else
|
else
|
||||||
entry += " - <font color='black'><b>DEAD</b></font>"
|
entry += " - <font color='black'><b>DEAD</b></font>"
|
||||||
else if (isnewplayer(C.mob))
|
else if (isnewplayer(C.mob))
|
||||||
entry += " - <i>Lobby</i>"
|
entry += " - <font color='gray'><i>Lobby</i></font>"
|
||||||
else
|
else
|
||||||
entry += " - <font color='black'><b>DEAD</b></font>"
|
entry += " - <font color='black'><b>DEAD</b></font>"
|
||||||
|
|
||||||
|
|||||||
@@ -502,13 +502,17 @@ Thanks.
|
|||||||
if(animation) T.turf_animation('icons/effects/64x64.dmi',"rejuvinate",-16,0,MOB_LAYER+1,'sound/effects/rejuvinate.ogg')
|
if(animation) T.turf_animation('icons/effects/64x64.dmi',"rejuvinate",-16,0,MOB_LAYER+1,'sound/effects/rejuvinate.ogg')
|
||||||
|
|
||||||
// shut down various types of badness
|
// shut down various types of badness
|
||||||
setToxLoss(0)
|
toxloss = 0
|
||||||
setOxyLoss(0)
|
oxyloss = 0
|
||||||
setCloneLoss(0)
|
cloneloss = 0
|
||||||
setBrainLoss(0)
|
bruteloss = 0
|
||||||
SetParalysis(0)
|
fireloss = 0
|
||||||
SetStunned(0)
|
brainloss = 0
|
||||||
SetWeakened(0)
|
halloss = 0
|
||||||
|
paralysis = 0
|
||||||
|
stunned = 0
|
||||||
|
weakened = 0
|
||||||
|
jitteriness = 0
|
||||||
germ_level = 0
|
germ_level = 0
|
||||||
next_pain_time = 0
|
next_pain_time = 0
|
||||||
traumatic_shock = 0
|
traumatic_shock = 0
|
||||||
|
|||||||
@@ -1289,6 +1289,7 @@ datum
|
|||||||
/obj/item/weapon/reagent_containers/food/snacks/snackbar,
|
/obj/item/weapon/reagent_containers/food/snacks/snackbar,
|
||||||
/obj/item/weapon/reagent_containers/food/snacks/grown,
|
/obj/item/weapon/reagent_containers/food/snacks/grown,
|
||||||
)
|
)
|
||||||
|
blocked += typesof(/obj/item/weapon/reagent_containers/food/snacks/customizable) //silver-slime spawned customizable food is borked
|
||||||
|
|
||||||
var/list/borks = typesof(/obj/item/weapon/reagent_containers/food/snacks) - blocked
|
var/list/borks = typesof(/obj/item/weapon/reagent_containers/food/snacks) - blocked
|
||||||
// BORK BORK BORK
|
// BORK BORK BORK
|
||||||
|
|||||||
Reference in New Issue
Block a user