whoot been a while since I asked for help.
This is directed at...BS's Scriptor usage in single player.
I need a way for the scriptor to lock onto the following event:
Player opens console and types "game.cheat bzradar"
so I can promptly endgame upon that command :D
Or use the move command on the player at the highest number the dll will export with, without crashing.
You cant do that in the scriptor.
You can make it do console commands but not read them. You will need c++ for that.
For some reason, I have the feeling that this thread is all my fault... :-P
VSMIT.
The dll does not have access to the console nor player input. About the only way I could see to detect that would be to make a C++ DLL or Python script, create a windows message (or low level keyboard) hook and watch for that stream of characters with proper resets and such in places. No chance of that in his scriptor.
(http://www.overminddl1.com/image_scripts/image_sig.php?type=ODL1signitures&image/sig.gif)
Generated by OvermindDL1's Signature Auto-Add Script (http://overminddl1.com) via GreaseMonkey (http://greasemonkey.mozdev.org/)
Quote from: General BlackDragon on July 24, 2008, 04:15:55 AM
Player opens console and types "game.cheat bzradar"
so I can promptly endgame upon that command :D
Now, why would you want to do something like that...?
BBB keeps talking about detecting console lines in the scriptor, but I don't see how. I can't even do that in C++, though I can enter my own console commands.
Quote from: Feared_1 on July 24, 2008, 06:56:21 AM
Now, why would you want to do something like that...?
Look at it this way:
*types in game.cheat bzradar to see how enemy base is progressing*
Chatbox Message: "You want to SEE the enemy? HERES THE ENEMY!"
*launches you against one wall in such a manner to ricochet you into the enemy base*
Lol. Now that I would pay to see!!
This is something we need to ask Ken about....cause something tells me GSH didnt program the way the cheats are called up......
We get the lines that check for the console command to execute the cheats, we can backfire them. simple :P
Actually, I would perfer a gameprefs switch to turn cheats off.
Heh, here's some simple cheat tackon ideas: (mess with the player :evil:)
- game.cheat bzbody, Gamma gets set to -12.
- game.cheat bztnt, forward and backward keys get reversed.
- game.cheat bzradar, player is set to team 0.
- game.cheat bzfree, AI scrap cheat goes to +12 (or max, whatever comes first).
- game.cheat bzstealth, game.gofast is enabled.
Hows that for some trickery? :evil:
As stated, just setup some kind of message hook and you can read the input as well, you will just have to guess when they are in the console and watch for specific things...
(http://www.overminddl1.com/image_scripts/image_sig.php?type=ODL1signitures&image/sig.gif)
Generated by OvermindDL1's Signature Auto-Add Script (http://overminddl1.com) via GreaseMonkey (http://greasemonkey.mozdev.org/)
So... there's no 'on' and 'off' for this, right? The cheats are a toggle... which is bad...
>>You can make it do console commands but not read them.
All that's needed then is a 'game.cheat.bzradar 0' or a definite OFF command, which you could just then issue every second or so if you wanted to suspend cheats...
-Av-
Nope...those commands arnt followed by a 0 or 1
and no . after cheat
it's "game.cheat bzbody" or space, bzradar, bztnt, bzview, bzfree
Quote from: Steeveeo on July 24, 2008, 04:39:05 PM
Heh, here's some simple cheat tackon ideas: (mess with the player :evil:)
- game.cheat bzbody, Gamma gets set to -12.
- game.cheat bztnt, forward and backward keys get reversed.
- game.cheat bzradar, player is set to team 0.
- game.cheat bzfree, AI scrap cheat goes to +12 (or max, whatever comes first).
- game.cheat bzstealth, game.gofast is enabled.
Hows that for some trickery? :evil:
bzstealth? haven't heard that one before :?
Its not truely stealth... jsut sets you (the player) to team 0.
Quote from: Dark Scion Soldier on July 26, 2008, 09:28:19 PM
bzstealth? haven't heard that one before :?
Puts you on team 0, basically makes it so the AI doesnt shoot you while you try to make sure that they are doing what they are supposed to, but also, in turn, you loose control on your units until you put game.cheat bzunstealth.
hmmm might have try that out.... :-D