Your Ad Here

Subscribe
 Post #1
 5th July 2008 Last edited by Sippeangelo; 18th September 2009 at 08:58PM..
Gold Member
Dennab
August 2006
2,743 Posts
Introduction:
Remember this video Garry made before GMod 10 was released where he used the mouse to weld boxes to the wall? I thought it was awesome, but I was really disappointed that you couldn't control the physgun with the mouse as well.

Description:
This script will add that functionality, letting you move props and pose ragdolls by simply holding the C button and use the mouse! Also it will let you press buttons, open doors and interact with the world in many ways by just using the mouse!

Video:

Features: (Not a complete list)
  • Move and freeze props
  • Pose ragdolls
  • Use buttons outside while sitting in a seat!
  • Press buttons
  • Explode dynamites
  • Open/Close doors
  • Toggle emitters
  • Turning on/off turrets
  • Using cameras that's not yours
  • Toggle lamps/light
  • Toggle thrusters
  • Activate prop spawners
  • Toggle stargate irises
  • Using ring teleporters
  • Toggle lasers
  • Turning on/off thumpers (The machines that scares antlions)
  • Making scanners deploy mines

Latest release:


How to use:
Hold C on your keyboard, then use your mouse to move and use things!
If you need to change this key for whatever reason you can find it in your keyboard settings, named "Context Menu". Bind it to whatever key you want.

Notes:
This is SERVER SIDE, meaning the server needs to have the script to make it work. If you host your own server, the players who join will be able to use the script even if they do not have it installed themselves.

Clientside?
Download this:
http://forums.facepunchstudios.com/s...d.php?t=566811
It will only allow you to use the physgun clientside. Not all fancy entity functions.

Do someone have a touch screen or a TabletPC that can run GMod?
I would really like to see this mod tested on a touch screen. I imagine it would be very cool moving around props and pressing buttons only using your fingers. If you have one, please record a movie where you are using this addon on your touch screen and post it here. It would be really appreciated!

Somebody just did! Thanks ThymeCypher!!
Awesomeness
 Post #2
 5th July 2008
Sakarias88's Avatar
January 2006
1,193 Posts
Good Job!
Have you played the game Penumbra?
You interact with the world in the exact same way.
 Post #3
 5th July 2008
SYLUX1992's Avatar
April 2007
73 Posts
Man! This is one of the coolest and most useful codings I have seen for Gmod. The coding must have been quite complicated for the system to work correctly. You have my download in a flash! Awesome job man!
 Post #4
 5th July 2008
McMissile's Avatar
May 2007
815 Posts
Awesome.

You should have named it mind control and given players an animation which put their fingers on their heads.

Looks fun.
 Post #5
 5th July 2008
Gold Member
tepholman's Avatar
March 2008
3,215 Posts
GMODGASM
 Post #6
 5th July 2008
help-me's Avatar
December 2007
62 Posts
awsome. i never saw that gmod video by garry but this could help
minge bags tho may spam it. i can think of bad uses but on single player this will be useful

Edit:

awsome

Edit:

awsomeonium
 Post #7
 5th July 2008
McMissile's Avatar
May 2007
815 Posts
Question, does this work with Prop protection? I'd put it on my server, but I don't want minges punting my contraptions around and auto deleting them.

Also, could you get a fix for the "crack keypads" ability?

I could see that getting abused in multiplayer.
 Post #8
 5th July 2008
Gold Member
Dennab
August 2006
2,743 Posts
McMissile posted:
Question, does this work with Prop protection? I'd put it on my server, but I don't want minges punting my contraptions around and auto deleting them.

Also, could you get a fix for the "crack keypads" ability?

I could see that getting abused in multiplayer.
I'll fix this in the next version probably released soon. Thanks for the info!
 Post #9
 5th July 2008
seacookie's Avatar
July 2007
99 Posts
Wow! This is awesome! You get my download! Plus a Lua King! I'm looking forward to all of your uploads.
 Post #10
 5th July 2008
Gold Member
s0m3_guy's Avatar
July 2007
4,987 Posts
I just had an idea. A Gmod point and click adventure game!
 Post #11
 5th July 2008
Gold Member
Dennab
April 2005
3,416 Posts
Great job!
 Post #12
 5th July 2008 Last edited by Dibz; 4th February 2009 at 01:04PM.. (Don't wanna be attacked by grammar nazis)
Dibz's Avatar
June 2008
322 Posts
Awesome, but can you add a right click control to move the balloons around if you know what I mean?
 Post #13
 5th July 2008
Gold Member
Lyoko774's Avatar
October 2005
2,978 Posts
Yay!
 Post #14
 5th July 2008
MrJelle's Avatar
July 2005
1,199 Posts
Would it be possible to make this configurable server-side, either through CVars or in a seperate file, so we can enable and disable features or even make them admin only? The idea of anyone just cracking keypads and running amock in servers with this is keeping me from putting it on my server.
 Post #15
 5th July 2008
4RT1LL3RY's Avatar
April 2008
771 Posts
Some one is already copying it and calling their own.
mousecontrol.zip
 Post #16
 5th July 2008
Gold Member
Lyoko774's Avatar
October 2005
2,978 Posts
4RT1LL3RY posted:
Some one is already copying it and calling their own.
mousecontrol.zip
The file contents are different..
 Post #17
 5th July 2008
BlackNecro's Avatar
June 2005
644 Posts
Just a small hint for you - if you set the physgun helper sent angle to the players angle and update it all the time (to the players angle) you'll achieve two good things. a) stuff won't rotate slowly and b) stuff rotates with the player, also you should set it's weight to 50k for max power ;P
 Post #18
 5th July 2008
Dennab
May 2008
239 Posts
4RT1LL3RY posted:
Some one is already copying it and calling their own.
mousecontrol.zip
I just made a clientside version of this, although it uses the default gmod physgun AND it's buggy. You could still use it in posing because physgun doesn't let you move things around when having the context menu open
 Post #19
 5th July 2008
Gold Member
Dennab
August 2006
2,743 Posts
Hemuli posted:
I just made a clientside version of this, although it uses the default gmod physgun AND it's buggy. You could still use it in posing because physgun doesn't let you move things around when having the context menu open
I was thinking of something like that before but then I decided just to replicate the physgun code because I did not want the items you are phygunning to be fixed, I wanted them to move around physically while you hold it. But that script is awesome anyway!
 Post #20
 5th July 2008
Mislum's Avatar
May 2006
1,003 Posts
Holy ****! Pure awesomeness!

*Downloading* Oh and I lol'd at the "Crack Keypad"
 Post #21
 5th July 2008
Gold Member
Dennab
August 2006
2,743 Posts
BlackNecro posted:
Just a small hint for you - if you set the physgun helper sent angle to the players angle and update it all the time (to the players angle) you'll achieve two good things. a) stuff won't rotate slowly and b) stuff rotates with the player, also you should set it's weight to 50k for max power ;P
Stuff are meant to be affected by physics. Light things will rotate slowly as you say but more heavy object will be affected by physics. Thanks anyway, you solved another problem.
 Post #22
 5th July 2008
xer2k8's Avatar
March 2008
124 Posts
Dude amazing job well done, i'm downloading now and trying it a.s.a.p

1x Lua King :D
 Post #23
 5th July 2008
Gold Member
Lyoko774's Avatar
October 2005
2,978 Posts
Oh dear..You gotta add prop protection support ASAP.
Also, feature request, lock/unlock vehicles?
 Post #24
 5th July 2008
hogofwar's Avatar
May 2008
436 Posts
I get this error when i try and toggle an iris:

Code:
autorun/server/sv_extended_context.lua:154: attempt to call method 'OpenIris' (a nil value)
 Post #25
 5th July 2008
Gold Member
Dennab
August 2006
2,743 Posts
hogofwar posted:
I get this error when i try and toggle an iris:

Code:
autorun/server/sv_extended_context.lua:154: attempt to call method 'OpenIris' (a nil value)
I guess I coded that with an old version of the stargate. What version are you using and where can I download it?
 Post #26
 5th July 2008
hogofwar's Avatar
May 2008
436 Posts
I have the SVN off the stargate thread:
http://forums.facepunchstudios.com/s...d.php?t=517558

And sometimes i see the text in top left corner sometimes.

Also I get this error when I use the physgun with this when I use this with any SWEP:
Code:
autorun/server/sv_extended_context.lua:46: attempt to index a nil value
And how am I supposed to use the ring transporter function in this on them?
 Post #27
 5th July 2008
Xeneon's Avatar
January 2008
291 Posts
Looks awesome. Just one question though, how does the remove things you throw away work and what use does it have.
 Post #28
 5th July 2008
Gold Member
Dennab
August 2006
2,743 Posts
Xeneon posted:
Looks awesome. Just one question though, how does the remove things you throw away work and what use does it have.
Well, as soon you trow a thing away it will automatically remove it if it's a specific number of units away. I usually throw away stuff I don't need instead of using the remover when I'm in a rush.
 Post #29
 5th July 2008
Dennab
May 2008
925 Posts
You sir, are a fucking WINNER.
 Post #30
 5th July 2008
Gold Member
Aska49's Avatar
October 2006
4,434 Posts
Fucking awesome, king'd.
 Post #31
 5th July 2008
Empire Phoen's Avatar
October 2006
1,613 Posts
How about a simple api for other coders?

Like a function to add own stuff to a entity class, calling a defineable function

Aka

AddMouseFunction(entclass,name aka open door,lua function) ?
 Post #32
 5th July 2008
Gold Member
Resto's Avatar
September 2007
6,803 Posts
This is great. You have my download.
 Post #33
 5th July 2008
Gold Member
kimba23's Avatar
May 2005
93 Posts
Great stuff. But One suggestion is to change the binding key or add a command to disable it, for post processing (color mod, motion blur, etc) the only way to look at what you adjust with the sliders is by using the "c" bind (The "q" menu covers the screen, so the c menu is the only way to look at what you change)).Did that make sense? Great work though!
 Post #34
 6th July 2008
Dennab
September 2007
236 Posts
I will laugh when I make a client-side only version that is so much simpler and no use of stupid concommands.

I give myself 30 minutes to make it after I finish another project.
 Post #35
 6th July 2008
Exitus's Avatar
January 2005
1,081 Posts
picwizdan posted:
I will laugh when I make a client-side only version that is so much simpler and no use of stupid concommands.

I give myself 30 minutes to make it after I finish another project.
Were you born a douchebag or did you have to work at it?
You can't make a lot of these things clientside; a lot of them have to be called on the server to work ( opening doors, pressing buttons, etc ).

Ontopic: This is a very awesome idea, very unique :) Surprised someone didn't think of it sooner.

(User was banned for this post (Reason: Flaming) [event] 84893 [/event])
 Post #36
 6th July 2008
Dennab
September 2007
236 Posts
Exitus posted:
Were you born a douchebag or did you have to work at it?
You can't make a lot of these things clientside; a lot of them have to be called on the server to work ( opening doors, pressing buttons, etc ).

Ontopic: This is a very awesome idea, very unique :) Surprised someone didn't think of it sooner.
Really, being right about how unoptimized this is and way too complex, he could have saved himself tons of time on this, and made it client-side so it can be used everywhere.

Not to be a 'douchbag' like suggest, but I am about to prove you wrong, and this is not about flaming, this is about people wanting it client-side.

Staying on topic is a good idea.
 Post #37
 6th July 2008
bravojr's Avatar
January 2006
666 Posts
a video game editor like gui for making/welding in game is not far away i presume even with this being as ruff as it is
 Post #38
 6th July 2008
Gold Member
elevator13's Avatar
December 2006
4,122 Posts
I'd just like to point out that in the video, garry is in fact using the context menu, not the physgun. You can do what he does in the video in Gmod with the context menu and Easy Weld.

And pcwizdan, you are wrong. Using an entity requires the server to do it.
 Post #39
 6th July 2008
Dennab
September 2007
236 Posts
Elevator, I'm not saying that mine doesn't require the server to do it, I just got Nick in my server, we tested it, IT WORKS.

It's a trick, but it works flawlessly.
There's more than meets the eye, and convar customization (a good batch of them)
Less than 320 lines of code, and its optimized.

http://forums.facepunchstudios.com/s...php?p=10673053

I have completed a completely client-side remedy, that's right, GO TEST IT FOR YOURSELVES.

P.S. to exitus, I laughed, hard.

FLAWLESS VICTORY!
 Post #40
 6th July 2008
Gold Member
FPtje's Avatar
January 2006
4,259 Posts
WOW!
no
I mean
WOOW!

HALLELUJA
I didn't even know this was possible in Lua!
Holy nuggets you've got my download!


Garry should
NO MUST add this in the next update with full credit to you.

Holy noodles!

This mod is installed on my servers!

Edit:

And I'll recommend it to my friends

Edit:

I know it's serverside but does it do anything clientside?
I mean is there anything you can use in servers that don't have it.
Reply

All times are GMT. The time now is 12:09AM.

Facepunch Studios 2010 - Server 'MARGE'