Makes being thrown into airlocks/doors/machines hurt, mobs can now be thrown over railings. (#15054)

* Makes being thrown into airlocks/doors/machines hurt, mobs can now be thrown over railings.

* Apply suggestions from code review

Co-authored-by: SleepyGemmy <99297919+SleepyGemmy@users.noreply.github.com>

* Update code/game/machinery/machinery.dm

Co-authored-by: SleepyGemmy <99297919+SleepyGemmy@users.noreply.github.com>

Co-authored-by: Matt Atlas <liermattia@gmail.com>
Co-authored-by: SleepyGemmy <99297919+SleepyGemmy@users.noreply.github.com>
This commit is contained in:
Matt Atlas
2022-11-11 01:51:40 +01:00
committed by GitHub
co-authored by SleepyGemmy Matt Atlas
parent 49f340a999
commit 4db452cfa8
10 changed files with 74 additions and 11 deletions
+2 -2
View File
@@ -201,9 +201,9 @@
src.embedded += O
src.verbs += /mob/proc/yank_out_object
/mob/living/proc/turf_collision(var/turf/T, var/speed = THROWFORCE_SPEED_DIVISOR)
/mob/living/proc/turf_collision(var/atom/T, var/speed = THROWFORCE_SPEED_DIVISOR, var/sound_to_play = 'sound/effects/bangtaper.ogg')
visible_message("<span class='danger'>[src] slams into \the [T]!</span>")
playsound(T, 'sound/effects/bangtaper.ogg', 50, 1, 1)//so it plays sounds on the turf instead, makes for awesome carps to hull collision and such
playsound(T, sound_to_play, 50, 1, 1)//so it plays sounds on the turf instead, makes for awesome carps to hull collision and such
apply_damage(speed*5, BRUTE)
/mob/living/proc/near_wall(var/direction,var/distance=1)