Garry's Mod

Garry's Mod

Ocen: 1,332
(Official) Gravity Hull Designator - Localized Physics & Infinite Maps
2
2
2
   
Przyznaj nagrodę
Ulubione
Ulubione
Usuń z ulubionych
Content Type: Addon
Addon Type: Tool
Addon Tags: Build, Fun
Rozmiar pliku
Zamieszczono
Zaktualizowano
166.919 KB
8 października 2015 o 12:42
8 stycznia 2017 o 19:31
Listy zmian: 15 ( zobacz )

Zasubskrybuj, aby pobrać
(Official) Gravity Hull Designator - Localized Physics & Infinite Maps

Opis
A massive disclaimer here: This is not supposed to work flawlessly. This is a proof-of-concept more than anything, and possibly a builder's tool. The amount of hax in this addon is astronomical, and to fix it for every possible addon confliction (which is a lot of addons) would be way more work that it would be worth. I'd recommend having this tool disabled if you're not planning on using it for a while, since it will probably cause problems.

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.

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. We 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 (WIP)-- 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.

TODO
• Add the ability for the effect to be (adv)duplicated.
Add the ability for the effect to be undone (Done!)
• Work on making major mods work flawlessly with the mod, especially spacebuild.
• Implement a dampening percentage slider so that values below 100% will allow some inertia through.
• Implement a dampening threshold slider so that only velocity changes above the value will obey the above.
Fix parenting with Map Repeater. (Done!)
• Fix adv dupe weirdness with Map Repeater.*
• Fix thirdperson camera colliding with nonexistant brushes in Map Repeater
• Fix NPC walking off a hull causing prop bouncing weirdness.
Add LOD for infinite maps to render distant cells. (Done!)
• Extend cell keyvalues, such as space (Done!), spawning brushes if another brush spawned or didn't spawn, etc.

*Some advdupes work fine, others teleport themselves to cell 0 0 0. Not sure why currently.
Visit the Facepunch Thread[facepunch.com] for more info!
(Workshop desc limit is too small to fit everything in!)
Popularne dyskusje Zobacz wszystkie (8)
142
22 grudnia 2023 o 1:43
PRZYPIĘTE: Bug Reports
David Ralphsky
30
13 października 2019 o 12:47
PRZYPIĘTE: How to use!
David Ralphsky
9
19 listopada o 7:15
Larger maps
slopseller
Komentarzy: 480
Shadow 21 listopada o 11:15 
i dont think it works anymore, i cant seem to get this addon to work at all now :<
I hit jellyfish with hammers 20 listopada o 22:58 
(rest well david, we will miss you)
I hit jellyfish with hammers 20 listopada o 22:56 
this is absolutely perfect for spacebuild, gonna use these hulls for devious creations
2005 Honda Accord 11 listopada o 7:18 
this is so glitched lmao
󠁀 4 listopada o 8:52 
[(Official) Gravity Hull Designator - Localized Physics & Infinite Maps] lua/includes/extensions/table.lua:106: bad argument #1 to 'pairs' (table expected, got userdata)
1. pairs - [C]:-1
2. HasValue - lua/includes/extensions/table.lua:106
3. unknown - lua/maprepeat/sh_main.lua:176
4. RealTraceHull - [C]:-1
5. TraceHull - lua/maprepeat/sh_main.lua:169
6. v - lua/autorun/buuragdollblood.lua:200
7. unknown - lua/includes/modules/hook.lua:96 (x594)
Calvin_Dean 5 października o 8:30 
my guys pc has a virus
Darian Stephens 2 października o 5:11 
@The Backrooms Seal
Why [PROTOTYPE] specifically?
The Backrooms Seal 2 października o 4:32 
well this could be cool with [PROTOTYPE]
BladeOfThe2000s 13 lipca o 6:09 
i hate shameless plugs.
NPC 13 kwietnia o 9:14 
does not work anymore :(