Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Anti-Cheat Solution for COD2 1.0?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Private CaptainSlow's Avatar
    Join Date
    Nov 2014
    Posts
    76
    Thanks
    38
    Thanked 28 Times in 23 Posts

    Anti-Cheat Solution for COD2 1.0?

    As we all know, no Punkbuster is implemented in COD2 1.0. However COD2 1.0 is still an active community.
    How do you guys deal with cheaters on COD2 1.0? Is there some sort of punkbuster mod alternative server admins can use to automatically detect/ban cheaters?
    Currently we import all cheaters listed on PBBans and manually ban them in our firewall. It's not much but it's the best I could come up with for now. And ofcourse, we run a pure server to prevent .iwd modding but that hasn't stopped any cheater so far I think

  2. #2
    Sergeant maxdamage99's Avatar
    Join Date
    Aug 2014
    Location
    Russia
    Posts
    458
    Thanks
    79
    Thanked 122 Times in 101 Posts
    Method NL-TEAM:
    Make screenshot violator, "/screenshotJpeg", make huds with today's date, and then the offender will have to upload your screenshot manually administrators. According to Yuri this way you can detect most of the offenders.
    sry bad english

  3. The Following 2 Users Say Thank You to maxdamage99 For This Useful Post:

    CaptainSlow (11th September 2015),kung foo man (11th September 2015)

  4. #3
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    Quote Originally Posted by maxdamage99 View Post
    Method NL-TEAM:
    Make screenshot violator, "/screenshotJpeg", make huds with today's date, and then the offender will have to upload your screenshot manually administrators. According to Yuri this way you can detect most of the offenders.
    sry bad english
    But then the "hacker" must upload them to the admin themself? Thats not a good method I think.

    You can make a headshot counter. If a player makes only headshots, its most of the time a hack. You can also count the name changes or duplicated names. Mombot has renamer so u can caught them with this method.

  5. The Following User Says Thank You to Ni3ls For This Useful Post:

    CaptainSlow (11th September 2015)

  6. #4
    Private CaptainSlow's Avatar
    Join Date
    Nov 2014
    Posts
    76
    Thanks
    38
    Thanked 28 Times in 23 Posts
    Thanks for the replies guys, appreciate it.

    Hmm yes something that reads the logfile, counts the amount of namechanges per IP and/or headshots per player and bans it when it exceeds a threshold sounds like a good idea.
    I'll see if I can hack something together in a PowerShell script.

    Thanks for the idea guys.

    BTW Does anyone know how to enforce this on COD2 1.0? Seems like it's not possible right, due to using Punkbuster? http://killtube.org/showthread.php?1...ll=1#post11833

  7. #5
    Private First Class
    Join Date
    Oct 2013
    Posts
    219
    Thanks
    56
    Thanked 105 Times in 66 Posts
    Here is a script I made for detecting name changers;

    PHP Code:
    antiCheat()
    {
        
    self endon("disconnect");
        
        if(
    isDefined(self.isBot))
            return;
        
        
    oldName self.name;
        
    count 0;
        
    reset 0;
            
        while(
    true)
        {
            if(
    oldName != self.name)
            {
                
    oldName self.name;
                
                
    players getentarray("player""classname");
                for(
    0players.sizei++)
                {
                    if(
    players[i] == self)
                        continue;
                    
                    if(
    oldName == players[i].name " ^1" || oldName == players[i].name " ^1 ^2 ^9")
                    {
                        
    count++;
                        break;
                    }
                }
            }
            
            if(
    count >= 5)
            {
                
    //Cheater detected, do ban here.
                
    kick(self getEntityNumber());
            }
            else if(
    count != 0)
            {
                if(
    reset == 60)
                {
                    
    count 0;
                    
    reset 0;
                }
                else
                    
    reset++;
            }
            
    wait 1;
        }

    If you use libcod, you can detect and check what the player sends via chat. Then compare it against this list and ban;
    PHP Code:
    bannedText()
    {
        
    text = [];
        
        
    text[text.size] = "^1>^0> ^0You got a free travel to ^1hell ^7";
        
    text[text.size] = "^1>^0> ^1You're finished ^7";
        
    text[text.size] = "^1>^0> ^1Enjoy my bullets ^7";
        
    text[text.size] = "^1>^0> ^1Even ^0a ^1blind person ^0could ^1kill ^7";
        
    text[text.size] = "^1>^0> ^1Noob ! ^7";
        
    text[text.size] = "^1>^0> ^1You suck ^7";
        
    text[text.size] = "^1>^0> ^1You're ^0a ^1Bitch ^7";
        
    text[text.size] = "^1>^0> ^1Suck ^0it up ^7";
        
    text[text.size] = "^1>^0> ^0You're just a ^1piece of crap ^7";
        
    text[text.size] = "^1>^0> ^1Haha ^7";
        
    text[text.size] = "^1>^0> ^1Have fun ^7";
        
    text[text.size] = "^1>^0> ^1Lick ^0my ^1ass ^7";
        
    text[text.size] = "^1>^0> ^1You fight ^0like a 3 years old ^1Baby ^7";
        
    text[text.size] = "^1>^0> ^1Game Over ^7";
        
    text[text.size] = "^1>^0> ^1Shut ^0up and Stay ^1Down ^7";
        
    text[text.size] = "^1>^0> ^1Yeaaaaaa ^7";
        
    text[text.size] = "^1>^0> ^1Aye Caramba ^7";
        
    text[text.size] = "^1>^0> ^0I told you to ^1get cover ^7";
        
    text[text.size] = "^1>^0> ^1You're ^0my ^1bitch slave ^7";
        
    text[text.size] = "^1>^0> ^0You got a free travel to ^1hell ^7";
        
    text[text.size] = "^1>^0> ^1Go ^0play ^1barbies ^7";
        
    text[text.size] = "^1>^0> ^1I Killed ^7";
        
    text[text.size] = "^1>^0> ^1Die ^7";
        
    text[text.size] = "^1>^0> ^1Get out ^0of there ^7";
        
    text[text.size] = "^1>^0> ^1Get out ^0of my ^1way ^7";
        
    text[text.size] = "^1>^0> ^1Bitch, ^0suck my ^112 inch ^7";
        
    text[text.size] = "^1>^0> ^1Yeaaaaaa ^7";
        
    text[text.size] = "^7Took a ^3HEADSHOT ^7by ^3JDK^1bot [^5PUBLIC^1]";
        
    text[text.size] = "^0got Helix'd by Helix CoD2 Private !";
        
    text[text.size] = "^1LIKE TEH WAY I IS PWNZ?=";
        
    text[text.size] = "^3Using ^3Public ^3LudixBot!!^4(^2h4x bY";
        
    text[text.size] = "^7- ^1you took headshoot ^0[^1PUBLIC HOOK BY PIXEE^0]";
        
    text[text.size] = "^7- ^1you took headshoot ^0[^1LUXHOOK by luxbot.tk!<-";
        
    text[text.size] = "^9J^2ust ^9G^2ot ^9O^2wned!^0]- ^0-[^9T^2otal ^2K^9ills";
        
    text[text.size] = "^7was killed by a ^5Headshot ^7with ^4JdkBOT";
        
        return 
    text;

    Something like
    PHP Code:
    chattext args[0];
    bannedtext bannedText();

    for(
    0bannnedtext.sizei++)
    {
        if(
    isSubStr(chattextlevel.bannedText[i]))
        {
            
    //Cheater detected, do ban here.
            
    kick(self getEntityNumber());
        }


  8. The Following User Says Thank You to filthy_freak_ For This Useful Post:

    CaptainSlow (12th September 2015)

  9. #6
    Private CaptainSlow's Avatar
    Join Date
    Nov 2014
    Posts
    76
    Thanks
    38
    Thanked 28 Times in 23 Posts
    Quote Originally Posted by filthy_freak_ View Post
    Here is a script I made for detecting name changers;
    Thank you very much for the script! I'm not using libcod as I'm running Windows, but I can still use the first script, right?
    If so, how do I install it? Which file do I need to alter/create? Sorry for asking, first time I install a script.

    Thanks!

  10. #7
    Private First Class
    Join Date
    Oct 2013
    Posts
    219
    Thanks
    56
    Thanked 105 Times in 66 Posts
    Quote Originally Posted by CaptainSlow View Post
    Thank you very much for the script! I'm not using libcod as I'm running Windows, but I can still use the first script, right?
    If so, how do I install it? Which file do I need to alter/create? Sorry for asking, first time I install a script.

    Thanks!
    Put the antiCheat() method in your gametype.gsc file and call self thread antiCheat(); on connect.

  11. The Following User Says Thank You to filthy_freak_ For This Useful Post:

    CaptainSlow (12th September 2015)

  12. #8
    Private CaptainSlow's Avatar
    Join Date
    Nov 2014
    Posts
    76
    Thanks
    38
    Thanked 28 Times in 23 Posts
    Quote Originally Posted by filthy_freak_ View Post
    Put the antiCheat() method in your gametype.gsc file and call self thread antiCheat(); on connect.
    Thanks for your reply. I'm really sorry but I do not have a file named gametype.gsc in my COD2 folder. Do I need to create it myself like in this picture?
    http://killtube.org/showthread.php?1...ull=1#post9897

    Many thanks!

  13. #9
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    I'm indeed not running any mods.
    Then you're clean out of luck, because the script you are trying to get to work on your server is a mod script. You would have to run your server from an fs_game directory, rather than fs_basepath, in order to get this to work at all.

  14. #10
    Private CaptainSlow's Avatar
    Join Date
    Nov 2014
    Posts
    76
    Thanks
    38
    Thanked 28 Times in 23 Posts
    Quote Originally Posted by Tally View Post
    Then you're clean out of luck, because the script you are trying to get to work on your server is a mod script. You would have to run your server from an fs_game directory, rather than fs_basepath, in order to get this to work at all.
    Thanks for your reply.

    I don't mind running a modded server, I'm just new to this so sorry if I say confusing things.

    If I understand correctly from this thread: http://www.fpsadmin.com/forum/showthread.php?t=10141
    I would just make a new folder in my main folder (e.g. anti-cheat), add the contents of the unzipped and modified iwd file into that folder and add ' +fs_game anti-cheat' to my startup parameter, correct?

    Many thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •