Disable cheats?

m00b

Newbie
Joined
Nov 24, 2004
Messages
222
Reaction score
0
How do I disable cheats for my HL2 SP maps? When I say disable I mean disable even "sv_cheats 1" in the console.
 
You can't. Any way of disable cheats on a SP map consist of continously setting sv_cheats to 0, and that doesn't help if the game is paused like it is when people enter cheats.
 
Any way of disable cheats on a SP map consist of continously setting sv_cheats to 0


That's the ticket. Make one point_servercommand and name it.

Create a trigger_multiple that covers all open space in your map and set that to use a delay of, say 1 second, between each fire. Then set that trigger up so that it has the following output.

OnTrigger - name_of_servercommand - Command - sv_cheats 0 - 0

This should cause the servercommand to set cheats to 0 every second. So even if player enables them, they will be disabled in 1 sec.

When doing this then for gods sake do NOT USE "" when typing the override (sv_cheats 0) because if you do so and then save yor map, then the next time you open this map Hammer will crash for no apparent reason. Any quotation marks ANYWHERE in a vmf will crash hammer. Silly but true. And the fix for that error is to find the offending quotation mark with notepad. Not a fun thing to do, take it from me.
 
Back
Top