From c4ba0874001a252545cc94967415a6cdd0a25c63 Mon Sep 17 00:00:00 2001
From: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com>
Date: Thu, 20 Jun 2024 07:38:18 -0400
Subject: [PATCH] Unwrenching a pressurized pipe you're standing on now flings
you in a random direction (#25878)
* Random Direction Go!
* Better Directions
Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
Signed-off-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com>
---------
Signed-off-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com>
Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
---
code/modules/atmospherics/machinery/atmospherics.dm | 3 +++
1 file changed, 3 insertions(+)
diff --git a/code/modules/atmospherics/machinery/atmospherics.dm b/code/modules/atmospherics/machinery/atmospherics.dm
index 08cd2b0382b..ca4a16fdb83 100644
--- a/code/modules/atmospherics/machinery/atmospherics.dm
+++ b/code/modules/atmospherics/machinery/atmospherics.dm
@@ -260,6 +260,9 @@ Pipelines + Other Objects -> Pipe network
pressures = int_air.return_pressure() - env_air.return_pressure()
var/fuck_you_dir = get_dir(src, user)
+ if(!fuck_you_dir)
+ fuck_you_dir = pick(GLOB.alldirs)
+
var/turf/general_direction = get_edge_target_turf(user, fuck_you_dir)
user.visible_message("[user] is sent flying by pressure!","The pressure sends you flying!")
//Values based on 2*ONE_ATMOS (the unsafe pressure), resulting in 20 range and 4 speed