Rg
Apr 30 2007, 03:51
I am working on a kind of "system" for open and close quarter combat. I won't go into details now (because it's a personal tweak, but maybe others will like it if at some point I can make it in addon form), but I have one other thing to do. What I am hoping to be able to do is treat normal player zoom the same way optic zoom works.
What I mean by this is - Right now you can stay zoomed in or zoomed out after using the “+” and “-“ keys when in optic view (gun/scope/binocs), whereas, when you are not in optic view (normal player NOT looking down the sights/scope), once you let go of the zoom in key “+”, it automatically zooms back out. I am hoping there is someway to treat non-optic zoom the way optic zoom works. Maybe there is someway of tricking the game to do this?
Characters.pbo config - allows you to adjust non-optic FOV
Weapons.pbo config - allows you to adjust opticZoom
Bin.pbo config – I am not sure what happens when changes are made here. Similar adjustments can be made here, but they don’t seem to work.
I did a few tests by adding lines of code to the Characters.pbo config, under........
class CAManBase : Man {
class ViewPilot : ViewPilot {
(such as....)
optics = true
forceOptics = true
opticsZoomMin =x
opticsZoomMax =x
distanceZoomMin =x
distanceZoomMax =x
(but this did not work)
I also tried that in the Bin.pbo config under....
class ViewPilot {
(same outcome)
Any ideas of how to achieve what I am after? (stay zoomed in or out like you can in optic mode)
What I mean by this is - Right now you can stay zoomed in or zoomed out after using the “+” and “-“ keys when in optic view (gun/scope/binocs), whereas, when you are not in optic view (normal player NOT looking down the sights/scope), once you let go of the zoom in key “+”, it automatically zooms back out. I am hoping there is someway to treat non-optic zoom the way optic zoom works. Maybe there is someway of tricking the game to do this?
Characters.pbo config - allows you to adjust non-optic FOV
Weapons.pbo config - allows you to adjust opticZoom
Bin.pbo config – I am not sure what happens when changes are made here. Similar adjustments can be made here, but they don’t seem to work.
I did a few tests by adding lines of code to the Characters.pbo config, under........
class CAManBase : Man {
class ViewPilot : ViewPilot {
(such as....)
optics = true
forceOptics = true
opticsZoomMin =x
opticsZoomMax =x
distanceZoomMin =x
distanceZoomMax =x
(but this did not work)
I also tried that in the Bin.pbo config under....
class ViewPilot {
(same outcome)
Any ideas of how to achieve what I am after? (stay zoomed in or out like you can in optic mode)