mirror of
https://github.com/Aurorastation/Aurora-Old.git
synced 2026-08-27 22:56:17 +01:00
Merge pull request #236 from Aurorastation/development
Update 20AUG2014
This commit is contained in:
@@ -3,10 +3,11 @@
|
||||
// This is only the item, I have some plans on how this could work with minimal file
|
||||
// editing but we will have to see first. Need to decide what it will change on everything too.
|
||||
//
|
||||
// Doors, Buttons, Shutters, Airpumps Injectors
|
||||
|
||||
/obj/item/device/signaltool
|
||||
name = "Signal Modifier"
|
||||
desc = "Used for Stuff." //and here
|
||||
desc = "Used for modifying." //and here
|
||||
icon_state = "multitool"
|
||||
flags = FPRINT | TABLEPASS| CONDUCT //check out
|
||||
force = 5.0
|
||||
@@ -14,23 +15,71 @@
|
||||
throwforce = 5.0
|
||||
throw_range = 15
|
||||
throw_speed = 3
|
||||
desc = "Sound should really make a description for this." //here to
|
||||
desc = "If you have this, it is a mistake." //here to
|
||||
m_amt = 50
|
||||
g_amt = 20
|
||||
origin_tech = "magnets=1;engineering=1"
|
||||
var/setting = null
|
||||
var/id_setting = null
|
||||
var/signal_setting = null
|
||||
var/mode = 0
|
||||
|
||||
attack_self(mob/M as mob)
|
||||
var/prevname = "[setting]"
|
||||
var/str = trim(stripped_input(usr,"New ID tag:","Signal Altering", prevname, MAX_NAME_LEN))
|
||||
if(!str || !length(str) || str==prevname) //cancel
|
||||
usr << "\blue You remove the tag from the [name]"
|
||||
setting = null
|
||||
return
|
||||
switch(alert(usr, "What would you like to do", "[name] Settings", "Set", "Copy", "New",))
|
||||
if("New")
|
||||
change_tool_settings("id")
|
||||
change_tool_settings("freq")
|
||||
mode = 1
|
||||
if("Copy")
|
||||
mode = 0
|
||||
if("Set")
|
||||
mode = 1
|
||||
|
||||
proc/change_ID(var/cur_setting)
|
||||
if(mode)
|
||||
if(!id_setting)
|
||||
usr << "\blue ID removed."
|
||||
return null
|
||||
else
|
||||
usr << "\blue ID changed."
|
||||
return id_setting
|
||||
else
|
||||
usr << "\blue ID copied."
|
||||
id_setting = cur_setting
|
||||
return id_setting
|
||||
|
||||
proc/change_freq(var/cur_setting)
|
||||
if(mode)
|
||||
if(!signal_setting)
|
||||
usr << "\blue signal removed."
|
||||
return null
|
||||
else
|
||||
usr << "\blue signal changed."
|
||||
return signal_setting
|
||||
else
|
||||
usr << "\blue signal copied."
|
||||
signal_setting = cur_setting
|
||||
return signal_setting
|
||||
|
||||
proc/change_tool_settings(var/setting)
|
||||
switch(setting)
|
||||
if("id")
|
||||
id_setting = get_setting(id_setting)
|
||||
if("freq")
|
||||
signal_setting = get_setting(signal_setting)
|
||||
|
||||
proc/get_setting(var/prevname)
|
||||
var/str = trim(stripped_input(usr,"New setting:","Signal Altering", prevname, MAX_NAME_LEN))
|
||||
if(str==prevname)
|
||||
return prevname
|
||||
if(!str || !length(str)) //cancel
|
||||
usr << "\blue You blank the setting from the [name]"
|
||||
return null
|
||||
|
||||
if(length(str) > 50)
|
||||
usr << "\red Text too long."
|
||||
return
|
||||
|
||||
setting = str
|
||||
usr << "\blue You change the tag setting to [setting]"
|
||||
usr << "\blue You change the setting to [str]."
|
||||
return str
|
||||
|
||||
//frequency
|
||||
@@ -1469,4 +1469,5 @@
|
||||
#include "interface\skin.dmf"
|
||||
#include "maps\tgstation2.dmm"
|
||||
#include "Scopes Files\gravitygenerator.dm"
|
||||
#include "Scopes Files\signal_modifier.dm"
|
||||
// END_INCLUDE
|
||||
|
||||
@@ -144,4 +144,12 @@
|
||||
else
|
||||
icon_state = "[i == 1 && istype(loc, /turf/simulated) ? "h" : "" ]exposed"
|
||||
on = 0
|
||||
return
|
||||
return
|
||||
|
||||
attackby(obj/item/weapon/C as obj, mob/user as mob)
|
||||
add_fingerprint(user)
|
||||
if(istype(C, /obj/item/device/signaltool))
|
||||
var/obj/item/device/signaltool/ST = C
|
||||
id = ST.change_ID(id)
|
||||
set_frequency(ST.change_freq(frequency))
|
||||
return
|
||||
@@ -236,7 +236,7 @@ datum/controller/vote
|
||||
mode = vote_type
|
||||
initiator = initiator_key
|
||||
started_time = world.time
|
||||
var/timedifference = world.time - last_vote_time
|
||||
var/timedifference = round((world.time - last_vote_time))
|
||||
var/timedifference_text
|
||||
timedifference_text = time2text(timedifference,"mm:ss")
|
||||
for(var/client/C in admins)
|
||||
|
||||
@@ -1118,7 +1118,7 @@ var/list/all_supply_groups = list("Operations","Security","Hospitality","Enginee
|
||||
|
||||
/datum/supply_packs/atmos_freezer
|
||||
name = "Gas Cooling Unit"
|
||||
contains = list(/obj/machinery/atmospherics/unary/cold_sink/freezer/cargo) //MAKE A FREEZER THAT IS, BY DEFAULT, UNANCHORED!
|
||||
contains = list(/obj/machinery/atmospherics/unary/cold_sink/freezer) //MAKE A FREEZER THAT IS, BY DEFAULT, UNANCHORED!
|
||||
cost = 50
|
||||
containertype = /obj/structure/closet/crate/secure/large //Test if this works ((should))
|
||||
containername = "gas cooling unit crate"
|
||||
@@ -1127,7 +1127,7 @@ var/list/all_supply_groups = list("Operations","Security","Hospitality","Enginee
|
||||
|
||||
/datum/supply_packs/atmos_heater
|
||||
name = "Gas Heating Unit"
|
||||
contains = list(/obj/machinery/atmospherics/unary/heat_reservoir/heater/cargo) //MAKE A COOLER THAT IS, BY DEFAULT, UNANCHORED!
|
||||
contains = list(/obj/machinery/atmospherics/unary/heat_reservoir/heater) //MAKE A COOLER THAT IS, BY DEFAULT, UNANCHORED!
|
||||
cost = 50
|
||||
containertype = /obj/structure/closet/crate/secure/large //Test if this works ((should))
|
||||
containername = "gas heating unit crate"
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
/obj/machinery/atmospherics/unary/cold_sink/freezer/New()
|
||||
..()
|
||||
initialize_directions = dir
|
||||
anchored = 0
|
||||
|
||||
/obj/machinery/atmospherics/unary/cold_sink/freezer/initialize()
|
||||
if(node) return
|
||||
@@ -119,9 +120,6 @@
|
||||
anchored = 0
|
||||
return
|
||||
|
||||
/obj/machinery/atmospherics/unary/cold_sink/freezer/cargo
|
||||
anchored = 0
|
||||
|
||||
/obj/machinery/atmospherics/unary/heat_reservoir/heater
|
||||
name = "gas heating system"
|
||||
icon = 'icons/obj/Cryogenic2.dmi'
|
||||
@@ -135,6 +133,7 @@
|
||||
/obj/machinery/atmospherics/unary/heat_reservoir/heater/New()
|
||||
..()
|
||||
initialize_directions = dir
|
||||
anchored = 0
|
||||
|
||||
/obj/machinery/atmospherics/unary/heat_reservoir/heater/initialize()
|
||||
if(node) return
|
||||
@@ -239,7 +238,4 @@
|
||||
spawn(10)
|
||||
user.visible_message("[user.name] unsecures [src.name] reinforcing bolts from the floor.", "You unsecure [src.name] from the floor.", "You hear a ratchet")
|
||||
anchored = 0
|
||||
return
|
||||
|
||||
/obj/machinery/atmospherics/unary/heat_reservoir/heater/cargo
|
||||
anchored = 0
|
||||
return
|
||||
@@ -133,6 +133,13 @@ obj/machinery/airlock_sensor
|
||||
var/alert = 0
|
||||
var/previousPressure
|
||||
|
||||
attackby(C as obj, mob/user as mob)
|
||||
if(istype(C, /obj/item/device/signaltool))
|
||||
var/obj/item/device/signaltool/ST = C
|
||||
id_tag = ST.change_ID(id_tag)
|
||||
set_frequency(ST.change_freq(frequency))
|
||||
return
|
||||
|
||||
obj/machinery/airlock_sensor/update_icon()
|
||||
if(on)
|
||||
if(alert)
|
||||
@@ -207,6 +214,12 @@ obj/machinery/access_button
|
||||
|
||||
var/on = 1
|
||||
|
||||
attackby(C as obj, mob/user as mob)
|
||||
if(istype(C, /obj/item/device/signaltool))
|
||||
var/obj/item/device/signaltool/ST = C
|
||||
master_tag = ST.change_ID(master_tag)
|
||||
set_frequency(ST.change_freq(frequency))
|
||||
return
|
||||
|
||||
obj/machinery/access_button/update_icon()
|
||||
if(on)
|
||||
|
||||
@@ -74,6 +74,14 @@ obj/machinery/air_sensor
|
||||
if(radio_controller)
|
||||
set_frequency(frequency)
|
||||
|
||||
attackby(var/obj/item/I, mob/user)
|
||||
if(istype(I, /obj/item/device/signaltool))
|
||||
var/obj/item/device/signaltool/ST = I
|
||||
id_tag = ST.change_ID(id_tag)
|
||||
set_frequency(ST.change_freq(frequency))
|
||||
return
|
||||
|
||||
|
||||
obj/machinery/computer/general_air_control
|
||||
icon = 'icons/obj/computer.dmi'
|
||||
icon_state = "tank"
|
||||
|
||||
@@ -10,6 +10,12 @@
|
||||
idle_power_usage = 2
|
||||
active_power_usage = 4
|
||||
|
||||
attackby(obj/item/weapon/C as obj, mob/user as mob)
|
||||
if(istype(C, /obj/item/device/signaltool))
|
||||
var/obj/item/device/signaltool/ST = C
|
||||
id = ST.change_ID(id)
|
||||
return
|
||||
|
||||
/obj/machinery/ignition_switch
|
||||
name = "ignition switch"
|
||||
icon = 'icons/obj/objects.dmi'
|
||||
@@ -22,6 +28,12 @@
|
||||
idle_power_usage = 2
|
||||
active_power_usage = 4
|
||||
|
||||
attackby(obj/item/weapon/C as obj, mob/user as mob)
|
||||
if(istype(C, /obj/item/device/signaltool))
|
||||
var/obj/item/device/signaltool/ST = C
|
||||
id = ST.change_ID(id)
|
||||
return
|
||||
|
||||
/obj/machinery/flasher_button
|
||||
name = "flasher button"
|
||||
desc = "A remote control switch for a mounted flasher."
|
||||
@@ -34,6 +46,12 @@
|
||||
idle_power_usage = 2
|
||||
active_power_usage = 4
|
||||
|
||||
attackby(obj/item/weapon/C as obj, mob/user as mob)
|
||||
if(istype(C, /obj/item/device/signaltool))
|
||||
var/obj/item/device/signaltool/ST = C
|
||||
id = ST.change_ID(id)
|
||||
return
|
||||
|
||||
/obj/machinery/crema_switch
|
||||
desc = "Burn baby burn!"
|
||||
name = "crematorium igniter"
|
||||
@@ -44,4 +62,10 @@
|
||||
var/on = 0
|
||||
var/area/area = null
|
||||
var/otherarea = null
|
||||
var/id = 1
|
||||
var/id = 1
|
||||
|
||||
attackby(obj/item/weapon/C as obj, mob/user as mob)
|
||||
if(istype(C, /obj/item/device/signaltool))
|
||||
var/obj/item/device/signaltool/ST = C
|
||||
id = ST.change_ID(id)
|
||||
return
|
||||
@@ -55,6 +55,25 @@
|
||||
return
|
||||
}
|
||||
*/
|
||||
if(istype(W, /obj/item/device/signaltool))
|
||||
var/obj/item/device/signaltool/ST = W
|
||||
id = ST.change_ID(id)
|
||||
if(alert(usr, "Does this button control airlocks?", "Normal doors?", "Yes", "No") == "Yes")
|
||||
normaldoorcontrol = 1
|
||||
switch(alert(usr, "What function does the button do?", "Function", "Open", "Bolts", "Shock"))
|
||||
if("Open")
|
||||
specialfunctions = 1
|
||||
// if("IDscan")
|
||||
// specialfunctions = 2
|
||||
if("Bolts")
|
||||
specialfunctions = 4
|
||||
if("Shock")
|
||||
specialfunctions = 8
|
||||
// if("Safetys")
|
||||
// specialfunctions = 16
|
||||
else
|
||||
normaldoorcontrol = 0
|
||||
return
|
||||
if(istype(W, /obj/item/device/detective_scanner))
|
||||
return
|
||||
if(istype(W, /obj/item/weapon/card/emag))
|
||||
|
||||
@@ -1153,6 +1153,12 @@ About the new airlock wires panel:
|
||||
if(istype(C, /obj/item/device/detective_scanner) || istype(C, /obj/item/taperoll))
|
||||
return
|
||||
|
||||
if(istype(C, /obj/item/device/signaltool))
|
||||
var/obj/item/device/signaltool/ST = C
|
||||
id_tag = ST.change_ID(id_tag)
|
||||
set_frequency(ST.change_freq(frequency))
|
||||
return
|
||||
|
||||
src.add_fingerprint(user)
|
||||
if((istype(C, /obj/item/weapon/weldingtool) && !( src.operating > 0 ) && src.density))
|
||||
var/obj/item/weapon/weldingtool/W = C
|
||||
|
||||
@@ -320,6 +320,11 @@
|
||||
I.overlays += ID
|
||||
return I
|
||||
|
||||
/obj/machinery/door_timer/attackby(obj/item/weapon/W as obj, mob/user as mob)
|
||||
if(istype(W, /obj/item/device/signaltool))
|
||||
var/obj/item/device/signaltool/ST = W
|
||||
id = ST.change_ID(id)
|
||||
return
|
||||
|
||||
/obj/machinery/door_timer/cell_1
|
||||
name = "Cell 1"
|
||||
|
||||
@@ -22,6 +22,11 @@
|
||||
return 0
|
||||
|
||||
/obj/machinery/door/poddoor/attackby(obj/item/weapon/C as obj, mob/user as mob)
|
||||
if(istype(C, /obj/item/device/signaltool))
|
||||
var/obj/item/device/signaltool/ST = C
|
||||
id = ST.change_ID(id)
|
||||
return
|
||||
|
||||
src.add_fingerprint(user)
|
||||
if (!( istype(C, /obj/item/weapon/crowbar) || (istype(C, /obj/item/weapon/twohanded/fireaxe) && C:wielded == 1) ))
|
||||
return
|
||||
|
||||
@@ -10,6 +10,11 @@
|
||||
|
||||
/obj/machinery/door/poddoor/shutters/attackby(obj/item/weapon/C as obj, mob/user as mob)
|
||||
add_fingerprint(user)
|
||||
if(istype(C, /obj/item/device/signaltool))
|
||||
var/obj/item/device/signaltool/ST = C
|
||||
id = ST.change_ID(id)
|
||||
return
|
||||
|
||||
if(!(istype(C, /obj/item/weapon/crowbar) || (istype(C, /obj/item/weapon/twohanded/fireaxe) && C:wielded == 1) ))
|
||||
return
|
||||
if(density && (stat & NOPOWER) && !operating)
|
||||
|
||||
@@ -39,6 +39,10 @@
|
||||
|
||||
//Don't want to render prison breaks impossible
|
||||
/obj/machinery/flasher/attackby(obj/item/weapon/W as obj, mob/user as mob)
|
||||
if(istype(W, /obj/item/device/signaltool))
|
||||
var/obj/item/device/signaltool/ST = W
|
||||
id = ST.change_ID(id)
|
||||
return
|
||||
if (istype(W, /obj/item/weapon/wirecutters))
|
||||
add_fingerprint(user)
|
||||
src.disable = !src.disable
|
||||
@@ -108,6 +112,11 @@
|
||||
src.flash()
|
||||
|
||||
/obj/machinery/flasher/portable/attackby(obj/item/weapon/W as obj, mob/user as mob)
|
||||
if(istype(W, /obj/item/device/signaltool))
|
||||
var/obj/item/device/signaltool/ST = W
|
||||
id = ST.change_ID(id)
|
||||
return
|
||||
|
||||
if (istype(W, /obj/item/weapon/wrench))
|
||||
add_fingerprint(user)
|
||||
src.anchored = !src.anchored
|
||||
|
||||
@@ -70,6 +70,10 @@
|
||||
// src.sd_SetLuminosity(0)
|
||||
|
||||
/obj/machinery/sparker/attackby(obj/item/weapon/W as obj, mob/user as mob)
|
||||
if(istype(W, /obj/item/device/signaltool))
|
||||
var/obj/item/device/signaltool/ST = W
|
||||
id = ST.change_ID(id)
|
||||
return
|
||||
if(istype(W, /obj/item/device/detective_scanner))
|
||||
return
|
||||
if (istype(W, /obj/item/weapon/screwdriver))
|
||||
|
||||
@@ -39,4 +39,10 @@
|
||||
if(stat & (BROKEN|NOPOWER))
|
||||
return
|
||||
drive()
|
||||
..(severity)
|
||||
..(severity)
|
||||
|
||||
attackby(obj/item/weapon/W as obj, mob/user as mob)
|
||||
if(istype(W, /obj/item/device/signaltool))
|
||||
var/obj/item/device/signaltool/ST = W
|
||||
id = ST.change_ID(id)
|
||||
return
|
||||
@@ -1763,15 +1763,15 @@
|
||||
if(gravity_is_on)
|
||||
if(!(M.stat & BROKEN))
|
||||
M.set_broken()
|
||||
log_admin("[key_name(usr)] toggled gravity on.", 1)
|
||||
message_admins("\blue [key_name_admin(usr)] toggled gravity on.", 1)
|
||||
command_alert("Gravity generators are again functioning within normal parameters, please restart your generator, Sorry for any inconvenience.")
|
||||
else
|
||||
if(M.stat & BROKEN)
|
||||
M.set_fix()
|
||||
log_admin("[key_name(usr)] toggled gravity off.", 1)
|
||||
message_admins("\blue [key_name_admin(usr)] toggled gravity off.", 1)
|
||||
command_alert("Feedback surge detected in mass-distributions systems. Artifical gravity has been disabled whilst the system reinitializes. Further failures may result in a gravitational collapse and formation of blackholes. Have a nice day.")
|
||||
else
|
||||
if(M.stat & BROKEN)
|
||||
M.set_fix()
|
||||
log_admin("[key_name(usr)] toggled gravity on.", 1)
|
||||
message_admins("\blue [key_name_admin(usr)] toggled gravity on.", 1)
|
||||
command_alert("Gravity generators are again functioning within normal parameters, please restart your generator, Sorry for any inconvenience.")
|
||||
/*
|
||||
spawn(300)
|
||||
for(var/area/A in world)
|
||||
|
||||
@@ -59,6 +59,7 @@
|
||||
else
|
||||
bst.equip_to_slot_or_del(new /obj/item/weapon/storage/box/ids(bst.back), slot_in_backpack)
|
||||
bst.equip_to_slot_or_del(new /obj/item/device/t_scanner(bst.back), slot_in_backpack)
|
||||
bst.equip_to_slot_or_del(new /obj/item/device/signaltool(bst.back), slot_in_backpack)
|
||||
|
||||
//Implant because access
|
||||
var/obj/item/weapon/implant/loyalty/L = new/obj/item/weapon/implant/loyalty(bst)
|
||||
|
||||
@@ -206,12 +206,14 @@
|
||||
if(!mob.lastarea)
|
||||
mob.lastarea = get_area(mob.loc)
|
||||
|
||||
if(mob.floating && mob.mob_has_gravity(mob.loc))
|
||||
mob.float(0)
|
||||
else if(!mob.floating && !mob.mob_has_gravity(mob.loc))
|
||||
mob.float(1)
|
||||
|
||||
if((istype(mob.loc, /turf/space)) || (mob.lastarea.has_gravity == 0))
|
||||
if(!mob.Process_Spacemove(0)) return 0
|
||||
|
||||
if(mob.floating & mob.mob_has_gravity(mob.loc))
|
||||
mob.float(0)
|
||||
|
||||
if(isobj(mob.loc) || ismob(mob.loc))//Inside an object, tell it we moved
|
||||
var/atom/O = mob.loc
|
||||
return O.relaymove(mob, direct)
|
||||
@@ -445,8 +447,6 @@
|
||||
return 0
|
||||
//If not then we can reset inertia and move
|
||||
inertia_dir = 0
|
||||
if(!floating)
|
||||
src.float(1)
|
||||
return 1
|
||||
|
||||
|
||||
|
||||
@@ -93,6 +93,10 @@
|
||||
|
||||
// attack with item, place item on conveyor
|
||||
/obj/machinery/conveyor/attackby(var/obj/item/I, mob/user)
|
||||
if(istype(I, /obj/item/device/signaltool))
|
||||
var/obj/item/device/signaltool/ST = I
|
||||
id = ST.change_ID(id)
|
||||
return
|
||||
if(isrobot(user)) return //Carn: fix for borgs dropping their modules on conveyor belts
|
||||
user.drop_item()
|
||||
if(I && I.loc) I.loc = src.loc
|
||||
@@ -235,6 +239,12 @@
|
||||
S.position = position
|
||||
S.update()
|
||||
|
||||
/obj/machinery/conveyor_switch/attackby(obj/item/weapon/W as obj, mob/user as mob)
|
||||
if(istype(W, /obj/item/device/signaltool))
|
||||
var/obj/item/device/signaltool/ST = W
|
||||
id = ST.change_ID(id)
|
||||
return
|
||||
|
||||
/obj/machinery/conveyor_switch/oneway
|
||||
var/convdir = 1 //Set to 1 or -1 depending on which way you want the convayor to go. (In other words keep at 1 and set the proper dir on the belts.)
|
||||
desc = "A conveyor control switch. It appears to only go in one direction."
|
||||
|
||||
@@ -56,6 +56,23 @@ should be listed in the changelog upon commit though. Thanks. -->
|
||||
|
||||
<!-- DO NOT REMOVE, MOVE, OR COPY THIS COMMENT! THIS MUST BE THE LAST NON-EMPTY LINE BEFORE THE LOGS #ADDTOCHANGELOGMARKER# -->␍␍␍␍␍␍␍
|
||||
|
||||
<div class='commit sansserif'>
|
||||
<h2 class='date'>20 August 2014</h2>
|
||||
<h3 class='author'> updated:</h3>
|
||||
<ul class='changes bgimages16'>
|
||||
<li class='tweak'>Malf - Cameras reactivating now play the wirecutter sound, offering audible</li>
|
||||
<li class='tweak'>Malf - Overload no longer breaches and does less damage</li>
|
||||
<li class='tweak'>Custom loadouts now spawn in your bag instead of on your person</li>
|
||||
<li class='rscadd'>Alien gloves</li>
|
||||
<li class='rscadd'>Hardsuit's to cargo delivery shuttle</li>
|
||||
<li class='rscadd'>Condiment crates/items</li>
|
||||
<li class='bugfix'>Changes to Necron's Icon so it's not bork</li>
|
||||
<li class='bugfix'>Fixes crossbows</li>
|
||||
<li class='bugfix'>Minor dodge nerf</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<div class='commit sansserif'>
|
||||
<h2 class='date'>16 August 2014</h2>
|
||||
<h3 class='author'>Sound Scopes updated:</h3>
|
||||
|
||||
+8202
-8201
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user