Skip to content

Clickdrag subsystem and autofire enhancements.#5373

Merged
out-of-phaze merged 1 commit into
NebulaSS13:devfrom
MistakeNot4892:feature/mousedown
May 21, 2026
Merged

Clickdrag subsystem and autofire enhancements.#5373
out-of-phaze merged 1 commit into
NebulaSS13:devfrom
MistakeNot4892:feature/mousedown

Conversation

@MistakeNot4892
Copy link
Copy Markdown
Contributor

@MistakeNot4892 MistakeNot4892 commented May 15, 2026

Description of changes

  • Adds a subsystem to handle mobs clicking and dragging the mouse.
  • Clients now track a var of the last atom they moused over on their mob.
  • Generalises autofiring procs from guns to /obj/item.
  • Full auto is now FULL AUTO, guns will fire ten times a second.
  • Mounted plasma cutter is full auto now.

Why and what will this PR improve

Makes click and drag more consistent and simplifies the relevant code.

Authorship

Myself.

Changelog

🆑
tweak: Mech plasmacutter is full auto and mech AR full auto should now work.
tweak: Autofire should be more responsive in general.
/:cl:

@MistakeNot4892 MistakeNot4892 added the work in progress This PR is under development and shouldn't be merged. label May 15, 2026
@MistakeNot4892 MistakeNot4892 force-pushed the feature/mousedown branch 2 times, most recently from f757dc6 to e6c02ad Compare May 15, 2026 06:09
@MistakeNot4892 MistakeNot4892 changed the title Adding a subsystem to handle clickdragging. Clickdrag subsystem, autofire fixes, mech UI pass. May 15, 2026
@MistakeNot4892 MistakeNot4892 marked this pull request as ready for review May 15, 2026 13:55
@MistakeNot4892 MistakeNot4892 added ready for review This PR is ready for review and merge. and removed work in progress This PR is under development and shouldn't be merged. labels May 15, 2026
@MistakeNot4892 MistakeNot4892 force-pushed the feature/mousedown branch 4 times, most recently from a31c8d8 to 5fca762 Compare May 15, 2026 14:42
@MistakeNot4892 MistakeNot4892 added work in progress This PR is under development and shouldn't be merged. and removed ready for review This PR is ready for review and merge. labels May 16, 2026
@MistakeNot4892
Copy link
Copy Markdown
Contributor Author

Going to split some of these changes out.

@MistakeNot4892 MistakeNot4892 force-pushed the feature/mousedown branch 2 times, most recently from 11d115a to 410054e Compare May 16, 2026 04:47
@MistakeNot4892 MistakeNot4892 changed the title Clickdrag subsystem, autofire fixes, mech UI pass. Clickdrag subsystem and autofire enhancements. May 16, 2026
@MistakeNot4892 MistakeNot4892 added the has dependencies This PR should not be merged prior to any PRs linked in body or comments. label May 16, 2026
@MistakeNot4892 MistakeNot4892 force-pushed the feature/mousedown branch 2 times, most recently from d06493e to 40514bf Compare May 16, 2026 04:52
@MistakeNot4892
Copy link
Copy Markdown
Contributor Author

Depends on #5375.

@MistakeNot4892 MistakeNot4892 added ready for review This PR is ready for review and merge. and removed has dependencies This PR should not be merged prior to any PRs linked in body or comments. work in progress This PR is under development and shouldn't be merged. labels May 18, 2026
@@ -0,0 +1,53 @@
SUBSYSTEM_DEF(clickdrag)
name = "Clickdrag"
wait = 1
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

should this be a ticker subsystem instead of just a wait 1 subsystem? given that this handles user input i feel that would be desirable

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I don't know how to do this. The ticker we have in code is a 1 second wait.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Nvm I found SS_TICKER

Copy link
Copy Markdown
Member

@out-of-phaze out-of-phaze left a comment

Choose a reason for hiding this comment

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

should be good to go after SS_NO_INIT is added?

SUBSYSTEM_DEF(clickdrag)
name = "Clickdrag"
wait = 1
flags = SS_TICKER
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

probably also needs SS_NO_INIT since there's no initialize override for it?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Donezo

…at unreliable for fine-grained stuff.

Adding cursor updates to mousedrag procs in preparation for melee attack PR.
@out-of-phaze out-of-phaze merged commit b9665e0 into NebulaSS13:dev May 21, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready for review This PR is ready for review and merge.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants