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

Ventcrawl port #751

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

Conversation

MalorMorfin
Copy link
Contributor

@MalorMorfin MalorMorfin commented Dec 4, 2024

Основные изменения

Портирование этих двух ПРов улучшение кода и фикс нагрузки из-за венты
Но есть несколько но, затронута система радио и вообще болтовни, возможно будут какие-то баги с ней, или наоборот, меньше проблем. Возможно не полностью фиксит проблему с нагрузкой ползанья, но сам процесс стал приятнее.

Как это улучшит игру

Меньше лагов, теперь по венте более приятно ползать.

Ченджлог

:cl:
refactor: Переделал код ползанья по вентиляции
/:cl:

@MalorMorfin
Copy link
Contributor Author

Вроде все работает нормально, но при инициализации spatial grid говорится что инициализация закончилась с ошибками (в игре)

@Tatarla Tatarla requested review from Helg2 and homexp13 December 4, 2024 13:11
@Tatarla
Copy link
Collaborator

Tatarla commented Dec 4, 2024

Ахуй ты герой

@Tatarla Tatarla added Port Изменение, взятое с другого проекта. Code Improvement Изменение для ускорения работы. labels Dec 4, 2024
@Helg2 Helg2 added the Test Merge Candidate Игроки побудут тестировщиками. label Dec 4, 2024
@Helg2
Copy link
Collaborator

Helg2 commented Dec 6, 2024

Проверь правильно ли работает блокирование выхода из вентиляции если она закрыта шаттлом/стеной.

@github-actions github-actions bot added the Merge Conflict ПР конфликтует с базовой веткой label Dec 10, 2024
@Helg2
Copy link
Collaborator

Helg2 commented Dec 10, 2024

Это портил? tgstation/tgstation#68693

@MalorMorfin
Copy link
Contributor Author

Это портил? tgstation/tgstation#68693

Нет, ибо там вроде он прост выпиливает проверки из хандлер и делает отдельным проком, но половина проков нам не нужна ибо там проки для людей которых у нас вроде не было...

@MalorMorfin MalorMorfin requested a review from Helg2 December 11, 2024 16:42
@github-actions github-actions bot removed the Merge Conflict ПР конфликтует с базовой веткой label Dec 11, 2024
@MalorMorfin MalorMorfin requested a review from Helg2 December 12, 2024 18:30
Copy link
Contributor

This PR has been inactive for long enough to be automatically marked as stale. This means it is at risk of being auto closed in ~ 3 days, please address any outstanding review items and ensure your PR is finished, if these are all true and you are auto-staled anyway, you need to actively ask maintainers if your PR will be merged. Once you have done any of the previous actions then you should request a maintainer remove the stale label on your PR, to reset the stale timer. If you feel no maintainer will respond in that time, you may wish to close this PR youself, while you seek maintainer comment, as you will then be able to reopen the PR yourself

@github-actions github-actions bot added the Stale Автор ушёл на завод. label Dec 22, 2024
@Helg2 Helg2 removed the Stale Автор ушёл на завод. label Dec 22, 2024
Copy link
Contributor

This PR has been inactive for long enough to be automatically marked as stale. This means it is at risk of being auto closed in ~ 3 days, please address any outstanding review items and ensure your PR is finished, if these are all true and you are auto-staled anyway, you need to actively ask maintainers if your PR will be merged. Once you have done any of the previous actions then you should request a maintainer remove the stale label on your PR, to reset the stale timer. If you feel no maintainer will respond in that time, you may wish to close this PR youself, while you seek maintainer comment, as you will then be able to reopen the PR yourself

@github-actions github-actions bot added the Stale Автор ушёл на завод. label Dec 30, 2024
@Helg2 Helg2 removed the Stale Автор ушёл на завод. label Dec 30, 2024
Copy link
Contributor

github-actions bot commented Jan 7, 2025

This PR has been inactive for long enough to be automatically marked as stale. This means it is at risk of being auto closed in ~ 3 days, please address any outstanding review items and ensure your PR is finished, if these are all true and you are auto-staled anyway, you need to actively ask maintainers if your PR will be merged. Once you have done any of the previous actions then you should request a maintainer remove the stale label on your PR, to reset the stale timer. If you feel no maintainer will respond in that time, you may wish to close this PR youself, while you seek maintainer comment, as you will then be able to reopen the PR yourself

@github-actions github-actions bot added the Stale Автор ушёл на завод. label Jan 7, 2025
@Helg2 Helg2 removed the Stale Автор ушёл на завод. label Jan 7, 2025
code/_onclick/ventcrawl.dm Outdated Show resolved Hide resolved
code/_onclick/ventcrawl.dm Outdated Show resolved Hide resolved
code/_onclick/ventcrawl.dm Outdated Show resolved Hide resolved
code/_onclick/ventcrawl.dm Outdated Show resolved Hide resolved
visible_message(span_notice("[stealthy ? "[src] begins climbing into the ventilation system..." : ""]"),span_notice("You begin climbing into the ventilation system..."))

if(!do_after(src, crawl_time, IGNORE_HELD_ITEM, vent_found, BUSY_ICON_GENERIC) || !client || !canmove)
if(vent_movement & VENTCRAWL_ENTRANCE_ALLOWED)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ранний ретурн можно сделать

Comment on lines +50 to +51
if(!do_after(src, crawl_time, target = ventcrawl_target))\
return
Copy link
Collaborator

Choose a reason for hiding this comment

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

При не выполненном do_after сделай отмену кд через TIMER_COOLDOWN_END чтобы можно было при отмене выхода из вентиляции повторно попробовать выйти не ожидая 2 секунды.

climb_out(user, loc)
if(TIMER_COOLDOWN_CHECK(user, COOLDOWN_VENTCRAWL))
return FALSE
TIMER_COOLDOWN_START(user, COOLDOWN_VENTCRAWL, 2 SECONDS)
Copy link
Collaborator

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
Labels
Code Improvement Изменение для ускорения работы. Port Изменение, взятое с другого проекта. Test Merge Candidate Игроки побудут тестировщиками.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants