Garry's Mod

Garry's Mod

358 ratings
Gravity Hull Designator
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool, Effects
Addon Tags: Build, Fun
File Size
Posted
Updated
163.507 KB
Mar 18, 2014 @ 10:41am
Mar 20, 2014 @ 12:22pm
2 Change Notes ( view )

Subscribe to download
Gravity Hull Designator

Description
I DID NOT MAKE THIS AND I TAKE NO CREDITS

Author: SuperLlama

Everything should work fine, a few things are fixed by me.
If you found a error please send the actual error and how you made it happen, not "It only gives errors".

Info from the author:

What defines the hull?
The interior of the hull is defined as the set of locations where there is a floor under you, and if the point's elevation from the floor exceeds the vertical protrusion factor, it also requires at least one non-floor (a wall or ceiling).

What this ISN'T:
• NOT a module, the mod is made entirely with lua and has no dependencies.
• NOT a reimplementation of source physics, it's a complex illusion that involves a room in the middle of nowhere.
• NOT a wall walking mod, though it can be used on something and then rotated 90 degrees so that down is now the wall.
• NOT a spherical planet mod. "Down" inside the ship is defined as the orientation gravity was pulling when the tool was first used. Spawn a dumpster, shoot it, flip it upside-down, and you're on the ceiling.
• NOT a way to stick to things. Again, down is only one direction internally and you cannot walk around the inside of a ring unless you make it out of multiple hulls, each with their own down. This might be made easier in the future.
• NOT a map entity. I might make a map entity later on that allows the effect to be present, but for now it's just something you build with.
• NOT a collision engine. This mod uses nothing more than source's built-in havok implementation, but it sure fools it a lot. Many shortcomings of havok are avoided by making it think something different is happening.

What this mod IS:
• a localized physics environment for any contraption, essentially behaving as if each hull was its own map.
• a tool that anyone can use on any set of welded props that has a clear interior and exterior.
• the first and only complete spazz protection for ships. Since the ghost doesn't move, entities inside cannot be thrown through the wall.
NOTE: In the future there will be a slider to control how much entities are thrown around by motion, but it will be applied in a backwards manner (negative velocity to the props, not positive velocity to the ghost) to avoid wallclipping, so even a 0% dampener will still stop spazz deaths even though it will throw things around just as much as before.
• a separate area with its own sense of "down." Gravity's internal direction is defined when you first designate your hull, and does not change relative to the ship's rotation.
• a stabilizer for pretty much any vehicle you can think of. Boats are especially interesting with the tool applied, because you actually rock back and forth in the water.
• linked with the outside world as seamlessly as possible-- the physgun behaves properly for the most part, and you can toolgun entities on the outside while you're inside a hull, as well as press buttons/get in chairs.
• an override of many built-in functions such as GetPos, so there is a chance that your favorite mod might work with it already without any changes.
• a very convincing illusion. You're not actually in your ship, but it sure looks like you are. For this reason a lot of things (manhack lights for example) might render in the wrong place. But hey, a video game is just an illusion too, so who cares.
• a simple change brought on by extremely non-simple code, that can revolutionize almost everything else that's already possible with the simple addition of walking in a moving object and gravity being affected by rotation.

FAQ
Q: My contraption isn't working, it says it was designated but it isn't!
A: Does it have walls or a ceiling? If not, you need to increase the Vertical Protrusion Factor.

Q: Does this work with spheres?
A: Not in the way you're asking.

Q: Does this work with <<SUBJECT ADDON HERE>>
A: Maybe; depends on what the addon does. There may or may not be conflicts and there's a decent chance it won't work inside the hull, but lots of mods do. It's a matter of overriding the right things and I plan to fix as many of these as I can.

Q: I just want to fly a spaceship, I don't want people running around climbing walls like spiderman.
A: They can't. The only way you can walk on a wall is by making a "ship" and rotating it so that its floor is on the wall (or designating the wall with hit surface defines floor checked)-- it's not just a "climb wherever you want" deal.
Popular Discussions View All (7)
9
Jul 17, 2015 @ 3:18pm
Viewmodels Disappearing
zamboni
1
Mar 1, 2019 @ 8:26am
Conflict with ALL weapon addons
flango
1
Aug 9, 2015 @ 3:09pm
Physics breaking bug?
Pipedream
132 Comments
Chimera Feb 17, 2024 @ 6:03am 
Is it just me or do the c_hands not appear when on a specified hull factor?
Shadow Mar 5, 2023 @ 9:26am 
love messing around with this. putting gravity on LFS etc. i just wish that it worked with pac. that didnt hide someones pac when they enter/walk on the effected prop/vehicles.
Kibōchen Nov 2, 2022 @ 9:28pm 
May the original creator rest in peace <3
Baconexx28 Jan 21, 2022 @ 4:15am 
NPC??
Aperture Science Prototype XR7 Nov 17, 2021 @ 10:21am 
10/10, now I know which way is up while hurling through the stratosphere in an improvised rocket.
JiLou Jun 10, 2021 @ 5:49am 
whats the different between this and that other official one?
Muchtoodog Jan 6, 2021 @ 2:15pm 
if you dont know what im talking about try wac with the original addon because it has this wierd glitch
Muchtoodog Jan 6, 2021 @ 2:11pm 
in this version did you fix the wac thing
AwesomeBlox Nov 8, 2020 @ 8:18am 
make it so i can be spiderman
cloverbird Sep 15, 2020 @ 6:12pm 
Mr.fell jr no, its the way that the code works, it essentially creates a seperate part of the map and shooting guns would break it.