Skip to content

feat: add setter Usable::IsUsing - #753

Merged
louis1706 merged 14 commits into
ExMod-Team:devfrom
michcio15:feat/usable-start-using
Feb 19, 2026
Merged

feat: add setter Usable::IsUsing#753
louis1706 merged 14 commits into
ExMod-Team:devfrom
michcio15:feat/usable-start-using

Conversation

@michcio15

Copy link
Copy Markdown

Description

Describe the changes
Adds UsableItemsController.ServerEmulateMessage wrapper for usable item

What is the current behavior? (You can also link to an open issue here)
Non existend

What is the new behavior? (if this is a feature change)
You can now force the player to start using medkit

Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)

Other information:


Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentations

Submission checklist

  • I have checked the project can be compiled
  • I have tested my changes and it worked as expected

Patches (if there are any changes related to Harmony patches)

  • I have checked no IL patching errors in the console

Other

  • Still requires more testing

@michcio15

Copy link
Copy Markdown
Author

instead of ServerEmulateMessage i could use ServerReceivedStatus which would skip a players is holding the item rn

@louis1706 louis1706 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

looks good for me will still need to test it

@louis1706

Copy link
Copy Markdown

you can also add StopUsing :3

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

To keep the transpiler as clean and simple as possible, just take the referencehub and make the event argument a player.get inside the constructor – at least that was Yamato's suggestion for me.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

this was merged some time ago

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

oh shit why is it now with this event wtf

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

it's because you make your PR from Master initially so it's missed some new addition probably just update branch fix it

@michcio15

Copy link
Copy Markdown
Author

thanks

@michcio15

Copy link
Copy Markdown
Author

or maybe add this to is using property?

@louis1706

Copy link
Copy Markdown

or maybe add this to is using property?

very good idea actually do not even need this method at all if you make it on the IsUsing property

@michcio15 michcio15 left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

wow good job me

@louis1706 louis1706 changed the title feat: usable start using feat: add setter Usable::IsUsing Feb 16, 2026

@Someone-193 Someone-193 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

seem legit

@louis1706
louis1706 merged commit 59645fc into ExMod-Team:dev Feb 19, 2026
6 checks passed
louis1706 added a commit that referenced this pull request Mar 31, 2026
* Adds a event that is called after player stops talking with 1576

* Simplify initialization of TransmissionEnded event.

* should be no more warnings when build

* Apply suggestions from code review

Co-authored-by: @Someone <45270312+Someone-193@users.noreply.github.com>

* added the suggestions to make it more exiled like

* Moved to Player Handler

* Update Scp1576TransmissionEnded.cs

Change comments

* Add `StartUsing` method to force item usage

* adds very professional comment

* Adds stop using

* Refactor `IsUsing` property to include setter and remove redundant usage methods

---------

Co-authored-by: @Someone <45270312+Someone-193@users.noreply.github.com>
Co-authored-by: Yamato <66829532+louis1706@users.noreply.github.com>
@michcio15
michcio15 deleted the feat/usable-start-using branch April 30, 2026 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants