Skip to content

CSW - Improve CSW tripod placement#11433

Open
johnb432 wants to merge 2 commits into
masterfrom
csw-add-deploy
Open

CSW - Improve CSW tripod placement#11433
johnb432 wants to merge 2 commits into
masterfrom
csw-add-deploy

Conversation

@johnb432

Copy link
Copy Markdown
Contributor

When merged this pull request will:

  • Similar to cargo's deploy.
    • Instead of placing randomly, you now must place the tripod yourself.
    • A preview object allows you to place the tripod (position + rotation around z-axis).
    • Once you confirm the deployment, it will start the progressbar.
    • Once the progressbar has finished, it will place the tripod at the same position with the same rotation as the preview object.
    • If there is a surface below the tripod, it will snap the tripod to said surface.

IMPORTANT

  • If the contribution affects the documentation, please include your changes in this pull request so the documentation will appear on the website.
  • Development Guidelines are read, understood and applied.
  • Title of this PR uses our standard template Component - Add|Fix|Improve|Change|Make|Remove {changes}.

@johnb432 johnb432 added this to the 3.21.1 milestone Jul 17, 2026
@johnb432 johnb432 added the kind/enhancement Release Notes: **IMPROVED:** label Jul 17, 2026
private _tripodPreviewObjectRadius = 1 max ((boundingBoxReal [_tripodPreviewObject, "FireGeometry"]) select 2);

// Add height offset of model
private _offset = ((_tripodPreviewObject modelToWorldVisual [0, 0, 0]) select 2) - ((_player modelToWorldVisual [0, 0, 0]) select 2) + 1;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

_tripodPreviewObject modelToWorldVisual [0, 0, 0] 
= [0.0249804,-0.180422,-142.346]

_player modelToWorldVisual [0, 0, 0] 
= [1686.61,5628.52,0.00143862]

offset is -141.348?
placement is blocked, until I scroll mouse, then it works fine

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.

Fixed, although the solution isn't as elegant as I'd like it to be. Constant offset is easier to handle though.
I'll have to update cargo's deploy too, as it has the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/enhancement Release Notes: **IMPROVED:**

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants