Skip to content

Commit

Permalink
Вот теперь вроде точно всё
Browse files Browse the repository at this point in the history
  • Loading branch information
VERG-SS220 committed Dec 12, 2023
1 parent d23f6bc commit 7529661
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions code/game/machinery/camera/tracking.dm
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@

/mob/living/silicon/ai/proc/ai_camera_list(camera in get_camera_list())
set category = "Команды ИИ"
set name = "Show Camera List"
set name = "Показать список камер"

if(src.stat == 2)
to_chat(src, "You can't list the cameras because you are dead!")
to_chat(src, "Вам недоступен список камер по причине своей смерти!")
return

if(!camera || camera == "Cancel")
Expand Down Expand Up @@ -90,11 +90,11 @@

/mob/living/silicon/ai/proc/ai_camera_track(target_name in trackable_mobs())
set category = "Команды ИИ"
set name = "Track With Camera"
set desc = "Select who you would like to track."
set name = "Отслеживать"
set desc = "Выберите, кого вы хотите отслеживать."

if(src.stat == DEAD)
to_chat(src, "You can't track with camera because you are dead!")
to_chat(src, "Вы не можете отслеживать по причине своей смерти!")
return
if(!target_name)
return
Expand All @@ -107,7 +107,7 @@
if(!cameraFollow)
return

to_chat(src, "Follow camera mode [forced ? "terminated" : "ended"].")
to_chat(src, "Режим слежки [forced ? "закрыт" : "отключен"].")
cameraFollow = null

/mob/living/silicon/ai/proc/ai_actual_track(mob/living/target)
Expand All @@ -118,22 +118,22 @@
U.cameraFollow = target
U.tracking = TRUE

to_chat(U, "<span class='notice'>Attempting to track [target.get_visible_name()]...</span>")
to_chat(U, "<span class='notice'>Пытаемся отследить [target.get_visible_name()]...</span>")
sleep(min(30, get_dist(target, U.eyeobj) / 4))
spawn(15) //give the AI a grace period to stop moving.
U.tracking = FALSE

if(target.is_jammed())
to_chat(U, "<span class='warning'>Unable to track [target.get_visible_name()]...</span>")
to_chat(U, "<span class='warning'>Невозможно отследить [target.get_visible_name()]...</span>")
U.cameraFollow = null
return

if(!target || !target.can_track(usr))
to_chat(U, "<span class='warning'>Target is not near any active cameras.</span>")
to_chat(U, "<span class='warning'>Цель вне зоны покрытия камер.</span>")
U.cameraFollow = null
return

to_chat(U, "<span class='notice'>Now tracking [target.get_visible_name()] on camera.</span>")
to_chat(U, "<span class='notice'>Отслеживаем по камерам [target.get_visible_name()].</span>")

var/cameraticks = 0
spawn(0)
Expand Down

0 comments on commit 7529661

Please sign in to comment.