Battlezone Universe

Battlezone Universe => Battlezone 2 => Maps and Modding => Topic started by: General BlackDragon on July 24, 2008, 04:15:55 AM

Title: Scriptor Help
Post by: General BlackDragon on July 24, 2008, 04:15:55 AM
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.
Title: Re: Scriptor Help
Post by: bigbadbogie on July 24, 2008, 04:22:25 AM
You cant do that in the scriptor.

You can make it do console commands but not read them. You will need c++ for that.
Title: Re: Scriptor Help
Post by: VSMIT on July 24, 2008, 04:29:32 AM
For some reason, I have the feeling that this thread is all my fault... :-P

VSMIT.
Title: Re: Scriptor Help
Post by: OvermindDL1 on July 24, 2008, 04:31:21 AM
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/)

Title: Re: Scriptor Help
Post by: Feared_1 on July 24, 2008, 06:56:21 AM
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...?
Title: Re: Scriptor Help
Post by: Nielk1 on July 24, 2008, 07:46:48 AM
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.
Title: Re: Scriptor Help
Post by: Steeveeo on July 24, 2008, 07:48:41 AM
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*
Title: Re: Scriptor Help
Post by: bigbadbogie on July 24, 2008, 08:07:16 AM
Lol. Now that I would pay to see!!
Title: Re: Scriptor Help
Post by: Warfreak on July 24, 2008, 03:06:18 PM
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
Title: Re: Scriptor Help
Post by: General BlackDragon on July 24, 2008, 03:20:34 PM
Actually, I would perfer a gameprefs switch to turn cheats off.
Title: Re: Scriptor Help
Post by: 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:
Title: Re: Scriptor Help
Post by: OvermindDL1 on July 24, 2008, 11:49:11 PM
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/)

Title: Re: Scriptor Help
Post by: Avatar on July 25, 2008, 12:09:56 AM
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-
Title: Re: Scriptor Help
Post by: General BlackDragon on July 25, 2008, 12:16:25 AM
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

Title: Re: Scriptor Help
Post by: Dark Scion Soldier on July 26, 2008, 09:28:19 PM
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  :?
Title: Re: Scriptor Help
Post by: Warfreak on July 26, 2008, 09:31:17 PM
Its not truely stealth... jsut sets you (the player) to team 0.
Title: Re: Scriptor Help
Post by: Steeveeo on July 26, 2008, 09:31:50 PM
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.
Title: Re: Scriptor Help
Post by: Dark Scion Soldier on July 26, 2008, 09:33:24 PM
hmmm might have try that out.... :-D