Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Holopad #262

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Holopad #262

wants to merge 7 commits into from

Conversation

TermService
Copy link
Contributor

Добавляет в игру голопад, с возможностью связи с другими членами персонала по средствам аудио и видео связи.

screenshot_3
hdrfl0m6sfengmufonin8a

🆑 TermService

  • rscadd: добаавлен голопад, с возможностью связи между персоналом.

Copy link
Contributor

@LudwigVonChesterfield LudwigVonChesterfield left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Я вообще не всё посмотрел. Там ещё идентичных ошибок куча.

code/game/objects/items/devices/holopad.dm Outdated Show resolved Hide resolved
code/game/objects/items/devices/holopad.dm Outdated Show resolved Hide resolved
code/game/objects/items/devices/holopad.dm Outdated Show resolved Hide resolved
code/game/objects/items/devices/holopad.dm Outdated Show resolved Hide resolved
code/game/objects/items/devices/holopad.dm Outdated Show resolved Hide resolved
code/game/objects/items/devices/holopad.dm Outdated Show resolved Hide resolved
@TermService
Copy link
Contributor Author

screenshot_14

@Miracler112
Copy link
Contributor

В этот раз всё нормально, ждем повторный ревью Людука, если так же всё будет нормально - то будет готово к мержу

@@ -886,3 +886,18 @@ var/global/list/humanoid_icon_cache = list()
return out_icon
else
return humanoid_icon_cache[icon_id]

/proc/build_composite_icon_omnidir(atom/A)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

У нас точно нету тысячи таких полков до тебя?

code/game/objects/items/devices/holopad.dm Outdated Show resolved Hide resolved
code/game/objects/items/devices/holopad.dm Outdated Show resolved Hide resolved
code/game/objects/items/devices/holopad.dm Show resolved Hide resolved
code/game/objects/items/devices/holopad.dm Outdated Show resolved Hide resolved
code/game/objects/items/devices/holopad.dm Outdated Show resolved Hide resolved
code/game/objects/items/devices/holopad.dm Show resolved Hide resolved
code/game/objects/items/devices/holopad.dm Show resolved Hide resolved
@LudwigVonChesterfield
Copy link
Contributor

А до код стайла докопаться надо?

все таки я думал картинка чуть больше будет выглядеть лучше но нет(в техах текстурка вылазит за тень)
var/icon/composite = icon('icons/effects/effects.dmi', "icon_state"="nothing")
for(var/O in A.underlays)
var/image/I = O
composite.Blend(new/icon(I.icon, I.icon_state), ICON_OVERLAY)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Но это же underlay-и.

return
var/mob/living/L = loc
if(isliving(loc) && L.client)
to_chat(loc, "<span class='warning'>Something vibrates..</span>")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ну имхо написать бы где вибрирует, подумай с этим.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Если эту вибрацию вообще никто не должен слышать кроме юзера, то зачем здесь лок? В ином случае можно использовать visible_message 🤷‍♂️

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А если он лежит на земле? Никто не увидит что он вибрирует?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Под где - я имел ввиду «в кармане, в сумке», и т.д. Кстати, я тут подумал, мне кажется голопад в сумке работать не будет. У него лок- сумка

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Он же к ливинг приведен


/obj/item/device/holopad/proc/placeCall()
var/list/Targets = list()
for(var/obj/item/device/holopad/H)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Что? А куда делось in world?

addtimer(CALLBACK(src, .proc/update_holo), 1)

if(isliving(loc))
to_chat(loc, "Connection established")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Круто. Может лучше типо Голопад говорит, «установлено подключение»


/obj/item/device/holopad/atom_init()
. = ..()
uniq_id = rand(00000, 999999)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Я бы ещё тогда проверил есть ли такие же голопады. А то оно не уникально.

id = rand(1000, 9999)
name = "[initial(name)] [id]"

/obj/item/device/holopad/Destroy()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А зачем переписывать прок если он всего-лишь вызывает родителя.

hologram.pixel_x = ((L.dir&4)?32:((L.dir&8)?-32:0))
hologram.pixel_y = ((L.dir&1)?32:((L.dir&2)?-32:0))
else if(isturf(loc))
hologram.dir = 2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Дефайны есть

if(!abonent.hologram)
abonent.hologram = new()
abonent.hologram.name = "Hologram [sanitize(id)]"
abonent.hologram.layer = 5
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Магия

addtimer(CALLBACK(src, .proc/update_holo_pos), 2)


/obj/item/device/holopad/attack_self(mob/user as mob)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As mob зачем?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

У нас не используется как приведение : так и преобразование as mob, as turf, as obj и прочее такое, оно тут не нужно


/obj/item/device/holopad/hear_talk(mob/living/M, text, datum/language/speaking)
if(call_state == CALL_IN_CALL)
abonent.receive(text,M==loc)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Мне нравиться как голограммы ещё и переводят с других языков - на нужный.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants