Skip to content
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

add buildingPos dummy object #1138

Merged
merged 8 commits into from
May 10, 2019
Merged

add buildingPos dummy object #1138

merged 8 commits into from
May 10, 2019

Conversation

commy2
Copy link
Contributor

@commy2 commy2 commented May 4, 2019

When merged this pull request will:

@commy2 commy2 added the Feature label May 4, 2019
@commy2 commy2 added this to the 3.11.2 milestone May 4, 2019
@commy2
Copy link
Contributor Author

commy2 commented May 4, 2019

  • basically an invisible micro building with a single AI building position at the center
  • for use in the editor and with scripts (buildingPos command)
dummy object snaps to buildings

https://i.imgur.com/niX8oQY.jpg

dummy object can be used together with the GARRISON waypoint to create a formation

https://i.imgur.com/8pz15Vt.png
https://i.imgur.com/JoTqIAp.png

  • Class is grouped in editor VR Objects / Helpers because that made the most sense to me and I don't want to create a new category for a single item.
  • adds author to the other object classes in that component

@PabstMirror
Copy link
Contributor

might want to double check that p3d
pboProject build time goes from 8 to 28 seconds (cleaned p:\temp each time)
seems to be animation keyframes on LOD 0?

@commy2
Copy link
Contributor Author

commy2 commented May 4, 2019

Can you see these in Oxygen? I am not huge into that program.

@PabstMirror
Copy link
Contributor

Untitled

@commy2
Copy link
Contributor Author

commy2 commented May 4, 2019

Animation should be deleted now. Model size went from 27kB to 6kB.

@commy2
Copy link
Contributor Author

commy2 commented May 4, 2019

  • added the helper as well as the target dummies to Zeus.

@PabstMirror
Copy link
Contributor

Still taking 28 seconds
changed texture from a3\weapons_f\data\clear_empty.paa to #(argb,8,8,3)color(0,0,0,0,co)
and it's back to 8?
might just be pboProject being weird, but I also don't see any harm in just using that color as a texture

@commy2
Copy link
Contributor Author

commy2 commented May 6, 2019

If that works then fine. Should be identical. Prodedural texture seems slightly preferable even, because you don't rely on external files.

Push the change or let me do it on the weekend?

@commy2
Copy link
Contributor Author

commy2 commented May 8, 2019

I added CBA_fnc_buildingPositions, which is exactly the same as BIS_fnc_buildingPositions and buildingPos -1, except that it also reports all custom building positions (CBA_buildingPos objects) inside the ClipVisual bounding box real of the object and now my head hurts due to the math.

bunker call BIS_fnc_buildingPositions
//[]

bunker call CBA_fnc_buildingPositions
//[[3706.63,349.067,2.68139]]

@commy2
Copy link
Contributor Author

commy2 commented May 9, 2019

Function approved?

@commy2 commy2 merged commit cbefd8c into master May 10, 2019
@commy2 commy2 deleted the buildingPos-object branch May 10, 2019 14:37
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.

Donation: Custom Building Position
2 participants