More specifically, if one wants to make a safe cheat code system in his map, he can compute some hash function with the given player input and execute the cheat when that function computes a predefined number. The idea is quite widespread (don't know why I haven't encountered the idea applied to SC yet) to make the hash function hard to compute in the reverse direction, in other words hard to select the input which gives the appropriate number.
However the workaround might be only to look the replay where player inputs the code. Using EUD keypress detection I believe one can eliminate this drawback as much as limit himself only to display-kind actions, which is boring. (However EUD unit selections detection might fix the problem to some point, they are stored in replays but at least they are not as easy to get from there.)
Edit: Also one couldn't specify the cheat code in his map in any way and hence to reveal it to players in game.
Post has been edited 2 time(s), last time on Nov 23 2009, 8:47 pm by Wormer.
Some.