Anti-r_drawviewmodel 0

NecroNecro <insert non-birthday-related title here> Join Date: 2002-08-09 Member: 1118Members
<a href='http://www.gotleet.com/~golex/plugin_rdrawblock.amx' target='_blank'>http://www.gotleet.com/~golex/plugin_rdrawblock.amx</a> linux compile
<a href='http://www.gotleet.com/~golex/plugin_rdrawblock.sma' target='_blank'>http://www.gotleet.com/~golex/plugin_rdrawblock.sma</a> source if you care


all credit goes to the pwnage golex who made this on such short notice (and request!)
«1

Comments

  • voogruvoogru Naturally Modified (ex. NS programmer) Join Date: 2002-10-31 Member: 1827Members, Retired Developer, NS1 Playtester, Contributor, Constellation
    I dont think that will work, AdminMOD blocks the alias command I think.

    If that did work, it would be the same method i use to block the r_drawviewmodel by aliasing over it.
  • FlayraFlayra Game Director, Unknown Worlds Entertainment San Francisco Join Date: 2002-01-22 Member: 3Super Administrators, NS2 Developer, Subnautica Developer
    Hmmm...I didn't think the server could do this. I tried execing this using "CLIENT_COMMAND" (g_engfuncs.pfnClientCommand) and it doesn't work. Are you sure this script works?
  • SuicideDogSuicideDog Join Date: 2002-11-10 Member: 8104Members
    What to prevent them from turning it back on? Hey Voogru, can you release yours? (close source it fine with me)
  • GoleXGoleX Join Date: 2002-11-07 Member: 7681Members
    When you alias over a command, it can not be used again until the game is restarted. There is also no way to unalias.

    Thanks to Hullu for that info, he pwnz.
  • GoleXGoleX Join Date: 2002-11-07 Member: 7681Members
    edited January 2003
    Voogru is right, AdminMod won't allow the alias command to run. Looks like someone might have to convert this to a MM plugin, or I'll have to code in a clunky timer that runs r_drawviewmodel 1 on every client occasionally (which is what I will do for now till someone finds a better way).

    Oh and Flayra, those commands should work perfectly, the exact command is:
    r_drawviewmodel 1;alias r_drawviewmodel wait

    It works perfectly, tested it on my client before adding it. Damn Adminmod for thwarting me again.
  • GoleXGoleX Join Date: 2002-11-07 Member: 7681Members
    Alright, the links at the top are updated with new version.

    It now runs the command "r_drawviewmodel 1" on every client every 30 seconds.

    Use admin_rdrawblock 0|1 to turn it off and on.

    Later.
  • voogruvoogru Naturally Modified (ex. NS programmer) Join Date: 2002-10-31 Member: 1827Members, Retired Developer, NS1 Playtester, Contributor, Constellation
    edited January 2003
    I added this to my bugfix dll, It also sports a 10 second delay on jointeam/readyroom commands to thwart the resource exploit.

    This is the same "bugfix" that stops the commandermode exploit. Please note i no longer have a linux compile of this, so i need someone to compile it for me <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo-->

    Untested, but it should work.

    Btw, Flayra CLIENT_COMMAND can do any command on the client, only adminmod blocks certain commands since they want to prevent evil admins from abusing it.

    <a href='http://www.voogru.net/www/plugins/bugfix.zip' target='_blank'>http://www.voogru.net/www/plugins/bugfix.zip</a>

    <!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->
    It now runs the command "r_drawviewmodel 1" on every client every 30 seconds.
    <!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->

    Thats very easy to get around.
  • FamFam Diaper-Wearing Dog On A Ball Join Date: 2002-02-17 Member: 222Members, NS1 Playtester, Contributor
    I know TheIggsta had a solution for this. I believe it set up "r_drawviewmodel 1" and then rebound r_drawviewmodel to 'wait' or soemthing of that ilk.
  • GoleXGoleX Join Date: 2002-11-07 Member: 7681Members
    <!--QuoteBegin--voogru+Jan 23 2003, 04:09 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (voogru @ Jan 23 2003, 04:09 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--><!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->
    It now runs the command "r_drawviewmodel 1" on every client every 30 seconds.
    <!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->

    Thats very easy to get around.<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    Well of course it is... but no other options for an Adminmod plugin solution.

    Thanks for the MM plugin.
  • NecroNecro &lt;insert non-birthday-related title here&gt; Join Date: 2002-08-09 Member: 1118Members
    30 is way to long should be like every 2 seconds otherwise u can easily get around it <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html/emoticons/sad.gif' border='0' valign='absmiddle' alt='sad.gif'><!--endemo-->
  • GoleXGoleX Join Date: 2002-11-07 Member: 7681Members
    Can anyone compile this for linux? I am lazy.... and stupid.
  • SuicideDogSuicideDog Join Date: 2002-11-10 Member: 8104Members
    edited January 2003
    Here is the amx version of GoleX's orginal plugin (not the time delayed one) .. compliments of TCquest78. Amx does not prevent aliases yet so I was able to get this to work on my linux box. (AMX RULES)

    A few notes:

    1)It for some reason doesn't like to run unless it's placed directly under the admin.amx in the plugin.ini
    2)It's not on by default so you will have to turn it on in your admin.cfg or server.cfg

    the syntax is:

    amx_rdrawblock 0|1 (off|on : default off) (Level a access is required)
  • NecroNecro &lt;insert non-birthday-related title here&gt; Join Date: 2002-08-09 Member: 1118Members
    okay, i suggest using voogru's metamod plugin (originally golex's)

    <a href='http://sprites.dayofdefeatmod.com/bugfix.so' target='_blank'>http://sprites.dayofdefeatmod.com/bugfix.so</a>

    ^^ linux port of voogru's thanks to scottl.

    i tested it and works like a charm (even stops skulk script!)
  • SuicideDogSuicideDog Join Date: 2002-11-10 Member: 8104Members
    edited January 2003
    I would've used Voogru's plugin if it had been complied before TCquest78 had convert GoleX's for me.. besides it's much easier for me to mod amx code and recompile the plugin then it is to build a new .so from the source every time <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' valign='absmiddle' alt='tounge.gif'><!--endemo-->. The plugin works like a charm, and it's what GoleX was trying to do originally, but was thwarted by adminmod!

    (p.s. mine also blocks all those skulk scripts.)
  • CaucasianCaucasian Join Date: 2002-11-26 Member: 9993Members
    Can this plugin be used with adminmod? Or just AMX?
  • TweedleTweedle Join Date: 2002-11-07 Member: 7581Members
    edited February 2003
    Slightly hacked version for those of you who don't want to bother with turning it on and off and just want in ON.

    <!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->#include <amxmod>
    #include <amxmisc>

    public client_connect(id) {
    client_cmd(id, "r_drawviewmodel 1; alias r_drawviewmodel wait")
    return PLUGIN_CONTINUE
    }

    public plugin_init() {
    register_plugin("r_drawviewmodel blocker", "1.0", "Tcquest78")
    return PLUGIN_CONTINUE
    }<!--c2--></td></tr></table><span class='postcolor'><!--ec2-->

    Anyone could have done it but if you're lazy, here it is.

    Note: I tested it and it works great! AMX, Linux.
  • Tcquest78Tcquest78 Join Date: 2002-12-17 Member: 10949Members
    Beat this: 5 lines of code.
    And it makes them 'say I tried to change r_drawviewmodel' when they try to change it too ;D.

    <!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->
    #include <amxmod>
    public client_connect(id) {
    client_cmd(id, "r_drawviewmodel 1; alias r_drawviewmodel ^"say I tried to change r_drawviewmodel!^"")
    return PLUGIN_CONTINUE
    }
    <!--c2--></td></tr></table><span class='postcolor'><!--ec2-->

    <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif'><!--endemo-->
  • cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
    awsome...both of you.
  • ShadowcatShadowcat Join Date: 2003-01-18 Member: 12443Members
    1 question, why would you want to remove this, it really doesn't help the person out that much, the only thing it does is increase your fps which is really good for people who use 56k and lag badly. I mean it really is unfair for a 300 ping person to go against a 40 ping person. However, I don't really care if they fix this anyways.
  • cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
    go skulk and try this out....you'll see how it really gives them an unfair advantage.
  • TweedleTweedle Join Date: 2002-11-07 Member: 7581Members
    <!--QuoteBegin--Tcquest78+Feb 20 2003, 05:52 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Tcquest78 @ Feb 20 2003, 05:52 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> Beat this: 5 lines of code. <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
    Nice! I'll recompile and update <!--emo&;)--><img src='http://www.unknownworlds.com/forums/html/emoticons/wink.gif' border='0' style='vertical-align:middle' alt='wink.gif'><!--endemo--> How difficult to have it kickban 5min or whatever a second after they say that? I want to send a stronger message <!--emo&:angry:--><img src='http://www.unknownworlds.com/forums/html/emoticons/mad.gif' border='0' style='vertical-align:middle' alt='mad.gif'><!--endemo-->
  • cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
    <!--QuoteBegin--Tweedle+Feb 20 2003, 07:30 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Tweedle @ Feb 20 2003, 07:30 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> <!--QuoteBegin--Tcquest78+Feb 20 2003, 05:52 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Tcquest78 @ Feb 20 2003, 05:52 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> Beat this: 5 lines of code. <!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    Nice! I'll recompile and update <!--emo&;)--><img src='http://www.unknownworlds.com/forums/html/emoticons/wink.gif' border='0' style='vertical-align:middle' alt='wink.gif'><!--endemo--> How difficult to have it kickban 5min or whatever a second after they say that? I want to send a stronger message <!--emo&:angry:--><img src='http://www.unknownworlds.com/forums/html/emoticons/mad.gif' border='0' style='vertical-align:middle' alt='mad.gif'><!--endemo--> <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
    add a line to the logs looking like the VAC cheater detection when they try to use it...then kick/ban....so it will show up on the stats...if you run it.
  • TweedleTweedle Join Date: 2002-11-07 Member: 7581Members
    Funny. A regular to my server asked me if it is set to 1 for good or if he'll be able to set it back to 0 later. <!--emo&:angry:--><img src='http://www.unknownworlds.com/forums/html/emoticons/mad.gif' border='0' style='vertical-align:middle' alt='mad.gif'><!--endemo--> He was on the marines when he asked, but he <i>was</i> an EXCELLENT skulk. One of the best.

    That explains it.

    Argh.

    <!--emo&::asrifle::--><img src='http://www.unknownworlds.com/forums/html/emoticons/asrifle.gif' border='0' style='vertical-align:middle' alt='asrifle.gif'><!--endemo--> <!--emo&::skulk::--><img src='http://www.unknownworlds.com/forums/html/emoticons/skulk.gif' border='0' style='vertical-align:middle' alt='skulk.gif'><!--endemo-->
  • Tcquest78Tcquest78 Join Date: 2002-12-17 Member: 10949Members
    edited February 2003
    EDIT: Good point by voog....
  • TweedleTweedle Join Date: 2002-11-07 Member: 7581Members
    Thanks! I'm just going to use a ban for a few minutes .. a kick just takes a retry. A 5 minute ban sends more of a message.

    Thanks again <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif'><!--endemo-->
  • voogruvoogru Naturally Modified (ex. NS programmer) Join Date: 2002-10-31 Member: 1827Members, Retired Developer, NS1 Playtester, Contributor, Constellation
    edited February 2003
    I would be very carefull doing this.


    If they reconnect to the server (or a map changed), and the r_drawviemodel has been alias'ed over it will execute the alias and ban them.


    Even tho, It was auctually the server setting r_drawviewmodel to 1.


    This is why, I just alias over it and keep it quiet. Its disabled, they cant use it. thats all I care about.
  • ShadowcatShadowcat Join Date: 2003-01-18 Member: 12443Members
    about the sulk, do you mean if the marine jumps away to the side as the sulk bites and you see the bite ani, the sulk is not suppose to see the marine as well as when its using r_draw to remove the bite animation and you can see the marine jumping to the side. The only problem I have is that during gameplay, I have a using radeon 9000 with 800 ram, when I walk around I get 30-40 fps, I really think I should get higher, when using the sulk bite and the animation shows, my fps drops down badly. It would be nice if it didn't create so much fps. ps: my vsinc is off, but I really don't see a difference
  • SuicideDogSuicideDog Join Date: 2002-11-10 Member: 8104Members
    With that card you should be able to get a 100fps (hl max). I have a 7200 that I get 100fps on .. you need to tweak the settings.. turn off vertical-sync and make sure you are running in opengl.. also set fps_max 100 (it's that command or something like it).
  • Grimm_SpectorGrimm_Spector Join Date: 2002-11-01 Member: 3309Members, Constellation
    umm....what exactly do those 2 commands do btw? I kinda missed out on any previous discussion....has something to do with rendering by the looks of it, but what?
  • NarfwakNarfwak Join Date: 2002-11-02 Member: 5258Members, Super Administrators, Forum Admins, NS1 Playtester, Playtest Lead, Forum Moderators, Constellation, NS2 Playtester, Squad Five Blue, Reinforced - Supporter, Reinforced - Silver, Reinforced - Gold, Reinforced - Diamond, Reinforced - Shadow, Subnautica PT Lead, NS2 Community Developer
    Did anyone do a win32 version? I don't have time to read through the whole thread now (gotta get going).
Sign In or Register to comment.