Your Ad Here

Subscribe
 Post #1
 6th August 2007
Spacetech's Avatar
January 2006
879 Posts
Smart Constraint by Spacetech


This tool is like an updated version of smart-welder. One of the key features is that it constraints by time. It will weld every 0.1 seconds which reduces strain on the server. With smart welder it will constraint everything instantly which can cause crashes. It has the same basic features (select by radius, weld, nocollide, unfreeze when it's done) but more. You can now Shift+Left Click to smart select, it selects all of the entities connected to the prop you clicked. When you E+Left Click, it selects by radius. The new thing with select by radius is that it only selects props that belong to you. When you Right click it will tell you when it starts. It will then begin to weld and/or nocollide over time at 0.1 second intervals. Once it's done it will notify you and it will deselect your props.

This also saves the color of the prop on select/deselect

How to Use: Select Smart Constraint tool. Spawn props. Left click the props or E+Left Click/Shift+Left Click. Right click. The props will be welded and/or nocollided and/or unfrozen.

Installation: Extract the Smart_Constraint folder to your garrysmod/addons directory

Options for server admins: Open up smart_constraint.lua and edit the line: TOOL.TimeBetweenConstraints = 0.1. (It's in seconds)

Options for clients:
  • Auto Select Radius
  • Weld Checkbox
  • Nocollide Checkbox
  • Freeze Checkbox
  • Unfreeze Checkbox

Change Log:
  • 1.2.2: Fixed Random Timer Error
  • 1.2.1: Dam notepad++
  • 1.2:
    The tool is now under: Constraints
    Removed a little useless part
    Can now freeze all props before starting
    It now tells you how many welds/nocollides were placed.
  • 1.1: Fixed an error with Shift+Left Click
  • 1.0: First release

Credits
  • Dunk - His smart welder gave me great ideas
  • Conna - I figured out how to use g_SBoxObjects
  • Tad2020 - Used a function of his for the base of Shift+LeftClick
 Post #2
 6th August 2007
sid378's Avatar
September 2005
161 Posts
Thanks! been looking for something like this :)
 Post #3
 6th August 2007
Gold Member
MegaJohnny's Avatar
April 2006
7,522 Posts
Good thinking.
 Post #4
 6th August 2007
Mikalh's Avatar
February 2005
317 Posts
Really nice, idea! I was hoping that someone would improve some of the good scripts we have.
 Post #5
 6th August 2007
Flibb3r's Avatar
July 2007
154 Posts
Good job
 Post #6
 6th August 2007
cbale2000's Avatar
May 2007
830 Posts
When I saw this, the first thing that came to mind was "oh sweet, a Smart Welder for welds, and other constraints like Ball Sockets too", oh well I can dream.

I do like the concept though, I've had problems myself where smart welder has crashed my game, its kinda like the older versions of advanced duplicator that would duplicate all at once, now it assembles it piece by piece, this is like the thing same only with welds!


Looks like a very cool mod and I'll definitely try it if I ever get Gmod working again (Stupid update).
 Post #7
 6th August 2007
Spacetech's Avatar
January 2006
879 Posts
cbale2000 posted:
I do like the concept though, I've had problems myself where smart welder has crashed my game, its kinda like the older versions of advanced duplicator that would duplicate all at once, now it assembles it piece by piece, this is like the thing same only with welds!
That's the exact reason why I made this. :)
 Post #8
 6th August 2007
Gold Member
L0LIMB0RED's Avatar
August 2007
2,691 Posts
Great work, this means even less server crashes! :D
 Post #9
 6th August 2007
Trell1337's Avatar
May 2007
80 Posts
Thank you! I love it, I really wanted an updated version of smart wield and now i have it!
 Post #10
 6th August 2007
Empire Phoen's Avatar
October 2006
1,613 Posts
Nice, add it to my server
 Post #11
 6th August 2007
Dennab
January 2007
1,058 Posts
I haven't downloaded it yet, but there is a problem with smart weld. When it unselects your props it resets the colour to 0 0 0 0 so you have to redo your colour, how ever, when you use no-collide multi, it saves the colour in a variable and changes it back when its finished. I don't know lua, so could you possibly add this feature?
 Post #12
 6th August 2007
Gold Member
Dennab
April 2007
7,088 Posts
Lua King? More like Lua God! Awesome work.
 Post #13
 6th August 2007
Spacetech's Avatar
January 2006
879 Posts
Joscpe posted:
I haven't downloaded it yet, but there is a problem with smart weld. When it unselects your props it resets the colour to 0 0 0 0 so you have to redo your colour, how ever, when you use no-collide multi, it saves the colour in a variable and changes it back when its finished. I don't know lua, so could you possibly add this feature?
It's already included :) (I'll edit first post telling people that)
 Post #14
 6th August 2007
Gold Member
tad2020's Avatar
December 2006
1,656 Posts
I've got a NoCollide tool like this (could do welds if one line is changed). I never released it cause it crashes gmod with "too many non-networked entities".
 Post #15
 6th August 2007
Locklear's Avatar
December 2006
1,627 Posts
Is this client side? If so... you would need a LUA God
 Post #16
 6th August 2007
Spacetech's Avatar
January 2006
879 Posts
Locklear posted:
Is this client side? If so... you would need a LUA God
You can't weld/nocollide client side so no, but if the server has this stool then you will have it when your playing.
 Post #17
 6th August 2007
PC Camp's Avatar
July 2007
1,736 Posts
o wow you are very smart person. you have my download.
 Post #18
 6th August 2007
Gold Member
EVILPIGGY's Avatar
August 2005
222 Posts
Looks good downloading now
 Post #19
 6th August 2007
Empire Phoen's Avatar
October 2006
1,613 Posts
Hm actuely you could create a clientside welde system, that just takes control over the player, and works kinda like a makro, but that that is slow, mostly useless and simply stupid way of doing it.

Oh, Spacetech could you add the option, Nocolide to everything else selcted
 Post #20
 6th August 2007
Kyzer's Avatar
May 2007
346 Posts
Awesome (if it works :))
 Post #21
 6th August 2007
Dunk's Avatar
June 2005
209 Posts
Competition! Spacetech and I agreed that we should do seperate tools and have some friendly competition, so I'm releasing a new version of smart welder soon.
Edit:
It's up.
 Post #22
 8th August 2007
TomatoSoup's Avatar
December 2006
1,654 Posts
It appears that this doesn't duplicate.
 Post #23
 8th August 2007
Spacetech's Avatar
January 2006
879 Posts
TomatoSoup posted:
It appears that this doesn't duplicate.
I think that's impossible. It just welds and nocollides using the default functions. (constraint.Weld(), constraint.Nocollide())
 Post #24
 8th August 2007
TomatoSoup's Avatar
December 2006
1,654 Posts
Spacetech posted:
I think that's impossible. It just welds and nocollides using the default functions. (constraint.Weld(), constraint.Nocollide())
Hmmm... Smart welder saved though.
 Post #25
 8th August 2007
Finaldeath's Avatar
March 2007
1,386 Posts
I noticed that you put this in Construction and not Constraints, not that big of a deal i can change it but for the people who don't know how you should change it whenever you update this again and thanks for the great tool it is much better than smart welder cause of the all at once thing lol
 Post #26
 8th August 2007
Spacetech's Avatar
January 2006
879 Posts
Finaldeath posted:
I noticed that you put this in Construction and not Constraints, not that big of a deal i can change it but for the people who don't know how you should change it whenever you update this again and thanks for the great tool it is much better than smart welder cause of the all at once thing lol
Just updated to version 1.2 with your suggestion. Theirs now also an option to freeze the selected props before constrainting and it will tell you how many welds/nocollides were made once it finishes. )
 Post #27
 8th August 2007
lego290's Avatar
April 2007
7 Posts
sid378 posted:
Thanks! been looking for something like this :)
Me too
 Post #28
 9th August 2007
Go101's Avatar
December 2006
26 Posts
It is really nice :)

I did find a bug when you weld some props together with "Nocllide" on then undo it the props still have the "Nocllide" is there a way to have is save it or something so when it is undone it is how it was before you weld it?
 Post #29
 9th August 2007
Spacetech's Avatar
January 2006
879 Posts
Go101 posted:
It is really nice :)

I did find a bug when you weld some props together with "Nocllide" on then undo it the props still have the "Nocllide" is there a way to have is save it or something so when it is undone it is how it was before you weld it?
Well I don't think so. I would just not smart constraint it if you just wanna nocollide, then undo it.
 Post #30
 9th August 2007
Sneakytouch's Avatar
December 2006
112 Posts
I love it, I crashed tomato's server twice now because I welded my stuff and everyone building behind me, then I just stopped using smart weld.
 Post #31
 9th August 2007
Gold Member
Miigga's Avatar
October 2006
4,506 Posts
This could be a bit better than the smart welder but I still use the smart welder because this only welds the props randomly.

Add an option to weld the props to the nearest neighbours and I would start using this.
 Post #32
 9th August 2007
Spacetech's Avatar
January 2006
879 Posts
Miigga posted:
This could be a bit better than the smart welder but I still use the smart welder because this only welds the props randomly.

Add an option to weld the props to the nearest neighbours and I would start using this.
This doesn't weld props randomly It does what you say it didn't do.
 Post #33
 9th August 2007
TomatoSoup's Avatar
December 2006
1,654 Posts
Sneakytouch posted:
I love it, I crashed tomato's server twice now because I welded my stuff and everyone building behind me, then I just stopped using smart weld.
Hmmm. What name where you using?

Anyway, I remember that smart welder would duplicate.
 Post #34
 9th August 2007
Spacetech's Avatar
January 2006
879 Posts
TomatoSoup posted:
Hmmm. What name where you using?

Anyway, I remember that smart welder would duplicate.
So your saying the weld's/ nocollides don't duplicate?
 Post #35
 9th August 2007
Dennab
January 2007
1,058 Posts
I have NoCollide Multi, but when I do too many things at once it crashes. So I used your stool with NoCollide checked and Weld unchecked, but a couple props didn't get no collided...
 Post #36
 9th August 2007
Spacetech's Avatar
January 2006
879 Posts
Joscpe posted:
I have NoCollide Multi, but when I do too many things at once it crashes. So I used your stool with NoCollide checked and Weld unchecked, but a couple props didn't get no collided...
What did you have Max Welds/Nocollides set to?
 Post #37
 9th August 2007
Dennab
January 2007
1,058 Posts
Default settings. I believe it's 3?
Oh, I just noticed there is a new version, downloading...
 Post #38
 9th August 2007
Spacetech's Avatar
January 2006
879 Posts
Joscpe posted:
Default settings. I believe it's 3?
Oh, I just noticed there is a new version, downloading...
3 means that each prop will be nocollided to it's 3 closest neighbors. Try making the setting more depending on how many props your are constrainting.
 Post #39
 10th August 2007
aezKoraZe's Avatar
July 2007
42 Posts
All your scripts rock :)
 Post #40
 13th August 2007
tomato3017's Avatar
April 2007
474 Posts
TomatoSoup posted:
Hmmm. What name where you using?

Anyway, I remember that smart welder would duplicate.
I believe he is talking about my servers, tomatosoup.
Reply

All times are GMT. The time now is 11:58PM.

Facepunch Studios 2010 - Server 'MARGE'