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

AI now "can" use media console #32334

Merged
merged 1 commit into from
Sep 22, 2024

Conversation

AsnDen
Copy link
Contributor

@AsnDen AsnDen commented Sep 20, 2024

About the PR

Lets AI to use console that is far away from his core.

Why / Balance

Currently AI is able to use media console that is NEAR his core (so basically AI never get in such situation)

Technical details

Deletes some code that don't allow to use console. Comment in the code: "This shouldn't technically be possible because of BUI but don't trust client"

Media

image

Requirements

Changelog

🆑

  • fix: Now AI is able to use news manager console that is far away from its core.

Comment on lines -312 to -314
// This shouldn't technically be possible because of BUI but don't trust client.
if (!_interaction.InRangeUnobstructed(console, user))
return false;
Copy link
Contributor

Choose a reason for hiding this comment

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

This removes the check for everyone, not just AI.

Copy link
Contributor Author

@AsnDen AsnDen Sep 22, 2024

Choose a reason for hiding this comment

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

I don't understand why we even need this check. The comment says it "should't technically be possible". If I go from the console it just closes (watch attachment). Also haven't seen such check in other consoles' code.

Content.client.2024.09.22.-.10.35.09.06.mp4

Copy link
Contributor

Choose a reason for hiding this comment

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

BUI should be handling this, yes.

@metalgearsloth metalgearsloth merged commit 72acce5 into space-wizards:master Sep 22, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants