Help With ScriptCB_SetJoySensitivity

Talk and share anything related to Star Wars Battlefront 2. No maps or mod announcements here. Use Work in Progress forum.

Moderator: Moderators

Post Reply
User avatar
AnthonyBF2
Sith
Sith
Posts: 1255
Joined: Wed Aug 21, 2013 3:55 pm
Projects :: PS2+PSP Overhaul

Help With ScriptCB_SetJoySensitivity

Post 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.
User avatar
Locutus
1st Lieutenant
1st Lieutenant
Posts: 420
Joined: Fri Jun 04, 2010 10:08 am
Projects :: Stargate Battlefront Pegasus
Location: Germany
Contact:

Re: Help With ScriptCB_SetJoySensitivity

Post 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)
Post Reply