锁定瞄准的敌人

锁定瞄准的敌人

这个模组可以让相机在战斗中聚焦于选中的敌人。

Gameplay

此模组让战斗中的摄像机聚焦于锁定目标上(这为什么默认不是可选项???)

[警告]
这个模组可能有点小问题,尤其是当你被敌人包围时(不会导致游戏崩溃,敌人死后视角会自动重置)。
我主要在单人 Boss 战中使用它,用来记录攻击模式(虽然不如预期那么实用,但还是很酷)。

[安装]
进入《巫师2》安装文件夹([i]默认路径:C:\Program Files (x86)\Steam\steamapps\common\the witcher 2[/i])

打开 "CookedPC" 文件夹,用新的 "base_scripts.dzip" 文件替换旧文件([i]请备份原文件![/i])

[MERGING MODS]
对于那些想要将此模组添加到替换 base_scripts 的其他模组中的人,请随时向我询问或自行尝试(如果你知道如何编辑 dzip 文件):
(在 [i]游戏\玩家\状态\战斗.ws[/i] 文件,第1039行)替换:

[code]
if ( target )
{
thePlayer.SetIsEnemyLocked( true );
theHud.HudTargetActorEx( target_lock );
thePlayer.SetLastLockedTarget(target);
}
else
{
thePlayer.SetIsEnemyLocked( false );
theHud.HudTargetActorEx( GetEnemy() );
player.SetLastLockedTarget(NULL);
}
与:

[code]
if ( target )
{
theCamera.FocusOn( target ); // 对目标敌人调用 FocusOn() 函数
thePlayer.SetIsEnemyLocked( true );
theHud.HudTargetActorEx( target_lock );
thePlayer.SetLastLockedTarget(target);
}
else
{
theCamera.FocusDeactivation(); // 如果目标为NULL,则调用FocusDeactivation()函数
thePlayer.SetIsEnemyLocked( false );
theHud.HudTargetActorEx( GetEnemy() );
player.SetLastLockedTarget(NULL);
}