About this mod
This mod makes the camera focus on targeted enemies in combat.
- Permissions and credits
[WARNING]
This mod can be a little buggy, particularly if you are surrounded with enemies (nothing game-breaking, and the camera resets once the enemy dies).
I mainly use it in 1-on-1 boss fights, to keep track of attack patterns (not as useful as I'd hoped but still pretty cool)
[INSTALLATION]
Go to The Witcher 2 installation folder (default : C:\Program Files (x86)\Steam\steamapps\common\the witcher 2)
>>open "CookedPC" folder and replace "base_scripts.dzip" with the new one (back up original !)
[MERGING MODS]
For those who want to add this mod to other ones that replace base_scripts, feel free to ask me or try it yourself (if you know how to edit dzip files):
(In game\player\states\combat.ws,line 1039) Replace :
if ( target )
{
thePlayer.SetIsEnemyLocked( true );
theHud.HudTargetActorEx( target_lock );
thePlayer.SetLastLockedTarget(target);
}
else
{
thePlayer.SetIsEnemyLocked( false );
theHud.HudTargetActorEx( GetEnemy() );
thePlayer.SetLastLockedTarget(NULL);
}
With :
if ( target )
{
theCamera.FocusOn( target );// Calls FocusOn() function on targeted enemy
thePlayer.SetIsEnemyLocked( true );
theHud.HudTargetActorEx( target_lock );
thePlayer.SetLastLockedTarget(target);
}
else
{
theCamera.FocusDeactivation(); // Calls FocusDeactivation() function if target is NULL
thePlayer.SetIsEnemyLocked( false );
theHud.HudTargetActorEx( GetEnemy() );
thePlayer.SetLastLockedTarget(NULL);
}