ULX

Author Topic: Converting Single file into Gmod Tool  (Read 1771 times)

0 Members and 1 Guest are viewing this topic.

Offline LuaTenshi

  • Hero Member
  • *****
  • Posts: 545
  • Karma: 47
  • Just your ordinary moon angel!
    • Mirai.Red
Converting Single file into Gmod Tool
« on: August 02, 2016, 01:33:00 AM »
Hello I have recently created https://gist.github.com/LuaTenshi/85783551ebad9c410ae7497059fca732 and it works well.

However I would like to build it into one easy to use tool, that I may publish to the workshop.
The problem here is that I'm not sure how to create a tool for the task above without tons of messy and potentially laggy networking.

For me one of the biggest issues is that base_brush is NULL on the client however I would like to have an option for clients to be able to see the borders of the protection.
Would I have to create a separate client-side model to follow the brush around or is there some sort of trick for getting this to work?

The smaller issue of course is the networking, how would I get info from the tool to the entity without constantly sending net messages back and forth? (Too many net messages cause lag.)

P.S. I've done stuff with Garry's Mod for so long but never bothered to learn how to properly do tools.  :'(

Update: Eventually figured it out... kinda had to work around base_brush being NULL on the client. But hey it all worked out in the end. https://steamcommunity.com/sharedfiles/filedetails/?id=737811322
« Last Edit: August 05, 2016, 01:46:05 PM by LuaTenshi »
I cry every time I see that I am not a respected member of this community.