Garry's Mod

Garry's Mod

working hammer weld swep
29 Comments
bad spy radar 23 Aug @ 5:59am 
@mroczny pączek Nail things together (the nail has to go through both to make it connect there)
mroczny pączek 2 May @ 1:49pm 
how to build?
vista 24 Oct, 2023 @ 12:53am 
goes hard :steamhappy:
otherside  [author] 12 Aug, 2023 @ 10:50am 
ye, i saw that
Lombaxtard 12 Aug, 2023 @ 8:02am 
Here's that second Hands addon I was talking about, you can try it out: https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=1894293380&searchtext=hands+drag
Lombaxtard 12 Aug, 2023 @ 4:17am 
When using with "Weapon Switching Animation"

[working hammer swep] lua/weapons/weapon_hammer.lua:93: Tried to use a NULL entity!
1. EmitSound - [C]:-1
2. unknown - lua/weapons/weapon_hammer.lua:93
3. SelectWeapon - [C]:-1
4. unknown - lua/autorun/weaponswitchanim.lua:77

[working hammer swep] lua/weapons/weapon_hammer.lua:108: Tried to use a NULL entity!
1. SendWeaponAnim - [C]:-1
2. unknown - lua/weapons/weapon_hammer.lua:108
Lombaxtard 11 Aug, 2023 @ 9:17pm 
Maybe assigning each "nail (weld) constraint" a number, attaching it to that specific object (nail) and storing it. Then activating "Edit Mode" by holding R and clicking %MB while aiming at that numbered nail's bounding box. But I'm no expert, maybe you tried exactly that, or maybe described method is a bit over the top for this addon's sake
That's not too crucial anyway, I just thought it would be nice but not essential
otherside  [author] 11 Aug, 2023 @ 11:02am 
i tried making it before, it didnt turned out well
Lombaxtard 11 Aug, 2023 @ 8:53am 
One more thing, please consider possibility to remove nails from a prop you're looking at by pressing "R" for example? "undo" is fine, but if you do something else after building stuff it's kind of hard to undo 'specific' nails..
Lombaxtard 11 Aug, 2023 @ 2:09am 
And while you're at it, maybe disable impact holes when successfully nailing something? Sometimes decals get all messed up and leave huge marks on the face of props
Lombaxtard 11 Aug, 2023 @ 2:08am 
For now I'm just using "The Advanced Hands Swep" to drag stuff around, but your idea sounds promising if implemented in the hammer weapon as well, because it would allow to hold things and nail them together without having to put them against a wall or something
I remember another Hands SWEP that used to work similarly to what you described, by using right mouse button it would allow you move (not as aggressively as TAHS) props Penumbra/Amnesia style with a sound grabbing something, but I can't seem to be able to find it
Also, it couldn't move some seemingly lightweight props (according to Weight STool) that were similar to others of such weight and volume that you COULD actually move around. And you weren't able to move almost any Entities with it, which was a huge deal breaker for me
Anyway, it's be cool to see you try implement dragging your way
otherside  [author] 11 Aug, 2023 @ 1:54am 
ive got an idea of making it so clicking rmb will drag object, and speed of dragging will be the weight of object, so you will be able to move objects that you normally cant with simple pressing of E but at the same time you wont be able to drag objects like big buildings
Lombaxtard 11 Aug, 2023 @ 1:42am 
Error is gone, nails are back to normal, viewmodel is looking great. Thanks a lot for your work :)
P.S. An addon of this kind was my dream many years ago. Wanted something to build with, without using physgun and/or toolgun
In my mind it was some kind of blowtorch to weld stuff together as "Weld" tool does, but your hammer thing is actually cooler and works really well
Thanks again big man
otherside  [author] 11 Aug, 2023 @ 1:29am 
should be fixed now
Lombaxtard 11 Aug, 2023 @ 1:29am 
And nails are errors now for some reason
Lombaxtard 11 Aug, 2023 @ 1:26am 
Awesome, that worked out pretty well
But there's a fresh new error after the update:
[working hammer swep] lua/entities/gmod_nail/init.lua:24: attempt to index global 'ent' (a nil value)
1. unknown - lua/entities/gmod_nail/init.lua:24
otherside  [author] 11 Aug, 2023 @ 1:14am 
Lombaxtard, i updated the addon with fixed viewmodel
Lombaxtard 11 Aug, 2023 @ 12:14am 
Well, that looks good enough to me (on the video). It's a simple tool you've made so simplistic viewmodel representation fits well I think
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2832209415&searchtext=build
Also, please use c_model (if possible) if you'll actually get to it
Thanks for your replies by the way
otherside  [author] 10 Aug, 2023 @ 11:36pm 
well, worldmodel is from other addon, i added it so players would know if the other player holds crowbar or the hammer swep, if you want, i can do the same for viewmodel but i dont think that it would be good
Lombaxtard 10 Aug, 2023 @ 11:30pm 
Weird, on the second screenshot there's a hammer from addon's preview
Pretty common model on the workshop afaik
otherside  [author] 10 Aug, 2023 @ 11:28pm 
and for everyone else, because i dont have a view/worldmodel i can use
Lombaxtard 10 Aug, 2023 @ 11:25pm 
Can you please add view&world models? It's left-handed crowbar for me
Commissar Stupid 29 Jun, 2023 @ 7:26pm 
Can't wait to Nail a Breen Ragdoll or a Zombie to a Box or some Shit.
Кудасай Вайт 26 Jun, 2023 @ 11:39am 
единственное говно которое не единственное говно которое не говно
boo 25 Jun, 2023 @ 5:01pm 
nis
littlefunnytnt 19 Jun, 2023 @ 8:08am 
the nails are crossbow nails?
littlefunnytnt 19 Jun, 2023 @ 8:08am 
[working hammer swep] lua/weapons/weapon_hammer.lua:196: attempt to index local 'constraint' (a boolean value)
1. MakeNail - lua/weapons/weapon_hammer.lua:196
2. unknown - lua/weapons/weapon_hammer.lua:172
Nut Buster 19 Jun, 2023 @ 7:47am 
Well, let me have a rule and a saw and a board and I'll cut it
littlefunnytnt 19 Jun, 2023 @ 6:44am 
Thanks, it was very useful! +award :steamhappy: