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

Members Online

»
0 Active | 87 Guests
Online:

LATEST FORUM THREADS

»
run artillery on maps
CoD+UO Map + Mod Releases
Call of DutyŽ: WWII
CoD WW2 General

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 2
Category: CoD2 Scripting
Scripting and coding with Call of Duty 2.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Next Page
subscribe
Author Topic: holding a key.
liltc64
General Member
Since: Feb 12, 2007
Posts: 906
Last: Oct 22, 2012
[view latest posts]
Level 7
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Wednesday, Oct. 27, 2010 02:41 pm
is it possible to check if someone is holding down a key such as W or S?
Share |
novemberdobby
General Member
Since: Sep 17, 2006
Posts: 1965
Last: Oct 13, 2013
[view latest posts]
Level 8
Category: CoD2 Scripting
Posted: Wednesday, Oct. 27, 2010 02:53 pm
Nope
Share |
IzNoGoD
General Member
Since: Nov 29, 2008
Posts: 694
Last: Nov 10, 2012
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Wednesday, Oct. 27, 2010 02:55 pm
It is.

A. by rebiding them to open a menu then make that menu move them forward (very laggy)
B. By holding a menu open the whole time that does movement for player
(also very laggy and players dont see the chat)

So, as it is possible, its not recommended.

You can check if player is moving though.
Share |
Leal
General Member
Since: Feb 5, 2010
Posts: 196
Last: Aug 17, 2013
[view latest posts]
Level 4
Category: CoD2 Scripting
Posted: Tuesday, Nov. 30, 2010 10:19 am
How would option A work? How do you rebind a key like this to a menu?
Share |
IzNoGoD
General Member
Since: Nov 29, 2008
Posts: 694
Last: Nov 10, 2012
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Tuesday, Nov. 30, 2010 11:58 am
First exec rebind command through menu, rebinding it to either do 2 functions, or to do only one function (openscriptmenu), then add a waittill(menuresponse), whcich closes the menu, and does the action
Share |
Leal
General Member
Since: Feb 5, 2010
Posts: 196
Last: Aug 17, 2013
[view latest posts]
Level 4
Category: CoD2 Scripting
Posted: Tuesday, Nov. 30, 2010 12:22 pm
Im lost, I did not understand well how is the way to do it.

"first exec rebind command through menu" where is to do that and how? Is there maybe an example at the game to take (quickmessages menu I guess) and which part of it?
Share |
clanhelio
General Member
Since: Aug 30, 2008
Posts: 223
Last: Mar 23, 2011
[view latest posts]
Level 4
Category: CoD2 Scripting
Posted: Tuesday, Nov. 30, 2010 01:39 pm
I wouldn't do that, some people use esdf instead of wasd
Share |
Leal
General Member
Since: Feb 5, 2010
Posts: 196
Last: Aug 17, 2013
[view latest posts]
Level 4
Category: CoD2 Scripting
Posted: Tuesday, Nov. 30, 2010 01:46 pm
What is the difference?
Share |
Xylozi
General Member
Since: Jul 12, 2008
Posts: 218
Last: Mar 1, 2012
[view latest posts]
Level 4
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Tuesday, Nov. 30, 2010 01:49 pm
If the mod re-binded the players keys, since it can't detect what is being used for what. So players who use a different key combination from WASD would have issues as it would re-bind the movement command to the wrong key.

Share |
Leal
General Member
Since: Feb 5, 2010
Posts: 196
Last: Aug 17, 2013
[view latest posts]
Level 4
Category: CoD2 Scripting
Posted: Tuesday, Nov. 30, 2010 01:53 pm
But this would affect esdf and wasd or not?
Share |
Restricted Access Topic is Locked
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 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

»