lfnetwork.com mark read register faq members calendar

Thread: Another code question
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 11-13-2006, 09:30 PM   #1
jedispy
 
jedispy's Avatar
 
Join Date: Jan 2003
Location: Left side of the coin
Posts: 828
Current Game: Metroid Prime 2
Another code question

I was wondering if there is a way to use code to dynamically change game settings when needed. By this I specifically mean adjust mouse sensitivity & sound/music volume.

The mouse sensitivity thing is mostly needed for better vehicle support. I noticed (as i'm sure we all have) how crappy the contols are when your player enters a vehicle. I always have to bump up my mouse sensitivity just to be able to turn properly with vehicles. So here is basically what would be needed
  • mouse_sens_old = X (x being the current setting for mouse sensitivity)
    when playermodel = vehicle_name then mouse_sens_new = Y. (Y is the value for higher mouse sensitivity)
It would be something like that. I know it's not perfect as is, but it should give you the general idea of what I'm looking for.


Jedispy - SOTE Mod Administrator, server/technical administrator, mod author, forum admin/moderator, web administrator, programmer.
Click to read the latest SOTE MOD news
jedispy is offline   you may: quote & reply,
Old 11-13-2006, 10:32 PM   #2
Tinny
 
Tinny's Avatar
 
Join Date: Apr 2002
Posts: 1,188
Its easier to edit the external veh files no?


Redeemed!

An old school mod for jedi academy.
Tinny is offline   you may: quote & reply,
Old 11-13-2006, 10:35 PM   #3
jedispy
 
jedispy's Avatar
 
Join Date: Jan 2003
Location: Left side of the coin
Posts: 828
Current Game: Metroid Prime 2
It's how the control is handled that I'm interested in. I want the turns to be doable if the player is using a mouse. Right now if you try to turn, and don't adjust your sensitivity, you have to move your mouse across the pad several times in order to make the turn. Anyone get what I'm saying?

Quote:
Its easier to edit the external veh files
Is there a parameter to set in the .veh file that will have better mouse handling? I can't think of what it would be.


Jedispy - SOTE Mod Administrator, server/technical administrator, mod author, forum admin/moderator, web administrator, programmer.
Click to read the latest SOTE MOD news
jedispy is offline   you may: quote & reply,
Old 11-14-2006, 01:42 AM   #4
Tinny
 
Tinny's Avatar
 
Join Date: Apr 2002
Posts: 1,188
I thought it was yawspeed, I could be wrong though.


Redeemed!

An old school mod for jedi academy.
Tinny is offline   you may: quote & reply,
Old 11-14-2006, 02:52 AM   #5
razorace
Impressive, Terran!
 
razorace's Avatar
 
Join Date: May 2002
Posts: 9,171
Tinny, I think that's the speed at which the vehicle turns to match your camera direction, and not the movement speed of the camera panning.

Jedispy, it might be possible to make a user controlled cvar that scalars the speed at which the camera rotates while in vehicles. However, I can see it being moderately difficult to do.


---Jedi Guardian of the Newbie Questions
---Masters of the Force Team Leader / Creator
---Open Jedi Project Lead Moderator / Co-Founder
razorace is offline   you may: quote & reply,
Old 11-14-2006, 04:51 AM   #6
stubert
 
Join Date: Aug 2002
Location: Philadelphia
Posts: 227
it's like cg_thirdpersoncameradamping

i can't believe i remembered that...
stubert is offline   you may: quote & reply,
Old 11-14-2006, 06:22 AM   #7
-=*Raz0r*=-
Rookie
 
-=*Raz0r*=-'s Avatar
 
Join Date: Oct 2006
Location: Australia
Posts: 243
A simple toggle bind or config could fix your problem you know...
-=*Raz0r*=- is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > JediKnight Series > Editing Central > JA Coding > Another code question

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 Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:46 PM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.