Skip to content

[ZH] Make USA Particle Cannon Laser reselectable #990

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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Caball009
Copy link

@Caball009 Caball009 commented May 31, 2025

Reselecting the USA Particle Cannon Laser can only be done from the structure it originates from, which is mildly inconvenient.
Draft for now; would need to be replicated in Generals.

I got it mostly working but ran into some issues. In the end I just assigned the objectID of the 'parent' Particle Cannon structure as producerID to the drawable that gets created upon firing the PC. I also modified the mouse selection code to make the laser beam selectable and added a lookup for the producerID to select the 'parent' PC structure. These are the current issues:

  1. The laser cannot be selected by clicking anywhere, it has to be done by dragging a selection region.
  2. The drawable that gets created, "SuperweaponPing", is fixed in place. So the laser beam is only selectable at the initial coordinates.
  3. Anything that's selectable in the region around the initial coordinates may hinder the selection process. The lifetime of the ping outlasts the laser beam by a couple of seconds, so this might make it harder to select the right PC when firing multiple PCs at a specific location.

There's probably a better way to do all this, though.

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.

1 participant