Author |
Topic: [Release] Method to Monitor Any Custom Key |
DemonSeed |
General Member Since: Apr 30, 2009 Posts: 1362 Last: Feb 19, 2018 [view latest posts] |
|
|
|
Category: CoDWW Scripting Posted: Friday, Oct. 9, 2009 09:09 pm |
|
I recently discovered a method to monitor any custom key on the keyboard. Now, we are no longer limited to just the stock buttons monitored (usebuttonpressed(), meleebuttonpressed(), etc, etc), we can now pick any key on the keyboard, and use it to execute all sorts of functions.
The implications of this for modders is staggering in my opinion as modders have been searching for such a method for years. I have lost count of the number of times during my modding life for COD2 and COD4 when I could have done with the use of such a function.
Here are some of the custom functions I have created with this method:
PButtonPressed() = monitors the "P" button
OButtonPressed() = monitors the "O" button
IButtonPressed() = monitors the "I" button
I am not including any downloads, as there isnt really anything to download (its all done via script), and also not everyone will want to know about it (i.e. its not zombies), but if you are, contact me via PM or email and I'll happily share the method with you.
I'll point out that this method will work with any COD title - it is not something in the COD4 engine. It will even work with COD2. |
|
|
|
|
|
eganwotv |
|
Deactivated Account Since: May 28, 2007 Posts: 961 Last: Oct 31, 2010 [view latest posts] |
|
|
|
|
DemonSeed |
General Member Since: Apr 30, 2009 Posts: 1362 Last: Feb 19, 2018 [view latest posts] |
|
|
|
Category: CoDWW Scripting Posted: Friday, Oct. 9, 2009 10:20 pm |
|
vT-Ownage writes...Quote: I can already see this being abused in the form of hacks. It would be wise to only give it to ones that can be trusted. Just my two cents.
you couldnt abuse this, as a client has no way of setting what the button functions. For example, a hacker cant just decide to use a key to monitor his hack files, as the mod wouldnt recognise what those hack files are. |
|
|
|
DemonSeed |
General Member Since: Apr 30, 2009 Posts: 1362 Last: Feb 19, 2018 [view latest posts] |
|
|
|
Category: CoDWW Scripting Posted: Friday, Oct. 9, 2009 10:23 pm |
|
codmp writes...Quote: Why not just post the script on here?
Because its requires prior understanding of a few modding "conventions", and if I post up the method for all and sundry, I open myself up to endless questions about learning those prior conventions.
I will answer by PM/email only, so that I know if someone has the modding skills to use this effectively. |
|
|
|
eganwotv |
|
Deactivated Account Since: May 28, 2007 Posts: 961 Last: Oct 31, 2010 [view latest posts] |
|
|
|
Category: CoDWW Scripting Posted: Friday, Oct. 9, 2009 10:50 pm |
|
DemonSeed writes...Quote: vT-Ownage writes...Quote: I can already see this being abused in the form of hacks. It would be wise to only give it to ones that can be trusted. Just my two cents.
you couldnt abuse this, as a client has no way of setting what the button functions. For example, a hacker cant just decide to use a key to monitor his hack files, as the mod wouldnt recognise what those hack files are.
Are you sure, you know what they say, anything and everything is possible. |
|
|
|
DemonSeed |
General Member Since: Apr 30, 2009 Posts: 1362 Last: Feb 19, 2018 [view latest posts] |
|
|
|
|
eganwotv |
|
Deactivated Account Since: May 28, 2007 Posts: 961 Last: Oct 31, 2010 [view latest posts] |
|
|
|
|
techno2sl |
|
General Member Since: Aug 5, 2004 Posts: 2977 Last: Oct 14, 2010 [view latest posts] |
|
|
|
DemonSeed |
General Member Since: Apr 30, 2009 Posts: 1362 Last: Feb 19, 2018 [view latest posts] |
|
|
|
Category: CoDWW Scripting Posted: Saturday, Oct. 10, 2009 12:43 pm |
|
techno2sl writes...Quote: Sounds good to me, is this strictly Multiplayer though or Singleplayer as well... and can you think of any direct uses for it in MP and SP?
I doubt it will work for SP as it uses dummy menus to set client commands on the player, and its the monitoring of these that controls the method.
As for uses of this, I deveopled it in order to open menus by pressing a key. I wanted something like the quickmessages menu, where a menu is open via a key stroke, without having to use the quickmessages menu itself.
These menus are dynamic attachments, and dynamic perks menus. These are now controlled indenpendently of the quickmessage menu in my mod, and work much better and quicker.
But you are essentially limited only by your imagination. Another use of this method in my mod is to detach any attachment already made to a weapon at the touch of a key.
I have today learnt from someone who was good enough to give me the heads up that the Openwarfare team have a very similar method already in place and working. So, kudos to them for being the first. I did, however, come up with this independently of them, and the method is slightly different. A classic case of great minds thinking alike. |
|
|
|