Merge pull request #4373 from CrAzYPiLoT-SS13/wand_fix

Gamma armory exploit fix + CC control wand
This commit is contained in:
TheDZD
2016-05-26 16:50:10 -04:00
4 changed files with 19 additions and 4 deletions
+2 -1
View File
@@ -239,6 +239,7 @@
#define REGION_ENGINEERING 5
#define REGION_SUPPLY 6
#define REGION_COMMAND 7
#define REGION_CENTCOMM 8
//Matricies
#define MATRIX_DEFAULT list(1, 0, 0, 0,\
@@ -249,4 +250,4 @@
#define MATRIX_GREYSCALE list(0.3, 0.3, 0.3, 0,\
0.3, 0.3, 0.3, 0,\
0.3, 0.3, 0.3, 0,\
0, 0, 0, 1)
0, 0, 0, 1)
+4 -1
View File
@@ -267,6 +267,8 @@
return list(access_mailsorting, access_mining, access_mining_station, access_mineral_storeroom, access_cargo, access_qm)
if(REGION_COMMAND) //command
return list(access_heads, access_RC_announce, access_keycard_auth, access_change_ids, access_ai_upload, access_teleporter, access_eva, access_tcomsat, access_gateway, access_all_personal_lockers, access_heads_vault, access_blueshield, access_ntrep, access_hop, access_captain)
if(REGION_CENTCOMM) //because why the heck not
return get_all_centcom_access() + get_all_accesses()
/proc/get_region_accesses_name(code)
switch(code)
@@ -286,6 +288,8 @@
return "Supply"
if(REGION_COMMAND) //command
return "Command"
if(REGION_CENTCOMM) //CC
return "CentComm"
/proc/get_access_desc(A)
@@ -600,4 +604,3 @@ proc/get_all_job_icons() //For all existing HUD icons
return
return "Unknown" //Return unknown if none of the above apply
+3 -1
View File
@@ -58,6 +58,7 @@
var/doorDeni = 'sound/machines/DeniedBeep.ogg' // i'm thinkin' Deni's
var/boltUp = 'sound/machines/BoltsUp.ogg'
var/boltDown = 'sound/machines/BoltsDown.ogg'
var/is_special = 0
/obj/machinery/door/airlock/command
name = "Airlock"
@@ -126,6 +127,7 @@
hackProof = 1
aiControlDisabled = 1
unacidable = 1
is_special = 1
/obj/machinery/door/airlock/maintenance_hatch
name = "Maintenance Hatch"
@@ -304,6 +306,7 @@
desc = "A mysterious alien airlock with a complicated opening mechanism."
hackProof = 1
icon = 'icons/obj/doors/Doorplasma.dmi'
is_special = 1
/obj/machinery/door/airlock/alien/bumpopen(mob/living/user as mob)
if(istype(user,/mob/living/carbon/alien) || isrobot(user) || isAI(user))
@@ -799,7 +802,6 @@ About the new airlock wires panel:
else
return
else if(istype(C, /obj/item/weapon/screwdriver))
playsound(src.loc, 'sound/items/Screwdriver.ogg', 25, 1)
src.p_open = !( src.p_open )
src.update_icon()
else if(istype(C, /obj/item/weapon/wirecutters))
+10 -1
View File
@@ -31,6 +31,9 @@
/obj/item/weapon/door_remote/afterattack(obj/machinery/door/airlock/D, mob/user)
if(!istype(D))
return
if(D.is_special)
to_chat(user, "<span class='danger'>[src] cannot access this kind of door!</span>")
return
if(!(D.arePowerSystemsOn()))
to_chat(user, "<span class='danger'>[D] has no power!</span>")
return
@@ -99,6 +102,12 @@
icon_state = "gangtool-white"
region_access = REGION_GENERAL
/obj/item/weapon/door_remote/centcomm
name = "centcomm door remote"
desc = "High-ranking NT officials only."
icon_state = "gangtool-blue"
region_access = REGION_CENTCOMM
#undef WAND_OPEN
#undef WAND_BOLT
#undef WAND_EMERGENCY
#undef WAND_EMERGENCY