Adds aiming logs (#5306)

This commit is contained in:
Werner
2018-10-19 19:36:00 +02:00
committed by GitHub
parent aa62d23850
commit 7062d2b524

View File

@@ -166,6 +166,8 @@ obj/aiming_overlay/proc/update_aiming_deferred()
if(istype(aiming_with, /obj/item/weapon/gun))
playsound(get_turf(owner), 'sound/weapons/TargetOn.ogg', 50,1)
admin_attack_log(owner, aiming_at, "\The [owner] is aiming at \the [aiming_at] with \the [aiming_with].", "\The [owner] is aiming at \the [aiming_at] with \the [aiming_with].", "\The [owner] is aiming at \the [aiming_at] with \the [aiming_with].")
forceMove(get_turf(target))
START_PROCESSING(SSprocessing, src)
@@ -209,6 +211,7 @@ obj/aiming_overlay/proc/update_aiming_deferred()
/obj/aiming_overlay/proc/cancel_aiming(var/no_message = 0)
if(!aiming_with || !aiming_at)
return
admin_attack_log(owner, aiming_at, "\The [owner] is no longer aiming at \the [aiming_at] with \the [aiming_with].", "\The [owner] is no longer aiming at \the [aiming_at] with \the [aiming_with].", "\The [owner] is no longer aiming at \the [aiming_at] with \the [aiming_with].")
if(istype(aiming_with, /obj/item/weapon/gun))
playsound(get_turf(owner), 'sound/weapons/TargetOff.ogg', 50,1)
if(!no_message)