Garry's Mod
271 ψήφοι
Keep Upright Advanced
   
Βραβείο
Αγαπημένο
Αγαπημένο
Μη αγαπημένο
Content Type: Addon
Addon Type: Tool
Addon Tags: Build
Μέγεθος αρχείου
Αναρτήθηκε
Ενημερώθηκε
1.715 KB
20 Μαϊ 2014, 8:07
28 Σεπ 2016, 1:43
2 σημειώσεις αλλαγών ( προβολή )

Συνδρομή για λήψη
Keep Upright Advanced

ΣΕ 2 ΣΥΛΛΟΓΕΣ ΑΠΟ Mornedil TTV
Public Build Server - Addons
32 αντικείμενα
:>
53 αντικείμενα
ΠΕΡΙΓΡΑΦΗ
This tool adds keep upright constraints to props and gives you more options than the default way to keep upright a prop:

- Customizable keep upright strength
- 4 different keep upright modes:
1. Use prop angles
2. Upside-up
3. Upside-down
4. Use custom Pitch/Yaw/Roll
(Watch the video for an example of how each mode works)

Remember to give a positive rating if you find this tool useful! It's currently in 942 different addon collections but only has around 100 ratings



Notes:
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.
Another thing to note is that the way keep upright constraints work in the game engine, props will always be able to rotate around their local yaw axis. If you want props to act like they are balancing to stay upright, you should only use the upside-up or upside-down setting. If the prop you want to balance is rotated the wrong way by default, you can use the upside-up setting on another prop and weld them together.



Changelog 2016-09-28
  • Added duplicator support
  • The tool now wakes prop physics so you no longer need to manually touch them
28 σχόλια
Mornedil TTV  [Δημιουργός] 4 Μαϊ, 4:42 
@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.
Theo 1 Μαϊ, 11:54 
can you add a keep angle?
I try to stand something up on its end and it still just falls over :(
Mornedil TTV  [Δημιουργός] 12 Απρ 2023, 23:08 
@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 Απρ 2023, 7:36 
I Have A Question, Where Is The Original Keep Upright?
Makarylli 12 Μαρ 2023, 8:58 
That working on saves?
TheRedBryant112 638 15 Δεκ 2022, 16:52 
does it make it so it stays upright without forcing itself to face one direction
Mornedil TTV  [Δημιουργός] 16 Ιουν 2022, 3:27 
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 Ιουν 2022, 13:39 
Does it work with ragdolls?
Im a dumbass 26 Οκτ 2021, 2:24 
Thank you so much
Mornedil TTV  [Δημιουργός] 10 Ιουλ 2020, 10:06 
@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.