Raised This Month: $154 Target: $400
 38% 

[L4D1/2] Thirdpersonshoulder Block (1.3 - Updated September 11, 2011)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Don Sanchez
Junior Member
Join Date: Jun 2011
Plugin ID:
2388
Plugin Version:
1.3
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    96 
    Plugin Description:
    Kicks clients who enable the thirdpersonshoulder mode on L4D1/2 to prevent them from looking around corners, through walls etc.
    Old 06-19-2011 , 04:59   [L4D1/2] Thirdpersonshoulder Block (1.3 - Updated September 11, 2011)
    Reply With Quote #1

    [L4D1/2] Thirdpersonshoulder Block


    My first plugin. :3



    Description:


    This plugin will kick clients who use the "thirdpersonshoulder" command to engage in thirdperson in Left 4 Dead or Left 4 Dead 2.

    While VALVe has tried to patch this in an earlier update (making the thirdpersonshoulder command having no effect in competitive gamemodes), there is still a way around to use it with a custom *.vkp addon.

    This is bad, because there are numerous ways how thirdpersonshoulder can be used to gain advantages in Versus and similar gamemodes, so to say, cheat.
    Using thirdpersonshoulder, it is possible to look around corners without exposing yourself, generally being able to see what is around and behind you all the time, letting you defend yourself a lot more efficiently, and in the worst case, manipulating the thirdperson camera position. It is possible to look on the map from above, spotting hunters on rooftops before they initiate their highpounce, looking around in the map searching for items without even going there, and even look straight through walls and shooting infected behind it, pretty much wallhack. It is also possible to bypass the fog/rain on the Hard Rain campaign for example that normally stops snipers from shooting targets at a far range.

    To prevent stuff like this:
    • Kicks clients on the survivor and infected team who have c_thirdpersonshoulder set to 1, which is a side-effect of using the thirdpersonshoulder command.
    • Clients are informed in the kick message how to change the cvar to be able to rejoin the server (in the case of the start of a competitive match for example).
    • All other players in the server will be notified if a client is kicked and why.

    http://www.abload.de/image.php?img=t...der_kijm46.jpg

    Note: It is possible to land back in firstperson without the c_thirdpersonshoulder being set back to 0, for example when you die. Such a client will still be kicked when he joins the server, but he can fix the cvar once and will be able to play without problems afterwards.
    Unfortunately there is no other way to check for thirdperson, and there is no easy way anymore for servers to execute commands on clients (such as resetting the cvar for the client).


    Console variables:


    Just the version cvar so far.
    • l4d_tpsblock_version - Version of the Thirdpersonshoulder Block plugin


    Credits:

    Special thanks to ProdigySim, psychonic and CanadaRox for helping me with all my coding questions.
    Also thanks to Mr. Zero, whose plugins' code I took a look at a few times to learn some things. The same applies for ProdigySim's and CandaRox's plugins. ;)


    Changelog:

    Quote:
    September 11, 2011 (1.3)
    * Code optimizations

    July 31, 2011 (1.2)
    * Minor change of the kick notification message.

    June 19th, 2011 (1.1)
    * Truncated the version cvar.

    June 19th, 2011 (1.0)
    * Initial release.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_thirdpersonshoulderblock.sp - 1503 views - 3.4 KB)

    Last edited by Don Sanchez; 09-11-2011 at 08:58.
    Don Sanchez is offline
    adrianman
    Senior Member
    Join Date: Sep 2010
    Old 06-19-2011 , 06:08   Re: [L4D1/2] Thirdpersonshoulder Block (1.0 - June 19th, 2011)
    Reply With Quote #2

    nice find,gonna use this
    adrianman is offline
    xioSlayer
    Senior Member
    Join Date: Apr 2011
    Old 06-27-2011 , 03:55   Re: [L4D1/2] Thirdpersonshoulder Block (1.1 - June 19th, 2011)
    Reply With Quote #3

    I bet its extremely rare for this to be abused, and even when it is, its not like they can shoot you once they've messed up their view...

    and third person mode has its drawbacks, such as not being able to shoot perfectly straight, no matter what the parameters are set to.

    Still useful if you dont like thirdperson at all, but i dont mind it
    xioSlayer is offline
    Don Sanchez
    Junior Member
    Join Date: Jun 2011
    Old 06-30-2011 , 08:30   Re: [L4D1/2] Thirdpersonshoulder Block (1.1 - June 19th, 2011)
    Reply With Quote #4

    Quote:
    Originally Posted by xioSlayer View Post
    I bet its extremely rare for this to be abused, and even when it is, its not like they can shoot you once they've messed up their view...

    and third person mode has its drawbacks, such as not being able to shoot perfectly straight, no matter what the parameters are set to.
    Yes it is rare to be abused now that you need a custom vkp addon to use it, but it is possible, I have already seen people who played with it, and quite a lot of people use it for creating fragmovies etc. with thirdperson.

    Also, their view won't be messed up, you can change a few variables to set how the thirdpersonshoulder camera is positioned, and it's very well playable.
    There are drawbacks like the crosshair normally not being 100% accurate, but it's negligible when you adjust the variables correctly, and the advantages are quite huge. And keep in mind that on top of that, they can manipulate it to wallhack etc... hm maybe I should make an exemplary video of that.
    Don Sanchez is offline
    Zbeer
    SourceMod Donor
    Join Date: Aug 2010
    Old 09-13-2011 , 14:25   Re: [L4D1/2] Thirdpersonshoulder Block (1.3 - Updated September 11, 2011)
    Reply With Quote #5

    Thank you!
    Zbeer is offline
    checkster
    Veteran Member
    Join Date: Apr 2007
    Location: Norway
    Old 12-11-2011 , 22:52   Re: [L4D1/2] Thirdpersonshoulder Block (1.3 - Updated September 11, 2011)
    Reply With Quote #6

    nice plugin.
    Anyway to make it temp ban ?
    Maybe add a cfg ?
    checkster is offline
    checkster
    Veteran Member
    Join Date: Apr 2007
    Location: Norway
    Old 12-11-2011 , 23:07   Re: [L4D1/2] Thirdpersonshoulder Block (1.1 - June 19th, 2011)
    Reply With Quote #7

    Quote:
    Originally Posted by xioSlayer View Post
    I bet its extremely rare for this to be abused, and even when it is, its not like they can shoot you once they've messed up their view...

    and third person mode has its drawbacks, such as not being able to shoot perfectly straight, no matter what the parameters are set to.

    Still useful if you dont like thirdperson at all, but i dont mind it
    This plugin actually kick's an average of 30 people each day on my server.
    checkster is offline
    matrixmark
    Senior Member
    Join Date: Jun 2010
    Old 04-20-2012 , 10:57   Re: [L4D1/2] Thirdpersonshoulder Block (1.3 - Updated September 11, 2011)
    Reply With Quote #8

    Haha this caught a person on mine last night... he swore blind he wasnt using it so I asked him to send me his autoexec conf and there it was right at the top

    Either he didnt know or he was just playing dumb but in anycase pretty awesome plugin
    matrixmark is offline
    Simca
    Senior Member
    Join Date: Feb 2012
    Old 08-08-2012 , 14:29   Re: [L4D1/2] Thirdpersonshoulder Block (1.3 - Updated September 11, 2011)
    Reply With Quote #9

    Instead of being kicked can the plugin force the cvar onto the client? or disable something so thirdperson can't be used? Because people don't understand the kick message. They're not fluent in English.
    Or can you allow us to change the kick message?

    Last edited by Simca; 08-12-2012 at 02:07.
    Simca is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 05:43.


    Powered by vBulletin®
    Copyright ©2000 - 2017, vBulletin Solutions, Inc.
    Theme made by Freecode