Page 1 of 1

Help With ScriptCB_SetJoySensitivity

Posted: Wed Jul 23, 2014 6:16 am
by AnthonyBF2
I have been using a Sixaxis ps3 controller to play swbf2 for a while now, but I wish it could be more sensitive, for the aiming controls. I have the control setup to match SWBF2 for PS2, anyway I have the aiming mapped to the right control stick.

I came across this code ScriptCB_SetJoySensitivity, how ever I do not know what to put inside the brackets ()

If this code is even used in the game, please instruct me to put what i need to get it correctly.

I first tried ScriptCB_SetJoySensitivity(20) -- the sensitives in the game option maxes at 10, was aiming to double it

how ever I got an error log(didn't save the log) but it came out to be something about nil value.
I tried ScriptCB_SetJoySensitivity(20,20) and got no errors but nothing changed during game play.

Re: Help With ScriptCB_SetJoySensitivity

Posted: Wed Jul 23, 2014 11:34 am
by Locutus
Look here:
C:\BF2_ModTools\data\Common\scripts\ifs_opt_pccontrols.lua
302: ScriptCB_SetJoySensitivity(joySens, 0)
303: ScriptCB_SetJoySensitivity(joySens, 1)
519: ScriptCB_SetJoySensitivity( newSetting, 0 )
520: ScriptCB_SetJoySensitivity( newSetting, 1 )
646: ScriptCB_SetJoySensitivity(joysense, 0)
647: ScriptCB_SetJoySensitivity(joysense, 1)