• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Vote for the theme of Hive's HD Modeling Contest #7! Click here to vote! - Please only vote if you plan on participating❗️

[General] Prevent greedisgood & iseedeadpeople

Status
Not open for further replies.
Level 4
Joined
Dec 16, 2013
Messages
84
sry for my english

how to disable greedisgood and iseedeadpeople?
is there any trick to disable it or give the defeat message to the player

i can disable whosyourdaddy with my hidden unit attacking hostile, if the hostile died, the game is over.

but i can't figure it out for greedisgood and iseedeadpeople, help thanks

btw my map is single player
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
This disables visibility cheat. Replace the numbers with coordinater of a place you can not see in normal conditions.
  • HAXX
    • Events
      • Time - Every 1 seconds of game time
    • Conditions
    • Actions
      • Custom script: if IsVisibleToPlayer(-500, 1400, Player(0)) then
      • Game - Defeat Player 1 (Red) with the message: HAXX0R!
      • Custom script: endif
 
For greedisgood, you need to keep track of each player's "legal" gold in a variable. Every time a player's gold changes legally (bounty from a creep, sells an item, etc), you modify this variable by that amount. So any time that a player's gold is not the same as this variable, that gold was gained by cheating, but now you can just reset their gold to the proper amount, which you have saved.
 
Level 25
Joined
May 11, 2007
Messages
4,650
How do you keep track on bounties on creeps? They have a randomised value within a limit.

I'd say that your best bet would be "Please don't use cheats", however if a player wants to use cheats in a single player map, you should let them. It's their loss afterall.
 
Status
Not open for further replies.
Top