• TTT Cloaking Device Not Stay Cloaked When Not Equiped?
    3 replies, posted
My cloaking device on my server will stay cloaked unless turned off. So you are able to cloak and switch to weapons and do what ever you want as a traitor. What lines do I add to stop this and make it has to be out in order to stay cloaked. [URL="http://pastebin.com/vUA5wzfA"]weapon_ttt_cloak.lua[/URL] Any comments with be helpful, Thanks!
function SWEP:Holster() Uncloaky code stuff end
I put: function SWEP:Holster() self:UnCloak() end It sorta worked but It cant switch weapons, only way to get rid of it is to drop it. Doing any command to switch weapons just toggles it on and off.
So I got some free time because of the weekend and went in and rewrote the process of cloaking/uncloaking to make it neater and easier to use and changed some things. With this you are able to switch weapons but the catch is that you only have a limited amount of time to be cloaked (by default is 15 seconds) which can be changed in the "HidePlayerTime" timer. You will also uncloak if you take damage or die which is nice to keep bodies from being invisible. Oh and it hides shadows too which can easily be disabled if you dislike that. Hopefully this works just fine for ya :D [url]http://pastebin.com/tVEpdGzf[/url]
Sorry, you need to Log In to post a reply to this thread.