NucleoidMC / nucleoid-creator-tools

Tools for working with and creating maps for the Nucleoid ecosystem
GNU Lesser General Public License v3.0
3 stars 7 forks source link

Workspace regions should indicate angles #9

Open haykam821 opened 1 year ago

haykam821 commented 1 year ago

While workspace regions currently provide an obvious indication of their bounds, no such feature is available for less-standardized angle data. For example, an arrow hologram could point in the direction specified by the Angle, Rotation, Yaw, or Pitch fields.

One consideration to note is that some regions may use the Angle field to provide a value other than float degrees; for example, Last Card uses regions with angles that represent item frame rotation. This issue could be resolved in such mods by simply renaming the field, such as to FrameRotation.

Restioson commented 4 weeks ago

Is there a reason that this should not simply be a per-minigame thing?

haykam821 commented 4 weeks ago

Even if the format isn't a standard part of map templates, I think enough games use map templates with angle data in regions to justify making it part of the tools we have available. Arguably, the functionality we define here can be considered separate from the constraints defined in the Map Templates library, so we wouldn't need to worry too much about setting standards here.

As an aside, the NBT changes introduced in #27 help with knowing the value, but the value still does not get visualized.

Restioson commented 4 weeks ago

I think enough games use map templates with angle data

I agree; I think both Siege and KOTH use it for spawn angle. I'm not sure that it is easier to do it in plasmid than it is to do in the game itself however

As an aside, the NBT changes introduced in https://github.com/NucleoidMC/nucleoid-creator-tools/pull/27 help with knowing the value, but the value still does not get visualized.

Not disagreeing, but I wonder if visualization of the NBT is a maybe more general problem?