Garry's Mod

Garry's Mod

Keep Upright Advanced
30 Comments
Mornedil TTV  [author] 29 Mar @ 1:34am 
@sander_light "can i keep wheels upright?"
I would suggest using this tool on the prop that you're attaching the wheel to.

You cannot attach a keepupright constraint to entities, but you can keepupright a prop that's attached to the entity you want to keep upright.
sander_light 21 Mar @ 10:14am 
can i keep wheels upright?
Mornedil TTV  [author] 4 May, 2024 @ 4:42am 
@Theo
The way keep-upright constraints work in the source engine makes them always able to rotate around their local up/down axis (not something I can change, it's just how the physics behind them work).

So if you want a prop to hold a specific angle, I would suggest using wiremod for it, you can apply physics to props with an E2 chip, other people have done this before so there should be code for it if you search for it.

If you want to hold a specific angle for a prop using only keep-upright constraints, you'd have to get a bit creative with how you use keep-uprights, and possibly weld multiple props together at different keep-upright angles so they lock each other out of being able to spin around their local up-down axis.
R4YL0 1 May, 2024 @ 11:54am 
can you add a keep angle?
I try to stand something up on its end and it still just falls over :(
Mornedil TTV  [author] 12 Apr, 2023 @ 11:08pm 
@Polish Tea Enjoyer
"I Have A Question, Where Is The Original Keep Upright?"

it's been years, but iirc "keepupright" was a vanilla tool in earlier versions of Gmod.
But at some point, the tool was removed and replaced with a "keep upright" checkbox in the context menu when aiming at a prop and holding C.

However, the context menu version of it sucks, as it has no options at all, and is generally too strong and makes things spazz out.

So in 2014, I tried searching for the tool version of a keepupright, but could not find one anywhere (since it seemingly was a vanilla tool that had been removed), so I decided to make this tool to provide something similar to the OG vanilla keepupright, with some QoL additions to make it even easier to use.

So... I guess you could say that this is the new OG Keep Upright after the removal of the vanilla tool, since at the time of making this the only other option was using the context menu.
Tea Enjoyer 9 Apr, 2023 @ 7:36am 
I Have A Question, Where Is The Original Keep Upright?
Makarylli 12 Mar, 2023 @ 8:58am 
That working on saves?
TheRedBryant112 638 15 Dec, 2022 @ 4:52pm 
does it make it so it stays upright without forcing itself to face one direction
Mornedil TTV  [author] 16 Jun, 2022 @ 3:27am 
Q:
"Does it work with ragdolls?"

A:
"Keep upright constraints only work on props, but not special entities like ammo boxes, vehicles, chairs, NPCs or ragdolls. That's just how the constraint works in the game engine, and has nothing to do with this tool.
However, you can bypass this by adding a keep upright constraint to a prop and welding it to the special entity you want to keepupright, then disable the prop's collisions and use the color tool to make it invisible."
Fish the Wizard 13 Jun, 2022 @ 1:39pm 
Does it work with ragdolls?
I'm a dumbass 26 Oct, 2021 @ 2:24am 
Thank you so much
Mornedil TTV  [author] 10 Jul, 2020 @ 10:06am 
@sggaghghwaghwghwgh
as mentioned in the notes at the bottom, you cannot use this tool on entities. That's just how keepupright constraints work in the game.
If you want to keep a pod upright, use the keep upright tool on a prop, and weld the prop to the pod. You can make the prop invisible and no collide it afterwards too.
We go together 9 Jul, 2020 @ 4:50pm 
*Doesn't work on "pod"
Aw.
NextKurome76TheSoldier 31 Jan, 2020 @ 8:36am 
bet it replaces keep angles, since it doesn't work anymore
The Trollge 20 Feb, 2019 @ 6:57am 
this could be useful
Mornedil TTV  [author] 24 Oct, 2018 @ 7:38pm 
@[ Dacco ]
Set the "angular limit" setting higher than 0, and make sure you're using the tool on a prop, and not an entity. Gmod's keep-upright constraint will not work on scripted entities (such as chair, vehicles, guns, ammo, etc). If you need to keep-upright an entity, you can use the tool on a prop and weld the prop to the entity
Gotz 22 Oct, 2018 @ 5:53am 
Up-Right does not work
Deadbunny 25 Jun, 2018 @ 2:25pm 
This will help greatly with flying machines. I always had that problem where a flying car would go upside down or just go crazy! Thank you!
Herr Doktor 30 May, 2017 @ 3:43pm 
Has anyone seen that commercial where some scientist taped a buttered toast and a cat together then dropped them? I'm going to try that. No really, this addon just openned up a few possibilities. Commercial for reference: https://www.youtube.com/watch?v=Z8yW5cyXXRc
[λG] Westeh 28 Sep, 2016 @ 7:02am 
I can imagine funny sketches, like the houses prop-pack workshop with this! :D:
Fenrii 26 Sep, 2016 @ 9:40am 
Hey, I might know a guy who could help you with Advanced Duplicator support. Add me on steam if you can to discuss things in more detail.
Fenrii 25 Sep, 2016 @ 1:11pm 
The developer of Toggle Shadows tool seem to have a very good understanding of Advanced Duplicator compatibility implementations. Its a good place to start because I remember when I first asked him to implement such feature to his tool it took him literally minutes to do it...
Fenrii 25 Sep, 2016 @ 11:04am 
Hello, its a great tool. But overall "Keep upright" as a function in garrys mod suffers greatly due to no duplicator support.

Anything that has the effect applied to it cannot be saved. I don't suppose you could look into it and add Advanced duplicator support? It would be really nice to save your creations while having Keep Upright as part of it.
Dafuq!?Boom! 19 Oct, 2014 @ 6:33am 
Very nice. Great job man.
Mornedil TTV  [author] 15 Jul, 2014 @ 2:42pm 
just weld another prop to the chair and keep upright that.
Chrome50'sToaster 12 Jul, 2014 @ 11:20am 
ahh well the prop is a chair so...:'( thats why, thanks for the response.
Mornedil TTV  [author] 11 Jul, 2014 @ 2:08pm 
@nein_nugger
It's probably the way you're using it. Like, if you have lots of props welded to each other, it matters a lot which prop you're using this tool on. Try using it on the most massive prop in the contraption, or you can use the weight tool to make something more massive. Or simply just increase the keep upright strength (angular limit). Remember that you can type in silly huge number like 9999999 if you're using the tool on a smaller prop in a group of welded props.
Also, keep uprights doesn't work on certain entities, like the airboat, chairs, or other vehicles.
Chrome50'sToaster 8 Jul, 2014 @ 10:54pm 
Im having trouble with this i tried to use it on a jetpack thing im making but it did nothing. I messed around with the settings but nothing changed, am i doing something wrong?
void* neo 7 Jul, 2014 @ 10:44am 
I'll try ti, thanks
void* neo 1 Jul, 2014 @ 12:05pm 
This is very useful, but, if I use it to do some dupe, and I post the dupe. The person who downloads the dupe would use the with this properties? (Assuming that he haven't this addon)