Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 81 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty: World at War
Category: CoDWW Scripting
Scripting and coding with Call of Duty: World at War.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Next Page
subscribe
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]
Level 8
Im a fan of MODSonair
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.
Share |
codmp
General Member
Since: Feb 7, 2006
Posts: 905
Last: Aug 1, 2011
[view latest posts]
Level 7
Category: CoDWW Scripting
Posted: Friday, Oct. 9, 2009 10:09 pm
Why not just post the script on here?
Share |
eganwotv
Deactivated Account
Since: May 28, 2007
Posts: 961
Last: Oct 31, 2010
[view latest posts]
Level 7
Im a fan of MODSonair
Category: CoDWW Scripting
Posted: Friday, Oct. 9, 2009 10:17 pm
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.
Share |
DemonSeed
General Member
Since: Apr 30, 2009
Posts: 1362
Last: Feb 19, 2018
[view latest posts]
Level 8
Im a fan of MODSonair
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.
Share |
DemonSeed
General Member
Since: Apr 30, 2009
Posts: 1362
Last: Feb 19, 2018
[view latest posts]
Level 8
Im a fan of MODSonair
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.
Share |
eganwotv
Deactivated Account
Since: May 28, 2007
Posts: 961
Last: Oct 31, 2010
[view latest posts]
Level 7
Im a fan of MODSonair
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.
Share |
DemonSeed
General Member
Since: Apr 30, 2009
Posts: 1362
Last: Feb 19, 2018
[view latest posts]
Level 8
Im a fan of MODSonair
Category: CoDWW Scripting
Posted: Friday, Oct. 9, 2009 11:04 pm
Am I sure? Yes. The game already has stock keys which are monitored by the game:

usebuttonpressed()
attackbuttonpressed()
meleebuttonpressed()
SecondaryOffhandButtonPressed()
FragButtonPressed()

Why are these keys not exploited by hackers? Because it takes a script to decide "what" they do when actioned. And a hacker cannot hack into a mod script and redefine the action to take when these keys are pressed.

Mine work in an identical way.

In other words, this is the difference between server-side script not being exploitable to a hacker (mine), and a client-side script which they can exploit (other).
Share |
eganwotv
Deactivated Account
Since: May 28, 2007
Posts: 961
Last: Oct 31, 2010
[view latest posts]
Level 7
Im a fan of MODSonair
Category: CoDWW Scripting
Posted: Friday, Oct. 9, 2009 11:08 pm
Ok, if you must say, I just thought I would let ya know.
Share |
techno2sl
General Member
Since: Aug 5, 2004
Posts: 2977
Last: Oct 14, 2010
[view latest posts]
Level 9
Category: CoDWW Scripting
Posted: Saturday, Oct. 10, 2009 11:19 am
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?
Share |
DemonSeed
General Member
Since: Apr 30, 2009
Posts: 1362
Last: Feb 19, 2018
[view latest posts]
Level 8
Im a fan of MODSonair
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.
Share |
Restricted Access Topic is Locked
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty: World at War : CoDWW Scripting

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»