Hey, I made a little script to save your map from console cheaters. you can add your name to enable the cheats ONLY FOR YOU.
ok step 1: open YOURMAPNAME.gsc (root/raw/maps) or (root/mods/YOURMOD/maps)
and find
Code Snippet
Plaintext
maps\_zombiemode::main();
under this line add
Code Snippet
Plaintext
thread no_cheat();
now add this script add the bottom and enjoy you hack free map you can activate cheats if you change ITzXxInFInIX with your Ingame name (need clantag too)
I had seen a similar script before but this one is way better due to the ability to exclude yourself. Now I won't have to remove it if I want to test something. Nice work!
I had seen a similar script before but this one is way better due to the ability to exclude yourself. Now I won't have to remove it if I want to test something. Nice work!
that is the same what i thought AND the best is you can leave the start score at 500 points and don't need to change all the time
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
Has the ability to mute, kick, or ban chat members for being abusive or breaking the rules of the forum.
Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
Has the ability to mute, kick, or ban chat members for being abusive or breaking the rules of the forum.
Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
yeah, why is there a loop - if this is host only, it'S not neede otherweise the index doesn't change.
As far as I know sv_cheats is always at 0, which means this isn't an anti-cheat. It's actually ( if the name is correct) a cheat enabler. Also the console dvar is gone ( no idea if this actually works ) but the title is now wrong.
yeah, why is there a loop - if this is host only, it'S not neede otherweise the index doesn't change.
As far as I know sv_cheats is always at 0, which means this isn't an anti-cheat. It's actually ( if the name is correct) a cheat enabler. Also the console dvar is gone ( no idea if this actually works ) but the title is now wrong.
I'll end my post as the OP
It still doesn't work . . .
Because sv_cheats is a global dvar and not a client dvar. In this case since it's global it has to be set as SetDvar which means all players will have access to it no matter what.
This should ensure that only the map/mod maker has the ability to use console commands(in SP). Still, unless the map maker includes the script in their FF and not their IWD its VERY easy to disable and get around(like all the other script based anti-cheats I've seen).
and instead of doing:
Code Snippet
Plaintext
flag_wait( "all_players_connected" );
You might just wanna add a wait(). As far as i know "all_players_connected" only effect COOP environment but i might be wrong about that. Still, using a wait to pause code execution for 1-2 seconds is much safer than a flag IMO.
Last Edit: June 23, 2014, 02:23:23 am by daedra descent
This should ensure that only the map/mod maker has the ability to use console commands(in SP). Still, unless the map maker includes the script in their FF and not their IWD its VERY easy to disable and get around(like all the other script based anti-cheats I've seen).
and instead of doing:
Code Snippet
Plaintext
flag_wait( "all_players_connected" );
You might just wanna add a wait(). As far as i know "all_players_connected" only effect COOP environment but i might be wrong about that. Still, using a wait to pause code execution for 1-2 seconds is much safer than a flag IMO.
The "all_players_connected" flag does work in Solo. I would think it would be much better to use a flag than a wait as the wait will always be a value which won't be specific to the actual time it takes to start the gamestate. If you really have a problem with using flags just remove it and call the script after the gamestate line which will start the script at the beginning of the game.