-
Notifications
You must be signed in to change notification settings - Fork 64
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
Static anomaly #1103
base: master
Are you sure you want to change the base?
Static anomaly #1103
Conversation
…o static_anomaly
…o static_anomaly
RSI Diff Bot; head commit c4c9a08 merging into 0d767e8 Resources/Textures/ADT/Structures/Specific/Anomalies/Cores/static_core.rsi
Resources/Textures/ADT/Structures/Specific/Anomalies/static_anum.rsi
|
Ты моя умничка |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
В коде чего-то супер страшного не увидел, поэтому живи.
@@ -22,6 +22,7 @@ | |||
- AnomalyFlora | |||
- AnomalyShadow | |||
- AnomalyTech | |||
- ADTAnomalyStatic |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Комментарии
@@ -143,6 +143,7 @@ | |||
- Adrenaline # ADT-Medicine | |||
- ADTHallucinations # ADT-Tweak | |||
- ADTStarvation # ADT-Tweak | |||
- SeeingStatic |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Комментарии
|
||
#ADT | ||
# Nervous | ||
- type: autoEmote | ||
id: NervousCrying | ||
emote: Crying | ||
interval: 15.0 | ||
chance: 0.5 | ||
withChat: false | ||
|
||
- type: autoEmote | ||
id: NervousSream | ||
emote: Scream | ||
interval: 15.0 | ||
chance: 0.5 | ||
withChat: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Можно и к нам в файлы
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Помимо прочего я, хотел добавить еще пару вещей лично
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Если оставить так, на всех будет действовать ЭМИ, по крайней мере статика от него
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Так вроде статика должна как раз на всех, разве нет?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Так вроде статика должна как раз на всех, разве нет?
От ЭМИ гранат? С чего бы?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Но ведь это не так. Я много раз проверял. Эми всё так же действует только на КПБ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Данная система не учитывает то, что игрок может просто отойти и остаться с компонентом навсегда
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Учитывает
if (Transform(uid).Coordinates.TryDistance(EntityManager, Transform(ent).Coordinates, out var distance)
&& distance >= comp.NervousRange)
{
_autoEmote.RemoveEmote(ent, "NervousSream");
}
var query = EntityQueryEnumerator<NervousSourceComponent>(); | ||
while (query.MoveNext(out var uid, out var comp)) | ||
{ | ||
foreach (var ent in _lookup.GetEntitiesInRange(uid, comp.NervousRange)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Это будет добавлять компонент всему - людям, стенам, трубам, обсерверам. Нам такого определенно не надо
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Зачем делить систему для одной аномалии на две?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
А я думал мне показалось
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Потому что аномалия просто немного глушит, а то что она создаёт после взрыва полностью перекрывает экран и ещё отнимает кровь
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Это все можно и нужно расположить в одной системе. Нет смысла плодить их
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Подскажи как это реализовать
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Перенеси все функции и их регистрации в одну систему просто
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Я ближе к вечеру/ночи смогу нормально объяснить, пингани в диск лучше через часа 2-3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
А я не помню какой у тебя ник в дискорде ;(
Просто как вспомнишь/освободишься пингани и я скорректирую
Это вроде не часть BFUU. Ты решил основательно взяться за заказы Иллюми? |
base.Update(frameTime); | ||
|
||
//Anomaly | ||
var AnomalyQuery = EntityQueryEnumerator<StaticAnomalyComponent>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
локальные переменные функции должны называться с маленькой буквы
EnsureComp<AutoEmoteComponent>(ent); | ||
_autoEmote.AddEmote(ent, "NervousSream"); | ||
if (Transform(uid).Coordinates.TryDistance(EntityManager, Transform(ent).Coordinates, out var distance) | ||
&& distance >= comp.NervousRange) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
в игре достаточно способов это сломать, чего только телепорт стоит.
глянь как работает стационарная вспышка, либо добавь список в компонент
(ну или просто не используй автоэмоут систему, а пропиши всю логику тут, ещё лучше будет)
acts: [ "Destruction" ] | ||
- trigger: | ||
!type:DamageTrigger | ||
damage: 250 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Тут два раза прописаны одинаковые триггеры с разным значением
- 250 хп - слишком жирно для аномального объекта
Описание PR
Почему / Баланс
Ссылка на публикацию в Discord
Добавление статической аномалии.
Это аномалия, которая будет вызывать у окружающих её персонажей в радиусе 12 тайлов слабый эффект белого шума (как у кпб после эми), при пульсе она должна создавать объекты со своим спрайтом "Фальшивый телевизор" у которых 75 хп, а так же заставляет людей кричать или плакать(если это вообще реализуемо). При взрыве она оставляет после себя сущность в виде телевизора со спрайтом пульса, который создаёт непроглядный белый шум(как у КПБ сразу после взрыва эми) в радиусе 15 тайлов и имеет 500 здоровья, а так же обескровливает окружающих.
Медиа
Требования
Критические изменения
Добавлены компоненты и системы для работы статической аномалии
Чейнджлог
add: добавлена статическая аномалия и её производные: фальшивый телевизор и статический телевизор