Garry's Mod

Garry's Mod

62 arvostelua
Crouch to Unstuck
   
Palkinto
Lisää suosikkeihin
Lisätty suosikkeihin
Poista suosikeista
Content Type: Addon
Addon Type: ServerContent
Addon Tags: Fun, Realism
Tiedostokoko
Julkaistu
Päivitetty
6.567 KB
2.10.2021 klo 8.19
14.10.2023 klo 1.02
11 muutosilmoitusta ( näytä )

Tilaa ladataksesi
Crouch to Unstuck

1 kokoelmassa, tekijä The Stig
The Stig's TTT Mod List
271 luomusta
Kuvaus
Makes crouching push you out of a wall, floor, prop, player etc. if you are stuck inside it!
Doesn't affect crouching when you're not stuck.

Settings/Options
crouch_to_unstuck_key (Default: [blank])
What key to press to trigger getting you unstuck, if blank, uses your crouch key. (Change maps or restart server for changes to take effect)

crouch_to_unstuck_message (Default: 1)
Whether the 'If you're stuck, try crouching!' chat message should show (Change maps or restart server for changes to take effect)

Credits
Original version of this script made by SunRed on GitHub[gist.github.com]
Heavily modified by me, most notably added the ability to get unstuck out of ceilings.
16 kommenttia
The Stig  [tekijä] 11.1. klo 21.59 
@AngryWild_Mango Could you link to an example map so I can take a look? What is it that you are jumping on?
AngryWild_Mango 11.1. klo 21.11 
sadly breaks some maps. like you cant jump on certain things
[LCB] BassGaming 27.9.2024 klo 15.18 
This mod is fantastic! We've used it for about 20-30 hours in TTT now and it makes life so much easier.
The Stig  [tekijä] 14.10.2023 klo 1.03 
@EnteranceJew Here's a convar: crouch_to_unstuck_message 0
It requires you to change maps or restart the server for it to take effect.
EntranceJew 13.10.2023 klo 23.42 
Oh wow, I appreciate it a lot! The only other thing that I could use would be a convar for the chat print, 'cause most people I play with don't need reminding whenever it triggers by now.
The Stig  [tekijä] 13.10.2023 klo 19.56 
@EntranceJew That mod is very much at odds with mine, but I did my best to support it with the update I just pushed out.
EntranceJew 13.10.2023 klo 14.53 
This unfortunately trivializes this equipment: https://gtm.you1.cn/sharedfiles/filedetails/?id=3021464449 (Glue Trap) -- is there a way to prevent this?
Dornek 26.8.2023 klo 22.18 
thank you stig
The Stig  [tekijä] 26.8.2023 klo 20.48 
@Dornek I added a new setting: "crouch_to_unstuck_key", e.g. typing crouch_to_unstuck_key x in the console will change the unstuck key to x.

You can also add this to your server's server.cfg if you're hosting a dedicated server, or in your Gmod installation's listenserver.cfg if hosting a game from the main menu.
(Normally located at: C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod\cfg)
The Stig  [tekijä] 26.8.2023 klo 20.22 
@Drab228 Unfortunately I wasn't able to replicate this, I stopped receiving reports like this a long time ago when I first uploaded this mod and did the first few bug fix updates. Unfortunately detecting when you are inside an object but actually you're not actually stuck is quite difficult, but I've done the best I can with this mod.