Welcome, Guest. Please login or register.
Did you miss your activation email?
November 24, 2024, 10:02:57 AM
Home Help Login Register
News: Trouble in Terrorist Town? Site here, forum here.

Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: pp_PixelRender
Pages: [1]
Author Topic: pp_PixelRender  (Read 12844 times)
Mr. Gash
Poster

Posts: 382


www.nonerdsjustgeeks.com


« on: December 17, 2011, 06:43:17 AM »

With cheaters being a big issue in Garry's Mod, a lot of them are attracted to TTT servers. If they don't buy a cheat, they resort to making one or finding out methods to cheat. The "pp_PixelRender" is a post-processing command that isn't meant for cheating, but can be used for such, and is in GMod by default (When the GMod 13 update is released, this will be removed). I've noticed most TTT servers don't disable this, and I'm posting this thread just to help those who care to fix it.

To disable this command, navigate to (root)/lua/postprocess/pixelrender.lua and edit the file. On/Near line 224 you should see this:

local function OpenWindow()

    if ( ValidPanel( PixelRenderWindow ) ) then
        PixelRenderWindow:Remove()
    end
   
    PixelRenderWindow = vgui.CreateFromTable( pnlPixelRender )
    PixelRenderWindow:InvalidateLayout( true )
    PixelRenderWindow:MakePopup()
    PixelRenderWindow:AlignBottom( 50 )
    PixelRenderWindow:CenterHorizontal()
    PixelRenderWindow:SetKeyboardInputEnabled( true )
    PixelRenderWindow.CodeEdit:SetCode( "// Read the pixel at x, y \
local r, g, b = render.ReadPixel( x, y )\
\
// Draw the exact pixel back to the screen - with twice as much red!\
surface.SetDrawColor( r*2, g, b, 255 )\
surface.DrawRect( x, y, 1, 1 )\
" )

end

concommand.Add( "pp_PixelRender", OpenWindow )


From this point on you can either remove it, or replace it with something else.
BipolarDiZ
Poster

Posts: 101


|:NxS:| Staff! :D


« Reply #1 on: December 17, 2011, 07:00:21 AM »

Yeah, I was just recently informed of this. We now block the command and log it so admins can see who tried to do it! Really nice of you to spread the word! :D

BipolarDiZ is bipolar.
|:NxS:| Custom TTT Server: source.nxs-gaming.com:27015
|:NxS:| Vanilla TTT Server: source.nxs-gaming.com:27016
|:NxS:| Fretta: currently offline
Handy_man
Poster

Posts: 308


SNG community admin


« Reply #2 on: December 17, 2011, 05:59:15 PM »

This was a known thing on ECG for the longest time, in fact im pretty sure we still have an automatic ban on this command as there is no reason for anyone to use it in TTT, also this is a useful tool for testing scripts and various things on the fly just saying.

[b]
Sky-netgaming.com
Cush
Poster

Posts: 79


« Reply #3 on: December 18, 2011, 08:14:07 PM »

This was a known thing on ECG for the longest time, in fact im pretty sure we still have an automatic ban on this command as there is no reason for anyone to use it in TTT, also this is a useful tool for testing scripts and various things on the fly just saying.


What if someone does it purely to see if it is on the server so they can warn the owners?

I just do
SendLua('concommand.Remove("pp_PixelRender")')
in some other code that gets sent to the client.

Emo Panda
Poster

Posts: 221


« Reply #4 on: December 18, 2011, 08:22:38 PM »

If they don't buy a cheat, they resort to making one or finding out methods to cheat.


People actually pay for scripts?
Handy_man
Poster

Posts: 308


SNG community admin


« Reply #5 on: December 18, 2011, 09:14:01 PM »

What if someone does it purely to see if it is on the server so they can warn the owners?

I just do
SendLua('concommand.Remove("pp_PixelRender")')
in some other code that gets sent to the client.




Well unban requests for these reasons can be made, but why would they bother? lol players are players they should not try and "warn us" against an exploit/ hack by trying it warning has better methods.

[b]
Sky-netgaming.com
Cush
Poster

Posts: 79


« Reply #6 on: December 21, 2011, 07:49:51 AM »

Well unban requests for these reasons can be made, but why would they bother? lol players are players they should not try and "warn us" against an exploit/ hack by trying it warning has better methods.


They dont need to do anything with it, just see that its enabled. I'm just saying it seems silly to ban people just for typing the command, they could just be seeing if it is enabled.

Funnily enough I found out about this ages ago when some guy came on my server and tried it, then told me.
Shifty Pete
Poster

Posts: 74


Shifty_Pete.exe


« Reply #7 on: January 06, 2012, 04:52:26 AM »

Thanks.

http://www.steamcommunity.com/id/shifty_pete
Shifty Pete
Poster

Posts: 74


Shifty_Pete.exe


« Reply #8 on: January 07, 2012, 12:49:17 AM »

Knocked up my own replacement for it:

function Cheater(ply, roletext)
PrintMessage(HUD_PRINTTALK, Format("\nCheaters never win. " .. ply:Nick() .. " loses.\n", roletext))
ply:ConCommand("+left")
ply:ConCommand("+forward")
ply:ConCommand("+jump")
ply:ConCommand("+duck")
ply:ConCommand("+attack")
ply:ConCommand("+attack2")
end

concommand.Add( "pp_PixelRender", Cheater )


Have fun.

http://www.steamcommunity.com/id/shifty_pete
Anonymous
Poster

Posts: 126


« Reply #9 on: January 07, 2012, 04:24:59 AM »

Knocked up my own replacement for it:

function Cheater(ply, roletext)
PrintMessage(HUD_PRINTTALK, Format("\nCheaters never win. " .. ply:Nick() .. " loses.\n", roletext))
ply:ConCommand("+left")
ply:ConCommand("+forward")
ply:ConCommand("+jump")
ply:ConCommand("+duck")
ply:ConCommand("+attack")
ply:ConCommand("+attack2")
end

concommand.Add( "pp_PixelRender", Cheater )


Have fun.


Wouldn't

function Cheater(ply, roletext)
PrintMessageAll(HUD_PRINTTALK, Format("\nCheaters never win. " .. ply:Nick() .. " loses.\n", roletext))
ply:ConCommand("+left")
ply:ConCommand("+forward")
ply:ConCommand("+jump")
ply:ConCommand("+duck")
ply:ConCommand("+attack")
ply:ConCommand("+attack2")
end


Meh,

Tommynator
Poster

Posts: 173

Tommynator is a traitor!


« Reply #10 on: January 07, 2012, 07:48:36 AM »

What?
Handy_man
Poster

Posts: 308


SNG community admin


« Reply #11 on: January 07, 2012, 10:00:04 AM »

It would in theory as the player tries to use pp_pixelrender in game print to the server that they are attempting to cheat and then make them constantly go left, forward, jump, crouch attack1 and attack2.

Meh i would stick with banning or kicking these people automatically on this command but any "anti-cheat" (use the term loosely) will do fine and can generally be more entertaining.

[b]
Sky-netgaming.com
Anonymous
Poster

Posts: 126


« Reply #12 on: January 09, 2012, 05:10:00 PM »

ply:Kick('Go Fuck something')

SovietX
Poster

Posts: 52



« Reply #13 on: January 19, 2012, 02:28:27 AM »

useful, I'm sure alot of people have already learned about this thou.

Be the best by any means necessary
Mr. Gash
Poster

Posts: 382


www.nonerdsjustgeeks.com


« Reply #14 on: January 19, 2012, 04:59:45 AM »

useful, I'm sure alot of people have already learned about this thou.

Thread didn't need to be bumped.
Pages: [1]
Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: pp_PixelRender « previous next »
Jump to:  


Login with username, password and session length

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines
Page created in 0.01 seconds with 18 queries.