Garry's Mod

Garry's Mod

Not enough ratings
[TTT] Karma Punishments
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
Addon Tags: Fun
File Size
Posted
Updated
44.621 KB
13 Oct, 2020 @ 2:54am
15 Mar @ 6:54pm
17 Change Notes ( view )

Subscribe to download
[TTT] Karma Punishments

In 1 collection by The Stig
The Stig's TTT Mod List
286 items
Description
RDMing getting too much?
Want an alternative to kicking players for their karma getting too low?

Try this mod out:

- Applies a punishment to players below a certain amount of karma
- Punishments are a random effect (Like the Randomat)
- 16 different possible punishments!

Use the convar: "ttt_kp_low_karma_threshold" to set the max amount of karma before punishments start happening.

Alternatively, type "/punish [a player's name]" if you're an admin to manually inflict a punishment!

Settings/Options
Use the in-game F1 menu tab to adjust this mod's settings
There you will find a list of all the karma punishments in the game, and the ability to enable/disable any of them, and adjust an punishments's individual settings if it has any. This menu of course is only available to admins!


Alternatively, if you know what you're doing, add the below convars to your server's server.cfg or listenserver.cfg for peer-to-peer hosted games:

ttt_kp_low_karma_threshold - Default: 800 - The amount of karma below which players start receiving punishments.

Punishments that need other mods to work
Some punishments require another mod to be installed to work! Here is the complete list:

Forced Railgun
Requires: Lykrast's TTT Weapon Collection

No Sprinting
Requires: TTT Sprint
(Or some other mod that adds sprinting)

Third-person
Requires: Enhanced ThirdPerson [Reupload]

Credits
"Reverse Controls" and "Less Ammo" punishments use code from Malivil's "Opposite day" and "Wasteful!" randomat events:
https://sp.zhabite.com/sharedfiles/filedetails/?id=2055805086

Github Link
https://github.com/TheStig294/karma-punishments/tree/main#readme

The Great Giant List of Karma Punishments
Italics indicate convars for any karma punishment listed below.

Backwards Movement
Forces you to move backwards only, very quickly
Can stop in place by holding the forwards key

ttt_kp_backwards - Default: 1 - Whether this punishment is enabled
kp_backwards_speed - Default: 440 - Backwards movement speed

Butterfingers
Forces you to drop your weapon every 5 seconds

ttt_kp_butter - Default: 1 - Whether this punishment is enabled
kp_butter_seconds - Default: 5 - Seconds between dropping weapons

Crab Walk
Forward and backward movement is disabled, you can only walk sideways

ttt_kp_crabwalk - Default: 1 - Whether this punishment is enabled

Foggy Vision
Puts a fog effect on your screen, which limits how far you can see

ttt_kp_fog - Default: 1 - Whether this punishment is enabled
kp_fog_mult - Default: 1 - Fog distance multiplier

Forced Railgun
Forces the you to use a railgun (Different punishment for jesters!)

ttt_kp_railgun - Default: 1 - Whether this punishment is enabled
kp_railgun_seconds - Default: 3 - Seconds between being given a railgun

H.U.G.E. Problem
Forces you to use only a H.U.G.E.

ttt_kp_huge - Default: 1 - Whether this punishment is enabled
kp_huge_seconds - Default: 10 - Seconds between being given a H.U.G.E.

Less Ammo
Guns use more ammo per shot

ttt_kp_ammo - Default: 1 - Whether this punishment is enabled
kp_ammo_wasted_bullets - Default: 2 - No. of extra bullets wasted

Less Health
Sets your health lower (Different punishment for jesters!)

ttt_kp_health - Default: 1 - Whether this punishment is enabled
kp_health_amount - Default: 1 - Amount of health you are set to

No Sprinting
Your sprinting is disabled

ttt_kp_sprinting - Default: 1 - Whether this punishment is enabled

Random Rotation
Rotates your view randomly every few seconds

ttt_kp_rotate - Default: 1 - Whether this punishment is enabled
kp_rotate_seconds - Default: 5 - Seconds between being randomly rotated

Reverse Controls
Reverses many controls like moving backwards,
shooting <-> reloading or crouching <-> jumping

ttt_kp_reverse - Default: 1 - Whether this punishment is enabled

Random Sensitivity
Randomly changes your mouse sensitivity every few seconds

ttt_kp_sensitive - Default: 1 - Whether this punishment is enabled
kp_sensitive_seconds - Default: 5 - Seconds between sensitivity changes

Slow Movement
You move more slowly

ttt_kp_slow - Default: 1 - Whether this punishment is enabled
kp_slow_mult - Default: 0.5 - Speed multiplier

Third-person
You are forced to use a third-person view

ttt_kp_thirdperson - Default: 1 - Whether this punishment is enabled
5 Comments
The Stig  [author] 2 Mar @ 3:58am 
@Nexxu TTT2 is untested, but it likely will
Nexxu 1 Mar @ 7:48am 
did it work on TTT2?
The Stig  [author] 8 Dec, 2023 @ 8:10am 
@Coltrain It took 2 years for me to get around to this... but it is done, I completely remade the mod from scratch: https://github.com/TheStig294/karma-punishments/tree/main#readme
The Stig  [author] 17 Feb, 2021 @ 4:28pm 
@Coltrain I will one day get to updating this mod and doing exactly as you describe, but for now you can go ahead and modify this for your own server if you wish.
Coltrain 16 Feb, 2021 @ 7:55pm 
started poking around in the lua file. yes a table would be much better lol. definitely possible to add convar toggles for certain punishments as well. i may do it myself at some point if you dont but for now im just gonna delete stuff and adjust the kp variables