Disabling Cheats

Status
Not open for further replies.

Cloak_Master

Active Member
Reaction score
41
For starters, there is no possible way even to detect cheating through any form of an entered string. You can test this do making a trigger that reads something like this

Code:
Check
    Events
        Player - Player 1 (Red) types a chat message containing <Empty String> as A substring
    Conditions
    Actions
        Game - Display to (All players) the text: Test

You will see that it displays that message when you type anything, but not when you type in a cheat.

The only way you can test this is by making a completely controlled situation. Now, whos your daddy multiplies your damage by 100. You can integrate triggers that set a units health to a variable, cause a players hero to do 1 damage to it through triggers and check if more than 2 damage was done. If so, they're cheating.

Inversely, you can create an invisible unit with 100 health and high regeneration. Periodically, you can cause your hero to damage that unit for 1 point. If the unit dies, you can just pick every unit owned by owner of killing unit and explode them or put him into cintematic purgatory. Personally, I'd reccomend this method. GL.

My method of stopping gold cheating would be this. First, what you'll want to do is find out the biggest single way to get gold in your map. This will not work if you can get 10,000's of gold from one method, but that is rare.

Code:
Cool
    Events
        Player - Player 1 (Red)'s Current gold becomes Greater than (Real((Player 1 (Red) Current gold)))
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Player 1 (Red) Current gold) - (Integer(Playersgold[(Player number of (Triggering player))]))) Greater than 500
            Then - Actions
            Else - Actions
        Set Playersgold[(Player number of (Triggering player))] = (Real((Player 1 (Red) Current gold)))

500 being the highest possible way to get gold in your map. Basically, if a players gold spikes as it shouldn't be, they get defeated.
 

crabbb622

New Member
Reaction score
9
okay, so after endlessly posting useless information, i finally came up with a legitamate solution

it's not professional, but check to see if there is only 1 player. if so, you could require the player to type whoisyourdaddy. if the player is on single player, then it will not return anything and you can end the game or something or do something too funny like making his hero explode every 2 seconds and revive

Edit: i am so pro, the first one to come up with the solution that covers ALL cheats;RAWR i feel SPECIAL
 

WolfieeifloW

WEHZ Helper
Reaction score
372
I didn't understand a single thing you just said.
Nor, from what I actually did comprehend, would any of that work...
 

Never_Quit

New Member
Reaction score
16
okay, so after endlessly posting useless information, i finally came up with a legitamate solution

it's not professional, but check to see if there is only 1 player. if so, you could require the player to type whoisyourdaddy. if the player is on single player, then it will not return anything and you can end the game or something or do something too funny like making his hero explode every 2 seconds and revive

Edit: i am so pro, the first one to come up with the solution that covers ALL cheats;RAWR i feel SPECIAL

Bravo!
...lol
 

crabbb622

New Member
Reaction score
9
@WolfieNoCT
okay, its like this:
typing in cheats doesn't return anything, right?
so you could like force the player to type in a cheat into chat. if the player is on single player, then he can't type it!
 

crabbb622

New Member
Reaction score
9
Have you tested that?

And wouldn't the player just not type the message in :p ?
well, according to eveyrone else, that's what would happen...

and no, you have a time limit to type it in. for example, if the game does not register that you typed whosyourdaddy within 20 seconds, then you do funny things to the player. or you could just not start the game until the person typed it
 

crabbb622

New Member
Reaction score
9
lol i wonder if the guy who originally posted this thread still wants the answer

Edit: and thank you for the kodo beasts. anyone else wanna congratulate me?
 

WolfieeifloW

WEHZ Helper
Reaction score
372
If you don't want the game to be played solo, you could also just do:
Trigger:
  • Untitled Trigger 001
    • Events
    • Conditions
    • Actions
      • Set playingNumber = (All players matching ((((Matching player) controller) Equal to (==) User) and (((Matching player) slot status) Equal to (==) Is playing)))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Number of players in playingNumber) Equal to (==) 1
        • Then - Actions
          • For each (Integer A) from 1 to 16, do (Actions)
            • Loop - Actions
              • Game - Defeat (Player((Integer A))) with the message: Defeat!
        • Else - Actions
 

WolfieeifloW

WEHZ Helper
Reaction score
372
That's sort of cheat prevention :p .
Either way, I still say:
Again;
If people want to cheat to feel superior, I say let them.
Cheating ruins the gaming experience.
Even if you do win/are better then everyone else;
Who cares?
You cheated to get there, congratulations.
 

crabbb622

New Member
Reaction score
9
who, me?

Edit: eh, i'll post it anyways. freehand, though

Trigger 1
Events--initialization
Conditions--1 player in the map only
Actions--Display text to all players: type whosyourdaddy to begin the game

Trigger 2
Events--player enters string whosyourdaddy into chat
Actions--start game?

the reason the person can't cheat is because they can't type whosyourdaddy into chat on single player
if you don't know where all these commands are, ask someone else
 

Cloak_Master

Active Member
Reaction score
41
If you don't want the game to be played solo, you could also just do:
Trigger:
  • Untitled Trigger 001
    • Events
    • Conditions
    • Actions
      • Set playingNumber = (All players matching ((((Matching player) controller) Equal to (==) User) and (((Matching player) slot status) Equal to (==) Is playing)))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Number of players in playingNumber) Equal to (==) 1
        • Then - Actions
          • For each (Integer A) from 1 to 16, do (Actions)
            • Loop - Actions
              • Game - Defeat (Player((Integer A))) with the message: Defeat!
        • Else - Actions

Lol...

(Number of players in (All players matching (((Matching player) controller) Equal to User))) Equal to 1

Crabb what you're suggesting is extremely, extremely stupid. You can detect if one player is playing, simple...
 

istar

New Member
Reaction score
31
so... your trigger just prevents people from playing in Single Player?
theres already a variable
to check for Single Player mode....
but the original intent of the thread starter i assume is allow single player and yet disable cheats
you cant always disable single player, like if your map is too big for multiplayer
 

crabbb622

New Member
Reaction score
9
yea. it's effective because it's been proven hard to use cheat codes on lan

Edit: but it allows the player to play by himself
 

Never_Quit

New Member
Reaction score
16
lol you should say in game text

type allyourbasearebelongtous

or someonesetusupthebomb

to start the game :D
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Your trigger wouldn't work crabbb.
The trigger doesn't detect the chat message "whosyourdaddy".

@Cloak_Master: Your suggestion is just as bad IMO.
What if the player gets 500 gold legitly?
Don't bash other people when you aren't that good either.
Thanks.
 

istar

New Member
Reaction score
31
the game cant detect 'whosyourdaddy' so you wouldnt ever start game?
and that 2 triggers is troublesome when you can just use a single boolean
 
Status
Not open for further replies.
General chit-chat
Help Users
  • No one is chatting at the moment.
  • WildTurkey WildTurkey:
    is there a stephen green in the house?
    +1
  • The Helper The Helper:
    What is up WildTurkey?
  • The Helper The Helper:
    Looks like Google fixed whatever mistake that made the recipes on the site go crazy and we are no longer trending towards a recipe site lol - I don't care though because it motivated me to spend alot of time on the site improving it and at least now the content people are looking at is not stupid and embarrassing like it was when I first got back into this like 5 years ago.
  • The Helper The Helper:
    Plus - I have a pretty bad ass recipe collection now! That section of the site is 10 thousand times better than it was before
  • The Helper The Helper:
    We now have a web designer at my job. A legit talented professional! I am going to get him to redesign the site theme. It is time.
  • Varine Varine:
    I got one more day of community service and then I'm free from this nonsense! I polished a cop car today for a funeral or something I guess
  • Varine Varine:
    They also were digging threw old shit at the sheriff's office and I tried to get them to give me the old electronic stuff, but they said no. They can't give it to people because they might use it to impersonate a cop or break into their network or some shit? idk but it was a shame to see them take a whole bunch of radios and shit to get shredded and landfilled
  • The Helper The Helper:
    whatever at least you are free
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top