• gm_cvar2
    147 replies, posted
  • Avatar of Eusion
  • Now that VAC is enabled in GMod, and Garry has stated even GMod modules like BaconBot can trigger bans, this is probably more then likely to trigger one as it edits flags? Am I right, I'm really not sure about this whole VAC situation at the moment.
  • [QUOTE=Python1320;25725717]Why would you run this on client?[/QUOTE] To change sv_scriptenforcer or sv_cheats ?
  • Avatar of LuaStoned
  • [QUOTE=Trivkz;25725804]To change sv_scriptenforcer or sv_cheats ?[/QUOTE] sv_scriptenforcer 2
  • Avatar of Python1320
  • Thanks to [url=http://www.facepunch.com/threads/1040338-gm_sourcenet3-Advanced-Source-Networking-Library]Chrisaster's SourceNet[/url] we can now replicate (:v:) the ReplicateData function: [lua] -- Code by Chris, Thanks to Haza. require( "sourcenet3" ) function _R.Player:GetNetChannel() return CNetChan( self:EntIndex() ) end function _R.Player:SetConVar( name, value ) local netchan = self:GetNetChannel() if ( !netchan ) then return end local buf = netchan:GetReliableBuffer() buf:WriteUBitLong( net_SetConVar, 6 ) buf:WriteByte( 1 ) buf:WriteString( name ) buf:WriteString( value ) end [/lua]
  • Avatar of haza55
  • [QUOTE=Python1320;26883998]Thanks to [url=http://www.facepunch.com/threads/1040338-gm_sourcenet3-Advanced-Source-Networking-Library]Chrisaster's SourceNet[/url] we can now replicate (:v:) the ReplicateData function: [lua] -- Code by Chris, Thanks to Haza. require( "sourcenet3" ) function _R.Player:GetNetChannel() return CNetChan( self:EntIndex() ) end function _R.Player:SetConVar( name, value ) local netchan = self:GetNetChannel() if ( !netchan ) then return end local buf = netchan:GetReliableBuffer() buf:WriteUBitLong( net_SetConVar, 6 ) buf:WriteByte( 1 ) buf:WriteString( name ) buf:WriteString( value ) end [/lua][/QUOTE] One less plugin for me to update. *Cheers* :D
  • [QUOTE=The Kitteh;27659095]Ekk... i wanna use it for a listening server, but im afraid it might trigger vac. Who knows if garry has sent these to valve.[/QUOTE] Why would Garry send legit modules to Valve?
  • Avatar of Grocel
  • [QUOTE=The Kitteh;27659095]Ekk... i wanna use it for a listening server, but im afraid it might trigger vac. Who knows if garry has sent these to valve.[/QUOTE] There is no way to cheat with it, the client side var of script-enforcer can not be changed with it, because it's set in the memory (in a stringtable I think) not in the console as command.
  • Avatar of blackops7799
  • I was bored so I whipped this up. [url]http://blackopsservers.com/blackops/files/gm_cvar3.rar[/url] gm_cvar3. Does basically everything cvar2 does, except it just extends onto the already existing convar class and player class. [code] Player:ExecuteCommandOnClient( cmd ) Player:GetUserSetting( setting ) Player:ReplicateData( cmd, setting ) FCVAR_DEVELOPMENTONLY FCVAR_HIDDEN GetAllConVars() ConVar:SetValue( int/bool/string ) ConVar:ResetValue() ConVar:SetHelpText( txt ) ConVar:SetFlags( int ) ConVar:GetFlags() ConVar:HasFlag( int ) ConVar:GetMin() ConVar:GetMax() [/code] I know sourcenet can do most of this, but not everyone knows how to use sourcenet.
  • Avatar of Wizard of Ass
  • [QUOTE=Proll;32602834]Any Vac ban chances on Modules ?[/QUOTE] No, but trying to use it to cheat isn't a very good idea...
  • Sorry to bump a (semi) old thread once again, but theoretically, if i were to use this to force host_framerate would there be an increased chance of getting a vac ban, i've heard of people using this to force sv_scriptenforcer on old scriptenforcer and getting vac'd but im not quite sure about forcing other clientside cvars
  • Avatar of Wizard of Ass
  • You cannot get vac banned for this, but you'd need another binary anyway to be able to aboid script enforcer.
  • Avatar of Gfoose
  • [QUOTE=Ownage96;32772949]Sorry to bump a (semi) old thread once again, but theoretically, if i were to use this to force host_framerate would there be an increased chance of getting a vac ban, i've heard of people using this to force sv_scriptenforcer on old scriptenforcer and getting vac'd but im not quite sure about forcing other clientside cvars[/QUOTE] You're a fucking idiot Dominic, the sv_scriptenforcer convar on clientside does nothing but changes it for your listen server, also you don't get VAC banned however it is really easy to pick up you using this to cheat.
  • Avatar of Wizard of Ass
  • [QUOTE=Gfoose;32778726]You're a fucking idiot Dominic, the sv_scriptenforcer convar on clientside does nothing but changes it for your listen server, also you don't get VAC banned however it is really easy to pick up you using this to cheat.[/QUOTE] Why did you call him dominic?
  • Avatar of Gfoose
  • [QUOTE=Wizard of Ass;32778960]Why did you call him dominic?[/QUOTE] Because thats his real name, Dominic Shields.
  • [QUOTE=Gfoose;32797981]Because thats his real name, Dominic Shields.[/QUOTE] Coolstorybro needs more dragons. Umad geforce? You're implying that i was supposed to know all that by calling me a fucking idiot. Just cause your shitty sethhack anticheat got patched bro ;) Secondly, no it is not 'really easy' to pick up this cheat. If i override getconvars, save the functions and remove them right after being saved when the script runs, then not much could really detect it.
  • Avatar of Gfoose
  • [QUOTE=Ownage96;32841646]Coolstorybro needs more dragons. Umad geforce? You're implying that i was supposed to know all that by calling me a fucking idiot. Just cause your shitty sethhack anticheat got patched bro ;) Secondly, no it is not 'really easy' to pick up this cheat. If i override getconvars, save the functions and remove them right after being saved when the script runs, then not much could really detect it.[/QUOTE] Actually, my anti-cheat didn't get patched, it still works 100% Go look at your sethhack forums, see how many people complaining about being banned. Also, I love it how you think you're such a lua expert, I can pick up this module in a flash even before you join my server. [img]http://puu.sh/75f3[/img] ALL CAPS RAGE AFTER BEING BANNED ON MY SERVER, THIS IS HOW YOU GET SETH'S ATTENTION
  • [QUOTE=Gfoose;32842849]Actually, my anti-cheat didn't get patched, it still works 100% Go look at your sethhack forums, see how many people complaining about being banned. Also, I love it how you think you're such a lua expert, I can pick up this module in a flash even before you join my server. [img]http://puu.sh/75f3[/img] ALL CAPS RAGE AFTER BEING BANNED ON MY SERVER, THIS IS HOW YOU GET SETH'S ATTENTION[/QUOTE] Using hayhays sethhack account and posting his unique SH id > Mfw [img]http://cdn1.knowyourmeme.com/i/000/101/771/original/1879f18e_e542_e1c6.jpg[/img] Btw, your sethhack anticheat is terribru, i found it in 20 seconds. DERP. [highlight](User was banned for this post ("Troll/flame" - Hexxeh))[/highlight]
  • Avatar of Gfoose
  • [QUOTE=Ownage96;32855135]Using hayhays sethhack account and posting his unique SH id > Mfw [img]http://cdn1.knowyourmeme.com/i/000/101/771/original/1879f18e_e542_e1c6.jpg[/img] Btw, your sethhack anticheat is terribru, i found it in 20 seconds. DERP.[/QUOTE] Do you think you're so professional using notepad++ to find in files in your cache folder? try making an anti-cheat that isn't clientsided which picks up sethhack. Just another skiddie that thinks his "pro" [highlight](User was banned for this post ("Troll/flame" - Hexxeh))[/highlight]
  • Y u mad tho? your pretty smart aye ;D Btw, if i was already banned how could i pick up your updated anticheat from my cache folder.. to get the cache folder you have to join the server, and since im banned, i cannot. Do you see how that works?
  • Avatar of Gfoose
  • [QUOTE=Ownage96;32856852]Y u mad tho? your pretty smart aye ;D Btw, if i was already banned how could i pick up your updated anticheat from my cache folder.. to get the cache folder you have to join the server, and since im banned, i cannot. Do you see how that works?[/QUOTE] Because some guy uploaded the dua folder to sethhack forums? Herp a derp, you're so stupid Dominic. Btw my anti cheats newer than what Seth has atm.
  • Avatar of Wizard of Ass
  • Well yea, this thread went really offtopic and downhill. Would you consider carrying your cheat dramas somewhere else(that is not facepunch)?
  • Avatar of Qix
  • *Necroposts* ANY luck with this being ported to linux? >.> Hell give me a tutorial on making linux-based binary modules and I'll do it myself.
  • Avatar of Stonna
  • [QUOTE=Qix;33238894]*Necroposts* ANY luck with this being ported to linux? >.> Hell give me a tutorial on making linux-based binary modules and I'll do it myself.[/QUOTE] Without C++ compiling experience, you would have a pretty hard time making the make file for it. If I remember correctly you need a linux VM and a complete make file for it to be compiled correctly.
  • Avatar of Qix
  • [QUOTE=Stonna;33240132]Without C++ compiling experience, you would have a pretty hard time making the make file for it. If I remember correctly you need a linux VM and a complete make file for it to be compiled correctly.[/QUOTE] I have a Linux VM; I'm on it right now. I also have eclipse-cdt which takes off the need for makefiles. I also have a shell script that calls G++ directly so I can tell it exactly what I want it to do. My only issue with the cvar2 code is that I had to bring in the "public/" folder of the SDK code in its entirety, which is causing hundreds of errors. I'm working through them but it's becoming a nightmare. The source engine created a bunch of stuff which conflicts with the STL and such, so I'm slowly trying to fix it. It's pretty annoying, however.
  • [url]http://dl.dropbox.com/u/7745323/gm_cvar2_linux_v1.zip[/url] Not thoroughly tested, but it seemed to work.