[MIRROR] Add logging to teleport and the teleporter destination setting (#7225)
* Add logging to teleport and the teleporter destination setting (#38645) Helps with some admin issues * Add logging to teleport and the teleporter destination setting
This commit is contained in:
committed by
kevinz000
parent
f02a99f901
commit
386bc528ea
@@ -51,6 +51,7 @@
|
|||||||
tele_play_specials(teleatom, curturf, effectin, asoundin)
|
tele_play_specials(teleatom, curturf, effectin, asoundin)
|
||||||
var/success = force_teleport ? teleatom.forceMove(destturf) : teleatom.Move(destturf)
|
var/success = force_teleport ? teleatom.forceMove(destturf) : teleatom.Move(destturf)
|
||||||
if (success)
|
if (success)
|
||||||
|
log_game("[teleatom] ([key_name(teleatom)]) has teleported from [AREACOORD(curturf)] to [AREACOORD(destturf)]")
|
||||||
tele_play_specials(teleatom, destturf, effectout, asoundout)
|
tele_play_specials(teleatom, destturf, effectout, asoundout)
|
||||||
if(ismegafauna(teleatom))
|
if(ismegafauna(teleatom))
|
||||||
message_admins("[teleatom] [ADMIN_FLW(teleatom)] has teleported from [ADMIN_VERBOSEJMP(curturf)] to [ADMIN_VERBOSEJMP(destturf)].")
|
message_admins("[teleatom] [ADMIN_FLW(teleatom)] has teleported from [ADMIN_VERBOSEJMP(curturf)] to [ADMIN_VERBOSEJMP(destturf)].")
|
||||||
|
|||||||
@@ -171,6 +171,8 @@
|
|||||||
|
|
||||||
var/desc = input("Please select a location to lock in.", "Locking Computer") as null|anything in L
|
var/desc = input("Please select a location to lock in.", "Locking Computer") as null|anything in L
|
||||||
target = L[desc]
|
target = L[desc]
|
||||||
|
var/turf/T = get_turf(target)
|
||||||
|
log_game("[key_name(user)] has set the teleporter target to [target] at [AREACOORD(T)]")
|
||||||
|
|
||||||
else
|
else
|
||||||
var/list/S = power_station.linked_stations
|
var/list/S = power_station.linked_stations
|
||||||
@@ -185,6 +187,8 @@
|
|||||||
var/obj/machinery/teleport/station/target_station = L[desc]
|
var/obj/machinery/teleport/station/target_station = L[desc]
|
||||||
if(!target_station || !target_station.teleporter_hub)
|
if(!target_station || !target_station.teleporter_hub)
|
||||||
return
|
return
|
||||||
|
var/turf/T = get_turf(target_station)
|
||||||
|
log_game("[key_name(user)] has set the teleporter target to [target_station] at [AREACOORD(T)]")
|
||||||
target = target_station.teleporter_hub
|
target = target_station.teleporter_hub
|
||||||
target_station.linked_stations |= power_station
|
target_station.linked_stations |= power_station
|
||||||
target_station.stat &= ~NOPOWER
|
target_station.stat &= ~NOPOWER
|
||||||
|
|||||||
@@ -69,6 +69,7 @@
|
|||||||
if(do_teleport(M, com.target))
|
if(do_teleport(M, com.target))
|
||||||
use_power(5000)
|
use_power(5000)
|
||||||
if(!calibrated && prob(30 - ((accurate) * 10))) //oh dear a problem
|
if(!calibrated && prob(30 - ((accurate) * 10))) //oh dear a problem
|
||||||
|
log_game("[M] ([key_name(M)]) was turned into a fly person")
|
||||||
if(ishuman(M))//don't remove people from the round randomly you jerks
|
if(ishuman(M))//don't remove people from the round randomly you jerks
|
||||||
var/mob/living/carbon/human/human = M
|
var/mob/living/carbon/human/human = M
|
||||||
if(human.dna && human.dna.species.id == "human")
|
if(human.dna && human.dna.species.id == "human")
|
||||||
|
|||||||
Reference in New Issue
Block a user