ficool2 / HammerPlusPlus-Issue-Tracker

Bug and feature request tracker for Hammer++
36 stars 1 forks source link

[Feature Request] Directional instance w/automatic clipping #410

Open Heatwu opened 1 year ago

Heatwu commented 1 year ago

recently I have been using instances to manage brushes on off-grid structures. It made me think that there may also be a way to set up aligned structure between two separate instance's grids.

This is where I would like to suggest a new entity: The Directional Instance. It would work like a mixture between func_instance and path_track. It has all the functionality of a regular func_instance, but you can also set the "Next Stop Target".

On having a "Next Stop Target" the "front" first Directional Instance will automatically point towards it's set target, rotating the orientation of the instance in the process

After this the Directional Instance (and the next Directional Instance it is set to aim at) is modified to be clipped between the average of the angle between them. For example if two Directional instances are angled at a 90° angle then the clip at the point of intersection will be at 45°

I don't know how hard it would be for h++ to modify unique instances with clipping from one template file without some dummy file fuckery(so maybe have clipping be an optional entity property) image visual example.zip

also there needs to be an entity property to control alignment of the instanced vmf on the origin of the D.I entity itself OR the average position between the D.I entity and its next stop target