Garry's Mod

Garry's Mod

27 ratings
Misc TTT tweaks and fixes
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Effects
Addon Tags: Comic, Fun
File Size
Posted
Updated
33.021 KB
Apr 20, 2022 @ 7:15am
Jul 1, 2023 @ 11:15pm
7 Change Notes ( view )

Subscribe to download
Misc TTT tweaks and fixes

In 1 collection by wget
ESB TTT addons
13 items
Description
This is basically a collection of scripts I made that are too small and simple to be uploaded as individual addons.

All of these can be toggled with console variables so you can choose to enable only the ones you want. All convars are archived so your settings will be persistent across restarts.

Deathcam options
Clients can choose to disable the first-person deathcam to use a third-person view of their corpse instead.
client cvar: ttt_deathcam_firstperson 1

Clients can choose to disable being forcibly teleported to "spectator spawns" after their deathcam.
This stops the annoying thing where you'll be watching the action happening around where you died but then your view is suddenly cut to miles away outside the map.
client cvar: ttt_deathcam_gotospecspawn 0

You can choose to have spectator spawns be used for players that have just joined the game as a spectator.
server cvar: ttt_specspawnjoin 1

Buy with double-click
Lets you quickly buy equipment items from the traitor or detective shop by double-clicking their icon.
server cvar: ttt_doubleclickbuy 1

Counter-strike playermodel colours
Sets playermodel colours to the colours they use in css instead of random colours.
This means that the Phoenix's shirt will be blue, the Guerilla's bandana will be red, and the Leet's jacket will be olive.
server cvar: ttt_cstrike_colors 1

Any playermodel can wear detective hats
This allows any playermodel to spawn with the detective hat instead of only the Phoenix and Arctic models.
server cvar: ttt_detective_hats_allmodels 1

Overtime confirmation
When confirming a death in haste mode, this reveals the bonus overtime added by the death.
This means that innocents will know the true round timer if they have confirmed every death.
server cvar: ttt_haste_confirmationbonus 1

Round end slow motion
This is my rewrite of this addon but I've made it more optimised.
Karma is unaffected during the slowmo period while still triggering the slowmo as soon as the last traitor or innocent dies.
server cvar: ttt_roundend_slowmo 1

Kill on leave
Kill players when they disconnect so that they leave a corpse behind and drop their stuff
server cvar: ttt_killonleave 1

Less floppy kills
Applies some velocity from the killing blow onto a player's ragdoll on death, so that the ragdoll would visibly recoil from the hit instead of just limply flopping to the ground.
This is my quick rewrite of this addon[redd.it] that tries to accomplish the same thing with a different approach. You can use that addon instead if you prefer the original.
server cvar: ttt_newragvel 1

This is compatible with Fedhoria and, in fact, improves how it works.

Bodies collide with breakable glass
This lets player corpses shatter windows instead just passing through them.
server cvar: ttt_realistic_defenestration 1

Serverside npc ragdolls
This allows npc corpses to be carried with the magneto-stick.
The cvar value is how many serverside npc ragdolls can exist simultaneously. I don't recommend going over 8, it can hurt server performance.
server cvar: ttt_npc_server_ragdolls 0

Persistent sprays
Player sprays will be retained between rounds and when you disconnect and reconnect. You will also see sprays from before you joined the server.
server cvar: sv_persistent_sprays 1

Serverside blood impacts
This stops the irritating thing where you see blood effects on your target without dealing any damage.
This significantly cuts down on hitreg complaints without actually doing anything with hitreg.
server cvar: sv_serverside_bloodimpacts 1

Alternatively, you can use my Clientside Hitreg addon instead to actually change how hitreg works.
Though, you may still use both clientside hitreg and serverside blood impacts simultaneously, if you really want to.

Pop-in fix
Rudimentary fix for the "pop-in" seen when you peek corners with high ping.
server cvar: sv_pop_in_fix 0

Invisible players fix
This basically just automatically uses the "record a;stop" solution when invisible players are detected on round start.
server cvar: ttt_invisplayer_fix 0

Clients can choose to override the server's value.
client cvar: ttt_invisplayer_fix_cl -1
-1 = use server's value
0 = always disabled
1 = always enabled

Map config files
You can put cfg and lua files in garrysmod/cfg/mapcfgs which will be run if their filename matches the current map's name.
This is for making your own changes to a map, for example if you want to disable t testers or t traps or t rooms or something that really hurts framerates in a certain map.
Here's are some examples: https://gist.github.com/wgetJane/83064d0ac013e4b64aca2e9a87a47944
server cvar: sv_runmapcfgs 0

my addons:
my maps:
28 Comments
wget  [author] Apr 6 @ 3:10am 
@牛栏山辉夜
what version of "Custom Roles for TTT" are you using? it is my understanding that that issue has been fixed already
牛栏山辉夜 Apr 6 @ 2:14am 
Hello author! I need to give you feedback on an issue where the ttt_rounden_stlowmo feature affects the victory conditions and trigger activation functions of clone and jester in "Custom Roles for TTT". I am not sure if my description is easy to understand (I am using a translator), and I hope you can fix it
wget  [author] Nov 25, 2024 @ 4:49am 
@GermanPlasma
a ttt2 update most likely, i'll look into it
GermanPlasma Nov 24, 2024 @ 11:55am 
I am using TTT2 but also quite a few other mods. However, it was working pretty normal a year or so ago with the same constellation of mods, so maybe a gmod update made something bad on my end?
wget  [author] Nov 20, 2024 @ 1:55am 
@GermanPlasma
worked on my server last time i checked, but i'll check again
are you using something like ttt2 or crttt?
GermanPlasma Nov 19, 2024 @ 6:46pm 
Yeah slow motion sadly doesn't work.
wget  [author] Apr 22, 2024 @ 7:48pm 
@nola
the cvars are archived so they should persist (as long as you close the server properly)
nola Apr 22, 2024 @ 12:05pm 
What does server cvar's mean? Do I need to put this into console everytime I launch the server?
The Stig Mar 19, 2024 @ 1:06am 
I responded on Discord, but basically it seems Gmod now caps the number of loaded areas in your PVS to prevent crashing as of the latest update. So ttt_specseeoob is fine to have on by default now