-
Notifications
You must be signed in to change notification settings - Fork 238
Tactical Paint #6725
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
base: develop
Are you sure you want to change the base?
Tactical Paint #6725
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall - looks exciting!
Overall a few code style suggestions:
- Classes should reside in their own files. If you do not do this they can become impossible to hook properly (hello collection of unit, weapon and projectile classes files).
- There's some hooks directly into the worldview class in the
Main
function. Probably best to just add the logic to the worldview class itself.
And it appears (based on your video) that besides painting, you can also remove lines. I understand the idea, but does it not make it needlessly complex from all directions? More complex to implement. More complex to sync. More complex to maintain. More complex to moderate in case people make weird drawings...
What if instead we just only provide the ability to draw lines and then they fade out relatively quickly?
I think it may cause some unwanted cases when you draw something important and It disappears. I understand that logic may become overcompilcated, but it is worth to do for such feature. |
I don't agree. A lot of features in FAF are too complicated for what they need to be. And it reduces the ability to maintain it and the ability make improvements based on feedback. As an example, this is all that you can do in Dota 2: Of course, in Dota it only lingers for seconds. We could keep it for 10-20 seconds. |
This is also related. |
Co-authored-by: lL1l1 <82986251+lL1l1@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The minimum distance is too low so it's hard to draw with precision. For example I find it difficult to draw an arrow head, or to circle a mex spot when zoomed in
I had to take some time to find what the actual minimum distance is calculated from in Canvas.lua
fa/lua/ui/game/TacticalPaint/Canvas.lua
Line 279 in e38d19f
local offset = zoom / 100 |
I would make that
100
value a local variable so it can be adjusted easily just like minDist
. Same for the 50
value used for the eraser radius.It would also be nice to have a line connecting to your cursor while you are drawing. The line would be "placed" once it is longer than minDist or when drawing ends.
Co-authored-by: lL1l1 <82986251+lL1l1@users.noreply.github.com>
Co-authored-by: lL1l1 <82986251+lL1l1@users.noreply.github.com>
Co-authored-by: lL1l1 <82986251+lL1l1@users.noreply.github.com>
Co-authored-by: lL1l1 <82986251+lL1l1@users.noreply.github.com>
This feature adds ability to draw lines in the worldview which teammates can see. (I'm bad and describing things xd)

It is possible thanks to this binary patch.
Description of the proposed changes
Testing done on the proposed changes
Checklist