Lua-coded version of the PhysGun.
Many features to come, but functional enough for a release.
Contains all a physgun does except:
WASD+E rotating side to side and panning forwards and backwards.
Shift+E 45 degree snaps.
CoolyFooly Graphics.
Weld constraint is a big unstable, gonna experiment with other constraints.
[url=http://www.garrysmod.org/downloads/?a=view&id=91877][img]http://www.garrysmod.org/img/?t=dll&id=91877[/img][/url]
PS: If released before, then my google must be broken.
Some screenshots please? =)
Nice. I can't really see this useful but I'm sure some roleplayers or something will find it useful.
What's wrong the the physgun we have already?
[editline]10:46AM[/editline]
Unless you add more features that extends the normal physgun, I don't see the point in this, sorry.
some kind of experiment i think.
you can finally change some stuff and make it like the super grav gun(ability to rag-doll NPC)
Mega grav gun plox :v:
I know one person that will find useful.. BattlePoppe, he will be able to use this for the HL2 Beta SWEPS v2
I thnk this is more a proof of concept than anything else. But great release and I hope you add more things to it.
Isn't this already done by garry? I can do exactly those things too already in the game. Did you just rip those off somewhere or stole from garry or what? Why make something garry already gave us.
[QUOTE=jakejakke;20366755]Isn't this already done by garry? I can do exactly those things too already in the game. Did you just rip those off somewhere or stole from garry or what? Why make something garry already gave us.[/QUOTE]
You're an idiot.
Pics
[QUOTE=MakeR;20360175]What's wrong the the physgun we have already?
[editline]10:46AM[/editline]
Unless you add more features that extends the normal physgun, I don't see the point in this, sorry.[/QUOTE]
Point is to allow people to modify the physgun or to see how it works.
What's the point in replicating Half-Life 2 guns in lua? To allow modification.
[QUOTE=jakejakke;20366755]Isn't this already done by garry? I can do exactly those things too already in the game. Did you just rip those off somewhere or stole from garry or what? Why make something garry already gave us.[/QUOTE]
garry :D didn't release a lua version of the physgun.
Seems interesting, whats coming for v2?(if you make one)
GMod Physics gun is done in C++, this one is done in Lua. (Just for those people who don't know the difference :downs:) I remember a video that Blackops had of his version of a Lua physgun. I wanna try to learn off of this!
[B]Stupid Edit:[/B]
Can you quick-whip a reload function to unfreeze the prop your looking at for the
[lua]function SWEP:Reload()[/lua]
You should really use [b][url=wiki.garrysmod.com/?title=PhysObj.ComputeShadowControl]PhysObj.ComputeShadowControl [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
Ha, I was waiting for you to post :)
[QUOTE=blackops7799;20370588]You should really use [b][url=wiki.garrysmod.com/?title=PhysObj.ComputeShadowControl]PhysObj.ComputeShadowControl [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b][/QUOTE]
I like using gluebobs, they're easier to control without lots of mathematics.
I guess I'll switch to ComputeShadowControl later.
Edit:
Nvm, ComputeShadowControl won't work unless I create a SENT. Hm, deja vu, I think I said this before.
[QUOTE=BoingBoing;20372058]I like using gluebobs, they're easier to control without lots of mathematics.
I guess I'll switch to ComputeShadowControl later.
Edit:
Nvm, ComputeShadowControl won't work unless I create a SENT. Hm, deja vu, I think I said this before.[/QUOTE]Eh, you could just remove the grabbed entity and create a duplicate.
Don't know how that would work for contraptions, though.
[QUOTE=Ultragamer05;20372415]Eh, you could just remove the grabbed entity and create a duplicate.
Don't know how that would work for contraptions, though.[/QUOTE]
seems very bad.
Edit: Just got the idea of another gluebob entity, but instead of prop_physics I would create a fake sent. It would be invisible. The real physical object would be parented.
[QUOTE=BoingBoing;20372587]seems very bad.[/QUOTE]What I'm saying is that's the only way I'd see it working.
[editline]06:40PM[/editline]
[quote]Edit: Just got the idea of another gluebob entity, but instead of prop_physics I would create a fake sent. It would be invisible. The real physical object would be parented.[/QUOTE]Sounds good, but there would, of course, be collision problems.
The way Garry does it is he maximizes the mass and then controls the prop from there. I assume you could just use velocity afterwards to move the prop. That way you'd never have to mess with the prop's properties (except for mass, but you can change it back when it is let go).
[QUOTE=Ultragamer05;20372800]What I'm saying is that's the only way I'd see it working.
[editline]06:40PM[/editline]
Sounds good, but there would, of course, be collision problems.
The way Garry does it is he maximizes the mass and then controls the prop from there. I assume you could just use velocity afterwards to move the prop. That way you'd never have to mess with the prop's properties (except for mass, but you can change it back when it is let go).[/QUOTE]
In the current setup, the gluebob's mass is set to the prop mass * 99999
There wouldn't be collision problems, I would set the sent to the position, angle, and model of the prop being lifted.
[QUOTE=Chad Mobile;20370269]GMod Physics gun is done in C++, this one is done in Lua. (Just for those people who don't know the difference :downs:) I remember a video that Blackops had of his version of a Lua physgun. I wanna try to learn off of this!
[B]Stupid Edit:[/B]
Can you quick-whip a reload function to unfreeze the prop your looking at for the
[lua]function SWEP:Reload()[/lua][/QUOTE]
[lua]
function SWEP:Reload()
if self.Owner and self.Owner:GetEyeTrace().Entity and self.Owner:GetEyeTrace().Entity:IsValid() then
local physobj = self.Owner:GetEyeTrace().Entity:GetPhysicsObjectNum(self.Owner:GetEyeTrace().PhysicsBone)
if physobj and physobj:IsValid() then
physobj:EnableMotion(true)
physobj:Wake()
physobj:SetVelocity(0,0,-1)
end
end
end
[/lua]
[QUOTE=BoingBoing;20373356]
[/lua]function SWEP:Reload()
if self.Owner and self.Owner:GetEyeTrace().Entity and self.Owner:GetEyeTrace().Entity:IsValid() then
local physobj = self.Owner:GetEyeTrace().Entity:GetPhysicsObjectNum(self.Owner:GetEyeTrace().PhysicsBone)
if physobj and physobj:IsValid() then
physobj:EnableMotion(true)
physobj:Wake()
physobj:SetVelocity(0,0,-1)
end
end
end
[/lua]
Thanks :j:
[/QUOTE]
[QUOTE=Profanwolf;20367041]You're an idiot.[/QUOTE]
Explain? Idiot.
[QUOTE=jakejakke;20529898]Explain? Idiot.[/QUOTE]
:doh:
Honest to God, I hope you're trolling.
Boing Boing this is very useful. Thanks for making it! My one question/suggestion would be to make it so that when you pick something up and turn, the object turns with you instead of its angles remaining the same. I would do this myself but 1)my graphics card is dead and 2) i hate/do not understand vector math.
NECROPOST.
New download link, please. This ones broke.
Really?! Its broke?! It hasn't been updated for over 2 years. Don't all addons break after a few months or weeks, because of Source updates or Gmod updates? Gee. Maybe thats why there isnt a working download link.
[QUOTE=SteelSliver;37708828]NECROPOST.
New download link, please. This ones broke.[/QUOTE]
The OP was banned over two years ago, don't expect one.
[QUOTE=SGTSpartans;37708888]Really?! Its broke?! It hasn't been updated for over 2 years. Don't all addons break after a few months or weeks, because of Source updates or Gmod updates? Gee. Maybe thats why there isnt a working download link.[/QUOTE]
What I usually like to do is load up the old addon and see all the broken functions and go back and fix them :P So don't go all "oh ur a derp its old so its yah broken k?" I know it is broken, looking at the age. I'm not an ignorant child. I mean the DOWNLOAD LINK ISN'T WORKING. Not the addon!
EDIT: Ok maybe I am, cause you said there isn't a working DL link, but still.
[QUOTE=.\\Shadow};37708936]The OP was banned over two years ago, don't expect one.[/QUOTE]
Thank you for being helpful.
I need this, I want working link :[
[highlight](User was banned for this post ("dumb bump" - postal))[/highlight]
Sorry, you need to Log In to post a reply to this thread.