project reality header
Go Back   Project Reality Forums > Off-Topic Forums > Off-Topic Discussion
22 Nov 2019, 00:00:00 (PRT)
Register Developer Blogs Project Reality Members List Search Today's Posts Mark Forums Read
Off-Topic Discussion For all discussions not related to PR. No Spam.

Reply
 
Thread Tools Display Modes
Old 2019-08-27, 14:09   #1
PanPilot
Post BF2 modyfing player controls

I am pretty much new to modding, I know how to create custom models, maps, vehicles etc. But I have no idea if scripting is possible in BF2.
Currently I am trying to achieve 2 changes in player controls, I want to have a modern BF style "Hold RMB too zoom on gun" and possibility to run(Shift+A, Shifr+D) diagonally.

Is there already such mod, or how is it possible to achieve such thing in BF2? I could possibly write some kind of program which will capture input itself and then pass it to the game but I hope there is a simpler way.
PanPilot is offline Reply With Quote
Old 2019-08-27, 17:43   #2
[R-DEV]​Rhino
PR:BF2 Developer
Supporting Member

Rhino's Avatar
Default Re: BF2 modyfing player controls

https://www.autohotkey.com/

Rhino is offline Reply With Quote
Old 2019-08-27, 19:42   #3
[R-DEV]​AlonTavor
PR:BF2 Developer
PR Server License Administrator
Default Re: BF2 modyfing player controls

autohotkey for "hold RMB" is a terrible idea in this engine.

-There are no settings for this in the engine. There are no animation system for sprinting diagonally as well.
-"Hold to zoom" can't work due to how this engine handles gun zoom. Its a very outdated solution. You're gonna need a lot of assembly to make that work.
AlonTavor is offline Reply With Quote
Old 2019-08-27, 22:28   #4
[R-DEV]​Rhino
PR:BF2 Developer
Supporting Member

Rhino's Avatar
Default Re: BF2 modyfing player controls

Quote:
Originally Posted by AlonTavor View Post
autohotkey for "hold RMB" is a terrible idea in this engine.
I'm not a coder but I would have thought you could do it with something like:
Code:
If RMB down
Send RMB down, RMB up

If RMB Up
Send RMB down, RMB up
Or something along those lines, you may have to change the actual scope down key to be something other than RMB so it doesn't confuse the hell out of itself, and then you would change the "If RMB, Send XXX" but you get the idea. But ye w/e the case, I doubt you can get a very good system without a hell of a lot of recoding work.

Rhino is offline Reply With Quote
Old 2019-08-27, 23:27   #5
[R-DEV]​AlonTavor
PR:BF2 Developer
PR Server License Administrator
Default Re: BF2 modyfing player controls

There's delay between you can unzoom after you zoom. A large delay. Its going to "desync" real fast.
AlonTavor is offline Reply With Quote
Old 2019-08-30, 15:25   #6
PanPilot
Default Re: BF2 modyfing player controls

Alright guys, thank you for replies!
PanPilot is offline Reply With Quote
Reply


Tags
bf2, controls, modding, player
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 19:56.