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

Creating and destroying AI Cores #33015

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Content.Shared/Silicons/StationAi/SharedStationAiSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,8 @@ private void OnAiShutdown(Entity<StationAiCoreComponent> ent, ref ComponentShutd
private void OnCorePower(Entity<StationAiCoreComponent> ent, ref PowerChangedEvent args)
{
// TODO: I think in 13 they just straightup die so maybe implement that
if (args.Powered)
// Currently this would just make AI Eye die whenever the core is unanchored
/*if (args.Powered)
{
if (!SetupEye(ent))
return;
Expand All @@ -274,7 +275,7 @@ private void OnCorePower(Entity<StationAiCoreComponent> ent, ref PowerChangedEve
else
{
ClearEye(ent);
}
}*/
}

private void OnAiMapInit(Entity<StationAiCoreComponent> ent, ref MapInitEvent args)
Expand Down
19 changes: 18 additions & 1 deletion Resources/Prototypes/Entities/Mobs/Player/silicon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -319,15 +319,32 @@
thresholds:
- trigger:
!type:DamageTrigger
damage: 100
damage: 200
behaviors:
- !type:PlaySoundBehavior
sound:
path: /Audio/Machines/warning_buzzer.ogg
params:
volume: 5
- trigger:
!type:DamageTrigger
damage: 300
behaviors:
- !type:PlaySoundBehavior
sound:
collection: MetalBreak
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: Damageable
damageContainer: Silicon
- type: Repairable
doAfterDelay: 10
allowSelfRepair: false
- type: ApcPowerReceiver
powerLoad: 1000
- type: ExtensionCableReceiver
- type: Anchorable
- type: Rotatable
- type: StationAiCore
- type: StationAiVision
- type: InteractionOutline
Expand Down