PDA

View Full Version : Problems with the snap tool and custom phys boxes


Darc_Brittany
06-17-2007, 11:27 AM
Hi,
I'm working on a custom mod for my gaming class and I have this problem with the snap tool when I turn it off and zoom in close to move things to where I want them to go, it still snaps to the grid. Is there any way around this?

And also.. Everything in the mod is completely custom made so I am having problems with phys boxes. Anytime I have a wide object that narrows somewhere the phys stretches over the whole object and makes invisible walls to the object so when you are running the mod you bump into the prop's invisible wall before you do the prop. Oh, and does anyone have a code or know how to get the phys gun to work in a custom mod? Crashes the mod everytime you go to use it. Thanks.
Brittany

Marine
06-17-2007, 12:37 PM
The physgun? Do you mean the Gravity Gun or the Physics Gun (The one in Garry's Mod)...

That is a limitation of the physbox entity -- you will need ot make a model to overcome that (With a custom collision mesh).

Hammer does that, you cannot move stuff too loosely or you will have compile errors.

Darc_Brittany
06-17-2007, 03:08 PM
Oops, yeah, the physics gun.
I have tried making my own physics models by using cubes but it still doesn't work, the walls still appear there.
Alright, thanks

Marine
06-17-2007, 05:39 PM
The physgun does NOT work straight if you add it in -- you need to do some tweaking. I'll send you the diff of my physgun.cpp and c_weapon_gravitygun.cpp file :)

Darc_Brittany
06-17-2007, 06:40 PM
That would be cool.
I would like to get the gravity gun working as well since I have a lot of props that are chuck-able. I am just curious, what is the difference between the physics and the gravity gun? I always thought they were the same thing. I haven't play HL through, just use it for class, lol. So my knownledge is limited.

Marine
06-18-2007, 12:08 AM
http://youtube.com/watch?v=ncz53jxoQKw

Watch to 0:35. The blue gun is the physics gun, however,

http://youtube.com/watch?v=QxsmPfdirrQ

Is the Gravity Gun (Aka Zero Point Anti-Gravity Gun, or Physcannon).

Which one were you looking for?

Darc_Brittany
06-18-2007, 05:04 AM
Ha, that's cool. I have never seen the physics gun before. Does it do the same sort of thing as the gravity gun? Still a little unclear about it (this computer doesn't have speakers so I don't know if they explained it in the video).
I would love to get the gravity gun working because there is a lot of chuckable things in my mod so I guess that is the one I am looking for. My teacher hasn't looked into why it doesn't work yet so I was wondering if it worked in deathmatch multiplayer. Thanks so much for your help.

Marine
06-18-2007, 10:17 AM
It does, to give it yourself you need to do this

sv_cheats 1
give weapon_physcannon
in mapping it is simply weapon_physcannon

Edit: If you are working off the From Scratch mod, you wont have the gravity gun.