• Welcome to Battlezone Universe.
 

News:

Welcome to the BZU Archive dated December 24, 2009. Topics and posts are in read-only mode. Those with accounts will be able to login and browse anything the account had access granted to at the time. No changes to permissions will be made to be given access to particular content. If you have any questions, please reach out to squirrelof09/Rapazzini.

Main Menu

Scriptor Help

Started by General BlackDragon, July 23, 2008, 10:15:55 PM

Previous topic - Next topic

General BlackDragon

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.



*****General BlackDragon*****

bigbadbogie

You cant do that in the scriptor.

You can make it do console commands but not read them. You will need c++ for that.
Others would merely say it was good humour.


My BZ2 mods:

QF2: Essence to a Thief - Development is underway.

Fleshstorm 2: The Harvest - Released on the 6th of November 2009. Got to www.bz2md.com for details.

QF Mod - My first mod, finished over a year ago. It can be found on BZ2MD.com

VSMIT

For some reason, I have the feeling that this thread is all my fault... :-P

VSMIT.
I find that if I don't have a signature, some people disregard the last couple of lines of a long post.
Quote from: Lizard
IQ's have really dropped around here just recently, must be something in the water.

OvermindDL1

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.

Generated by OvermindDL1's Signature Auto-Add Script via GreaseMonkey


Feared_1

Quote from: General BlackDragon on July 23, 2008, 10:15:55 PM
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...?

Nielk1

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.

Click on the image...

Steeveeo

Quote from: Feared_1 on July 24, 2008, 12: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*

(Click it for more art, y'know you wanna!)

Gone to college, but I now have internet.

bigbadbogie

Lol. Now that I would pay to see!!
Others would merely say it was good humour.


My BZ2 mods:

QF2: Essence to a Thief - Development is underway.

Fleshstorm 2: The Harvest - Released on the 6th of November 2009. Got to www.bz2md.com for details.

QF Mod - My first mod, finished over a year ago. It can be found on BZ2MD.com

Warfreak

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

General BlackDragon

Actually, I would perfer a gameprefs switch to turn cheats off.



*****General BlackDragon*****

Steeveeo

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:

(Click it for more art, y'know you wanna!)

Gone to college, but I now have internet.

OvermindDL1

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...

Generated by OvermindDL1's Signature Auto-Add Script via GreaseMonkey


Avatar

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-

General BlackDragon

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




*****General BlackDragon*****

Dark Scion Soldier

Quote from: Steeveeo on July 24, 2008, 10:39:05 AM
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  :?
Aquatic: *on hold* 52% done overall.