Garry's Mod

Garry's Mod

TTT - Cloaking Device
69 Comments
Garashi 18 Feb @ 10:21pm 
I wish this didn't use the exact same icon as the M4 SLAM
GoopDog123 28 Dec, 2021 @ 11:08am 
assssswssssssssssssssss
GoopDog123 28 Dec, 2021 @ 11:08am 
poggos
The Senate 18 Apr, 2020 @ 12:54pm 
I can't find it in my spawnlist
Desertworld 15 Sep, 2017 @ 10:24am 
hey, it's a very nice addon but one thing bothers me: why can't you drop the cloaking device like any other traitorshop item? is there a fix to it? i already tried adding SWEP.AllowDrop = true but it didn't help
Keensta 25 Feb, 2017 @ 2:58pm 
If you want a fix for the pointshop bug as you call it, add me on steam. I have the code you can add to fix it.
mcNuggets 9 Sep, 2016 @ 4:51am 
That is not a bug.
You are just cloaking the player, not cloaking the PS Items.
Polonius 12 Aug, 2016 @ 4:02pm 
Unfortunately, that's why I had to take it off my servers :(
Lykrast  [author] 5 Aug, 2016 @ 3:02am 
It's a bug that I never found a fix : basically any pointshop item with a material applied to it (like the default afro hat) won't be cloaked.
MoleMad 4 Aug, 2016 @ 8:31pm 
Is it compatable with pointshop? Cause when I use it in pointshot some of my cosmetics still show and arent cloaked
Nogitsu 21 Jul, 2016 @ 2:23am 
It won't appear in sandbox game cuz' it's a TTT weapon
Lykrast  [author] 21 Jul, 2016 @ 2:17am 
In the traitor shop inside the Trouble in Terrorist Town gamemode.
Nogitsu 24 Jun, 2016 @ 10:00am 
T'as plus qu'à faire ta violation de copyright
https://steamhost.cn/steamcommunity_com/dmca/create/372779406
Nogitsu 24 Jun, 2016 @ 9:57am 
attend je vais essayer de t'envoyer le lien
Lykrast  [author] 24 Jun, 2016 @ 9:02am 
Oui mais tu la signale où la violation de copyright ? Parce que le bouton si il est là n'est pas en évidence pour moi.
Nogitsu 24 Jun, 2016 @ 8:33am 
Signaler n'est pas aussi important que des signalements, il faut plusieurs signalements pour l'enlever et une violation de copyright pour supprimer
Lykrast  [author] 24 Jun, 2016 @ 8:13am 
Je pense je l'avais déjà signalé vu que le drapeau pour moi et rouge et que ça ne fait rien quand je clique dessus.
Nogitsu 24 Jun, 2016 @ 7:44am 
Lykrast faut que tu signales une violation des copyrights sur ce soit disant reupload alors qu'il est toujours disponible
GodsRightEgg 26 Apr, 2016 @ 10:31am 
hm
i do not have any clue^^ but thanks :)
Lykrast  [author] 26 Apr, 2016 @ 10:16am 
You'd have to do this yourself, since this weapon doesn't do any single check to ammo.
GodsRightEgg 26 Apr, 2016 @ 9:16am 
Is it possible to get a cloaking wioth ammo? or could u give me the line i have to use?
BigBuffalo 7 Apr, 2016 @ 8:29am 
does anyone know if its working with the latest gmod version?
Lykrast  [author] 23 Feb, 2016 @ 7:11am 
No problem.
Polonius 23 Feb, 2016 @ 5:03am 
Yes some of the hats, like afro, always showed but now the jumppack shows-thats new. As far aas I know, there is only one jumppack model. But yes I think trying to find alternates to the items that show is improbable. I will just have to keep the addon deleted, but thanks for your help.
Lykrast  [author] 23 Feb, 2016 @ 4:22am 
I noticed it too, and I don't have a fix. However, from my (small amount of) testing, I noted that this only applies to items which have a material applied to them (like the default afro iirc). Maybe you should test it out and see if you can figure some compromise (like finding another model that works, although I know it's probably impossible to find some fitting thing for every hat).

However, this was quite some time ago, and if your problem came with the new update, I have honestly no idea what could cause it, so if you could do some testing yourself with your item, maybe that could help.
Polonius 23 Feb, 2016 @ 3:00am 
This is a fantastic addon but with the new gmod update we have noticed a problem. If you have pointshop on your server, certain items are visible even when you are cloaked, specifically hats and the jumppack. I had to remove this from my servers and players just arent happy about it. Is there any code I can add to this to make sure those items are invisible when cloaked and become visible again when uncloaked?
BigBuffalo 20 Jan, 2016 @ 12:57am 
i dont think it works with the new update mate :/
Neo ツ 19 Jan, 2016 @ 11:48am 
i dont hear the sound from the Cloaking Device, can anyone help ?
Xardas Dark 10 Jan, 2016 @ 6:18pm 
Yeah a countdown would be nice
Min 9 Jan, 2016 @ 4:00am 
Can you please add a function that allows the Cloaking Device to be used for a maximum of 60 seconds (Ammo = 60)? Something like:
local MaxAmmo = CreateConVar("cd_ammo", "60", {FCVAR_PROTECTED}, "Max ammo for cloaking device") and SWEP.Primary.ClipSize = GetConVarNumber("cd_ammo")
Superfun 24 Dec, 2015 @ 6:20am 
Could you upload this to github or something?
Lykrast  [author] 25 Nov, 2015 @ 3:17am 
Alright I think I found the issue, I'll update it right now and hope it'll work for good.
Polonius 24 Nov, 2015 @ 11:02am 
This doesnt seem to work.

[ERROR] gamemodes/terrortown/entities/weapons/weapon_ttt_cloak/shared.lua:100: attempt to index global 'SWEP' (a nil value)
1. PreDrop - gamemodes/terrortown/entities/weapons/weapon_ttt_cloak/shared.lua:100
2. DropNotifiedWeapon - gamemodes/terrortown/gamemode/weaponry.lua:201
3. unknown - gamemodes/terrortown/gamemode/player.lua:599
4. FireBullets - [C]:-1
5. ShootBullet - gamemodes/terrortown/entities/weapons/weapon_tttbase.lua:318
6. PrimaryAttack - gamemodes/terrortown/entities/weapons/weapon_tttbase.lua:242
7. oldprimary - gamemodes/terrortown/entities/weapons/weapon_zm_rifle.lua:59
8. unknown - addons/tttdamagelogs-master/lua/damagelogs/sv_damageinfos.lua:54
Lykrast  [author] 23 Nov, 2015 @ 10:34pm 
Well I thought I fixed that last version, my bad. I'll try to update it as soon as I can.
Polonius 23 Nov, 2015 @ 12:23pm 
The cloaking device drops when the traitor dies, others pick it up, use it, and are rdm'd because players think they are a traitor. Is there any script I can add to fix this? Shoulddropondie wont work because the allowdrop is set to false.
Lykrast  [author] 29 Oct, 2015 @ 2:34am 
Should be fixed now.
Polonius 29 Oct, 2015 @ 2:05am 
Lua Error: [AddCSLuaFile] Couldn't find 'shared.lua' (@gamemodes/terrortown/entities/weapons/weapon_ttt_cloak.lua (line 2))
Lykrast  [author] 27 Oct, 2015 @ 10:48am 
Thanks for the bug report. As I don't really know what could cause the issue, the device can no longer be dropped by any means (including on death), which cleans up a bit of the code.

I hope this fixes the issue, or at least no longer displays any error.
Kalwei 27 Oct, 2015 @ 10:22am 
9. old_DrawWorldModel - gamemodes/terrortown/entities/weapons/weapon_ttt_cloak.lua:55
10. DrawWorldModel - addons/ttt_spectator_deathmatch-master/lua/cl_spectator_deathmatch.lua:343
11. old_DrawWorldModel - gamemodes/terrortown/entities/weapons/weapon_ttt_cloak.lua:55
12. DrawWorldModel - addons/ttt_spectator_deathmatch-master/lua/cl_spectator_deathmatch.lua:343
13. old_DrawWorldModel - gamemodes/terrortown/entities/weapons/weapon_ttt_cloak.lua:55
14. DrawWorldModel - addons/ttt_spectator_deathmatch-master/lua/cl_spectator_deathmatch.lua:343
15. old_DrawWorldModel - gamemodes/terrortown/entities/weapons/weapon_ttt_cloak.lua:55
16. DrawWorldModel - addons/ttt_spectator_deathmatch-master/lua/cl_spectator_deathmatch.lua:343
Kalwei 27 Oct, 2015 @ 10:22am 
Your latest update to this I believe fucked it over a bit. In my TTT server we have specdm, and this error started popping up after the update repeatedly.

[ERROR] stack overflow
1. GetTable - [C]:-1
2. __index - lua/includes/extensions/weapon.lua:30
3. old_DrawWorldModel - gamemodes/terrortown/entities/weapons/weapon_ttt_cloak.lua:54
4. DrawWorldModel - addons/ttt_spectator_deathmatch-master/lua/cl_spectator_deathmatch.lua:343
5. old_DrawWorldModel - gamemodes/terrortown/entities/weapons/weapon_ttt_cloak.lua:55
6. DrawWorldModel - addons/ttt_spectator_deathmatch-master/lua/cl_spectator_deathmatch.lua:343
7. old_DrawWorldModel - gamemodes/terrortown/entities/weapons/weapon_ttt_cloak.lua:55
8. DrawWorldModel - addons/ttt_spectator_deathmatch-master/lua/cl_spectator_deathmatch.lua:343


Lykrast  [author] 8 Aug, 2015 @ 6:50am 
Thanks for telling me.
Cognitive 8 Aug, 2015 @ 6:47am 
Lykrast someone reuploaded your weapon the TTT 1.it is Darkgamer he is online so please do something!
Lykrast  [author] 15 Jul, 2015 @ 1:47pm 
Check the chain of folders and make sure they are the same as the working ones. From memory it should be something like "gamemodes/terrortown/entities/weapons" (but doublecheck just in case), but I think it can be put in something like "lua/entities/weapons" (again, from memory), although this will cause it to appear in the sandbox spawnmenu, where it cannot function for techical reasons.
PumaEng3l 15 Jul, 2015 @ 1:31pm 
Hey I have a quick question: I'm hosting my own TTT server and I wanted to add some addons. I downloaded the file and extracted it with GmadExtractor to my /server/addons directory. However this addon doesnt shop up in the traitor menu. Other addons like the AK47, the defibrillator are working perfectly fine. Does anybody know what I can do?
MCFX2 26 Mar, 2015 @ 12:58am 
Yes, but there's no configuration for this. Add a config, and it's perfect. The config should also include whether or not to have the cloak on a timer, and if so what time limit.
Lykrast  [author] 25 Mar, 2015 @ 11:21pm 
Using weapon DOES remove the cloak, it even makes a loud-*** noise. The way it work is that you are cloaked as long as this is your current weapon, and switching to/from this weapon will make the noise.

It can also be easy to see a cloaked player if you are careful enough, most reliable way is to watch for a shadow without a corpse.
MCFX2 25 Mar, 2015 @ 9:13pm 
You should some sort of configuration files to affect things like how the invisibility works. Right now, it's a little overpowered. Run away to a secluded spot and snipe everyone without them knowing it. I'd like to see the following:
-Optional outline for cloaked players (still hard to see, but seeable)
-Using weapons disables the cloak
-A timer on the cloak, you can only use it so long before having to uncloak
lovely lad 15 Feb, 2015 @ 2:29am 
I'm using your jetpack addon and this one as admin only. Now we can abuse the shit out of users. Thanks :3
Lykrast  [author] 27 Jan, 2015 @ 10:21pm 
You're welcome. ;)
Quarter2Doom 27 Jan, 2015 @ 2:50pm 
This is working great on the server mate, thanks a lot.