Skip to content

Interaction - Check canInteractWith before taking dropped weapons#9783

Merged
LinkIsGrim merged 2 commits intomasterfrom
carryWeaponLock
Apr 1, 2024
Merged

Interaction - Check canInteractWith before taking dropped weapons#9783
LinkIsGrim merged 2 commits intomasterfrom
carryWeaponLock

Conversation

@PabstMirror
Copy link
Copy Markdown
Contributor

20240207195944_1

@PabstMirror PabstMirror added the kind/bug-fix Release Notes: **FIXED:** label Feb 8, 2024
@LinkIsGrim
Copy link
Copy Markdown
Member

:(

@johnb432
Copy link
Copy Markdown
Contributor

Do we also want to lock the inventory while carrying?
It would mean that we would also need to handle edge cases liking players dying/disconnecting etc.

@PabstMirror PabstMirror modified the milestones: 3.17.0, Ongoing Mar 28, 2024
@PabstMirror PabstMirror changed the title Interaction - Block interaction on carried ground weapon holders Interaction - Check canInteractWith before taking dropped weapons Apr 1, 2024
@PabstMirror
Copy link
Copy Markdown
Contributor Author

I guess this is desired behavior
but we should still check canInteractWith to prevent handcuffed or otherwise locked players from using this
(this checks canInteractWith with objNull as target so it won't check if claimed)

Copy link
Copy Markdown
Contributor

@johnb432 johnb432 left a comment

Choose a reason for hiding this comment

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

LGTM

@LinkIsGrim LinkIsGrim modified the milestones: Ongoing, 3.17.0 Apr 1, 2024
@LinkIsGrim LinkIsGrim merged commit 0c589c2 into master Apr 1, 2024
@LinkIsGrim LinkIsGrim deleted the carryWeaponLock branch April 1, 2024 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug-fix Release Notes: **FIXED:**

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants