From bd91e761b1ba0c92f639cf50f10e14468821a153 Mon Sep 17 00:00:00 2001 From: Firq Date: Tue, 4 Apr 2023 20:55:31 +0200 Subject: [PATCH] Smol QoL Changes --- Space Engineers/acd-firqmod.cs | 14 +++++++++++--- Space Engineers/iceMonitoringScript.cs | 8 ++------ 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/Space Engineers/acd-firqmod.cs b/Space Engineers/acd-firqmod.cs index 0851af3..4d7e597 100644 --- a/Space Engineers/acd-firqmod.cs +++ b/Space Engineers/acd-firqmod.cs @@ -2,10 +2,11 @@ * README * ----------- * - * The AutoCloseDoor-script will monitor and after a (configurade) deley automatically clos eht door for you. + * The AutoCloseDoor-script will monitor and (after a configurated delay) automatically close tagged door for you. * It will only monitor doors within the same 'construct' (same "mechanical group", not Connectors) * * Tag a door with [ACD] (including brackets) in its name to have the AutoCloseDoor-script watch it and automatically close if after 3 seconds. + * Addition by Firq: This behavior can be customized below by setting the values of DefaultTimeout and DoorTag accordingly. * * You can also tag it with [ACD 10] to auto-close after 10 seconds (you can write whatever delay you want) * @@ -14,12 +15,19 @@ * This version has been slightly modified by Firq. All credit goes to the original author Ninlin (https://steamcommunity.com/sharedfiles/filedetails/?id=2371860127) */ +/* CUSTOMIZE BEHAVIOR HERE */ + +const int DefaultTimeout = 3; +const string DoorTag = "ACD"; + +/* DO NOT CHANGE ANYTHING BELOW THIS LINE */ + + public Program() { Runtime.UpdateFrequency = UpdateFrequency.Update100; } -const int DefaultTimeout = 3; -const string TAG = "[ACD"; +const string TAG = "[" + DoorTag; readonly int TAGlen = TAG.Length; private Dictionary < string, OpenDoor > openDoors = new Dictionary < string, OpenDoor > (); diff --git a/Space Engineers/iceMonitoringScript.cs b/Space Engineers/iceMonitoringScript.cs index 5562df7..3d60617 100644 --- a/Space Engineers/iceMonitoringScript.cs +++ b/Space Engineers/iceMonitoringScript.cs @@ -1,13 +1,9 @@ -/** CUSTOMIZE HERE -* Set the thresholds here -*/ +/* CUSTOMIZE BEHAVIOR HERE */ const int upperThreshold = 25000000; const int lowerThreshold = 1000000; -/** -* DO NOT CHANGE ANYTHING BELOW THIS LINE -*/ +/* DO NOT CHANGE ANYTHING BELOW THIS LINE */ string collectorState = "";