Oblivion

File information

Last updated

Original upload

Created by

kuertee

Uploaded by

kuertee

Virus scan

Safe to use

Tags for this mod

About this mod

Learns your point-of-view preferences in these situations: combat, running, sneaking, swimming, in doors/dungeons, in cities, in the wild and switches the camera to those preferences.

Permissions and credits
Name: Auto 1st-3rd person view
Version: 0.986
Date: 28 September 2011
Category: Miscellaneous
Requirements:
Oblivion Patch 1.2.0.214,
Oblivion Script Extender (OBSE): http://obse.silverlock.org/
Author(s): kuertee
Source: http://www.tesnexus.com/downloads/file.php?id=21834

Changes since last update (0.985)
=================================
0.986, 28 September 2011:
Bug-fix: Some "canned" animations that requires 3rd-person view (e.g. sitting on a chair, getting on a horse, feeding when a vampire, etc.) is interrupted by the mod in the previous version. This was a previous bug that was previously fixed.
I.e. the player models doesn't actually sit on the chair.
Fixed in this version.
0.985, 24 September 2011:
New feature: By default, only when attacking with a ranged weapon will trigger the "okWithRanged" condition.
E.g. The player can now have the bow ready in third-person view and the mod will not switch to first-person view until the player starts to pull on the bow.
Casting and using a staff is treated the same way.
This can be turned off and the previous treatment returned by setting "rangedConditionOnlyWhileShooting" to "0" in the INI file.

Description
===========
Learns your point-of-view preferences in these situations:
melee weapon out, ranged weapon out, combat, running, sneaking, swimming, in doors/dungeons, in cities, in the wild
and switches the camera to those preferences.

Note that the mod will not change the point-of-view itself until it detects your preferences.
And when you set the point-of-view, it will persist until it detects a change to one of the conditions.

So switch point-of-views as normal, and it will start to do it for you very soon after.
And if you want a temporary change (e.g. in the wild, from 3rd to 1st to read a signpost), change it back because:
1. it won't change it back until a change to one of the conditions is detected
and
2. it can't know whether your change was temporary or not.
and that view will not be considered in determining your preference.

Details
=======
1. The script runs once every second.

2. You can change the camera freely between 1st-person and 3rd-person. So change the camera as you would normally.

3. In time, the mod will learn your preferences and will change the camera for you.

4. Only when the status of these situations changes, will the camera be changed automatically.
on horseback (isRidingHorse)
has melee weapon out (IsWeaponOut && GetWeaponAnimType 3)
has ranged weapon out (IsWeaponOut && GetWeaponAnimType == 3)
in combat (isInCombat),
running (isRunning),
sneaking (isSneaking),
swimming (isSwimming),
in doors or in dungeons (inInterior),
in the wild (GetWorldSpace Tamriel),
in cities

5. The list of conditions above is ordered in terms of priorities.
A condition will have priority over those after it.
E.g.: having a melee weapon out will set the view to your melee weapon preference regardless of whether you are runnning or not.

6. When the camera is changed automatically, you can still switch point-of-views freely.
Your switch will persist until one of the situations above changes.

7. The way it learns: for a particular condition, it tracks the amount of time you spend in 1st and 3rd person view.

8. The way it switches: when a condition changes (e.g. leaving a city or a building), it will set the camera to the view you've spent the most time using.

9. You can set which conditions you want to track for in the kuerteeAutoFirstThirdPersonView.ini file.
And, optionally, preferences can be forced by changing values in the same ini file.

OBMM Install
============
1. Click on "Create" to create a new OMOD.
2. Click on "Add archive" and point to the downloaded ZIP file.
3. Click on "Create omod".
4. Activate the newly created OMOD.

OBMM Uninstall
==============
1. Deactivate the OMOD.

Manual Install
==============
1. Extract the files to a temporary location.
2. Examine the folder structure and make corrections where necessary.
3. Copy files to (install folder)\Oblivion\Data\
4. Start Oblivion Launcher, click 'Data Files', place a checkmark beside the kuerteeAutoFirstThirdPersonView.esp file(s).

Manual Uninstall
================
1. Start Oblivion Launcher, click Data Files, uncheck the kuerteeAutoFirstThirdPersonView.esp file(s).
2. Delete the kuerteeAutoFirstThirdPersonView esp, ini and txt files.

Incompatibility
===============
Any mod that uses ToggleFirstPerson OBSE command.

I know of no other mod.

History
=======
0.984, 3 January 2011:
Bug-fix: Previously, the player's sit animation would be interrupted which prevented the player from sitting on chairs.
Fixed now.
0.983, 3 January 2010:
Bug-fix: Mounting a horse with a weapon out camera switch - hopefully.
New feature: Activatable object in range camera switch.
Tweak: Delay in switching camera.
Previously the delay simply stopped the execution of the script for that amount of time.
Now the script keeps tracking user preferences and scores during the delay time.
I.e. the camera can be changed to another before the switch occurs.
0.982, 11 August 2009:
Bug-fix: My fix for when dismounting broke the actual camera switching code.
This version fixes it.
0.981, 9 August 2009:
Bug-fix: The camera was previously switching incorrectly after dismounting from a horse.
0.98, 8 August 2009:
Bug-fix: The camera was previously switching incorrectly when moving between interior and exterior areas when another condition (e.g. melee weapon is out, is running, etc.) is active.
0.97, 22 May 2009 (unreleased):
Bug-fix: The mod was partially still working when in a situation that was disabled.
Tweak: The INI file is now in the Data\ini folder.
0.96, 11 March 2009:
tweak: Increased the occurence of the script, effectively decreasing the delay between camera updates.
tweak: During combat settings are now, by default, off. The melee and ranged weapon settings are better indicators of what the user prefers.
tweak: Running and swimming setings are also now, by default, off. Other conditions (like when the weapon is out, etc.) would take over those settings better.
0.95b, 16 February 2009:
bug-fix: tracking of having a ranged weapon out was using data from having a melee weapon out.

0.95, 15 February 2009:
bug-fix: user-triggered changes were never factored in the scoring.
The factor was reverted to 1 before tallying up the score at every loop.
So "learning" was only based on the number of seconds a particular view was active.
Fixed now.
tweak: Changed the score factor of user-triggered camera changes from 10 to 100.
This facilitates faster "learning" of your preferences.
So, if you switch to a view, it will be like having that view for 100 seconds.
bug-fix: The script was cancelled when the player is sitting.
So getting on and off the horse never worked.
bug-fix: switching camera between horse riding and not.
Moved the detection of being on horse as the highest priority - which it should have been.
tweak: changed the camera-switch delay after dismounting a horse from 3 to 1
bug-fix: detecting weapon switch between melee and ranged weapons
When switching weapons with the hotkey, there is a time in-between the switch when IsWeaponOut is 0.
This affected the detection of weapon changes especially when quickly moving between melee (3rd-person view) and ranged (1st-person view).
0.94, 31 January 2009:
Tweak: An additional check is added that prevents the script from running when moving between places.
The camera wouldn't switch in these times in previous versions anyway because the camera only switches in-game (i.e. GameMode).
This tweak just ensures that nothing is executed between the switch from MenuMode and GameMode is complete.
0.93, 2009 January 10:
Bug-fix: Action conditions (e.g. running, sneaking, swimming, horse-riding) will not override conditions for having a weapon out.
Added a note about forcing preferences in the INI file in the details section.
0.92, 2009 January 9 PM:
Bug-fix: The camera mode in locational preferences (e.g. inInteriors) were getting tracked even when the other conditions were in effect.
What this means: the number of times for a camera mode for being outdoors were getting affected those when having your weapon out.
The end result was: when putting back your weapon, it may not return the camera to your preferred setting for the outdoors -
because the data for the outdoors were affected by the data for having your weapon out.
0.91, 2009 January 8:
Added melee and ranged weapon camera preferences.
Added on horseback camera preference.
0.9, 2009 January 7: Initial release.

Contact
=======
kuertee in the Bethesda forums: http://www.bethsoft.com/bgsforums/

Credits
=======
kuertee

Tools Used
==========
Oblivion Mod Manager - http://www.tesnexus.com/downloads/file.php?id=2097
Oblivion Script Extender (OBSE) - http://obse.silverlock.org/
TES Construction Set - http://www.tesnexus.com/downloads/file.php?id=11367
Readme Generator - http://lhammonds.game-host.org/obmm/tools_readme_generator1.asp

Licensing/Legal
===============
You can do whatever you want with this mod but all I ask in return is that
you give me credit if you distribute any part of this mod. I would also like
to know what mods are including my work.