Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Rendering: Add connections between entities #284

Open
LogicAndTrick opened this issue Oct 30, 2018 · 3 comments
Open

Rendering: Add connections between entities #284

LogicAndTrick opened this issue Oct 30, 2018 · 3 comments

Comments

@LogicAndTrick
Copy link
Owner

Draw lines between triggers and their target entities.

@TeamSpen210
Copy link

This is somewhat of a subset of the line() "behavior" in Source FGDs, since it can be configured to produce this functionallity. It'd make sense to then just synthesize the definition in GoldSource FGDs.

@LogicAndTrick
Copy link
Owner Author

Interesting, I didn't know Source had behaviours for that, but it makes sense. It might just be a matter of automatically adding a line behaviour any class that has both targetname and target keys.

@TeamSpen210
Copy link

The syntax is pretty customisable, it goes like line(255 255 255, targetname, target). It'll read the target keyvalue on this entity and draw a line to the first entity with the matching targetname (or whatever keyvalues you specify)? You can also add a second pair to specify the other end of the line, so it goes between two entities instead of to the current one. (Useful for say env_beam.)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants