Skip to content

Commit

Permalink
feat: add origin for every point entity
Browse files Browse the repository at this point in the history
this has the caveat of point entities now having the origin sphere
  • Loading branch information
braem committed Jun 13, 2021
1 parent 092afe7 commit 7d1413b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fgd/bases/BaseEntityPoint.fgd
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"When the player transitions to a new map, entities in the new map with globalnames matching entities in the previous map " +
"will have the previous map's state copied over their state."

origin(origin) : "Origin (X Y Z)" : : "The position of this entity's center in the world."
angles(angle) : "Pitch Yaw Roll (X Y Z)" : "0 0 0" : "This entity's orientation in the world. " +
"Roll is the rotation around the X axis, " +
"pitch is rotation around the Y axis and " +
Expand Down

3 comments on commit 7d1413b

@vrad-exe
Copy link

Choose a reason for hiding this comment

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

Does this now work correctly in Chaos Hammer? Normally it causes buggy behavior when dragging stuff in the 2D views.

@braem
Copy link
Member Author

@braem braem commented on 7d1413b Jun 13, 2021

Choose a reason for hiding this comment

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

Does this now work correctly in Chaos Hammer? Normally it causes buggy behavior when dragging stuff in the 2D views.

Wasn't aware this was an issue actually. The slowless I figure was because of the debug build i tested on. I'll test on release. Thanks for the heads up!

@vrad-exe
Copy link

Choose a reason for hiding this comment

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

I don't remember exactly what happened when I added it at one point, but I think it caused the origin keyvalue and the real origin to become desynced. Then when the map was saved one would take priority over the other, so entities might end up shifted around after reopening the map.

I never tried compiling with the keyvalue added, but I'd imagine it would cause similar issues.

Please sign in to comment.