Garry's Mod

Garry's Mod

Not enough ratings
[TTT2] Thermal Rifle
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Weapon
Addon Tags: Fun, Roleplay, Realism
File Size
Posted
Updated
24.379 KB
11 Nov, 2024 @ 9:03am
16 Nov, 2024 @ 1:43am
5 Change Notes ( view )

Subscribe to download
[TTT2] Thermal Rifle

Description
Only supported in TTT2!
It uses stuff from TTT2, so don't expect it to work in default TTT.

Description
Adds a rifle with a thermal scope, allowing you to quickly find targets and see through fog! The highlighting of players makes spotting hidden snipers easier, and through fog, you will be the only one able to see anything!

Convars
ttt_thermalrifle_damage = 50 --How much Damage should the Thermal Rifle do?
ttt_thermalrifle_headshotdamage = 4 --How high should the Headshot Multiplier for the Thermal Rifle be?
ttt_thermalrifle_clipsize = 10 --Clip size of the Thermal Rifle.
ttt_thermalrifle_traitorbuy = 1 --Should the Thermal Rifle be available for Traitors?
ttt_thermalrifle_detectivebuy = 1 --Should the Thermal Rifle be available for Detectives?

Languages
Currently supports the following languages:
English
German
Turkish (Credits to Tora)

Uploaded with gmpublisher[github.com]
12 Comments
MrXonte  [author] 31 Jan @ 4:11am 
Ill look into it!
mexikoedi 30 Jan @ 12:38pm 
I tried this weapon out and found an issue.
If you use killed everyone the thermal doesn't work anymore.
It will look just like a normal rifle.
This is a bit weird if everyone is dead but the round is still on because for example one of the players had second chance.
Gordon, GORDAN! 17 Nov, 2024 @ 10:59am 
I wonder if you could create a Sandbox version?
Tora 16 Nov, 2024 @ 1:45am 
Thx :)
MrXonte  [author] 16 Nov, 2024 @ 1:44am 
Hey Tora, I've added your Turkish translation! :)
牛栏山辉夜 15 Nov, 2024 @ 12:24am 
I have tried it and it has successfully taken effect.thank you!!!
MrXonte  [author] 15 Nov, 2024 @ 12:15am 
Can you share the addon collection you are using, then its easier for me to debug?
I did a small update that should help.
牛栏山辉夜 14 Nov, 2024 @ 6:32pm 
These are the contents of the error message:
[[TTT2] Thermal Rifle] gamemodes/terrortown/entities/weapons/weapon_ttt_thermalrifle.lua:42: attempt to index a nil value
1. unknown - gamemodes/terrortown/entities/weapons/weapon_ttt_thermalrifle.lua:42
These are the error messages for [Custom Roles for TTT]:
gamemodes/terrortown/gamemode/cl_wepswitch.lua:127: attempt to perform arithmetic on field 'Slot' (a nil value)
1. DrawWeapon - gamemodes/terrortown/gamemode/cl_wepswitch.lua:127
2. Draw - gamemodes/terrortown/gamemode/cl_wepswitch.lua:176
3. unknown - gamemodes/terrortown/gamemode/cl_hud.lua:598
牛栏山辉夜 14 Nov, 2024 @ 6:30pm 
Yes, it can run normally in the original TTT, but it will encounter errors in "Custom Roles for TTT", which can cause HUD loss and many errors. My server runs on the basis of "Custom Roles for TTT", and I hope you can fix it