• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[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
 
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.
 
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.
Back
Top