暂停时移动镜头
mirv_input camera
默认使用 W/A/S/D 水平移动、R/F 上下移动,鼠标控制朝向。结束时按 Esc 或执行:
mirv_input end
灵敏度可从 mirv_input cfg 查看并调整。相机模式会覆盖当前 mirv_campath,设置关键帧后记得退出。
创建镜头路径
在不同时间和机位添加关键帧:
mirv_campath add
mirv_campath print
mirv_campath draw enabled 1
mirv_campath enabled 1
常规平滑插值建议至少使用 4 个关键帧。添加完成后回到第一个关键帧之前播放,路径会在对应时间开始。两个关键帧的路径应改为线性插值:
mirv_campath edit interp position linear
mirv_campath edit interp rotation sLinear
mirv_campath edit interp fov linear
编辑与保存
mirv_campath remove <id>
mirv_campath clear
mirv_campath edit start
mirv_campath edit duration <seconds>
mirv_campath save "D:\HLAE\paths\shot.xml"
mirv_campath load "D:\HLAE\paths\shot.xml"
edit start 把整条路径平移到当前时间;edit duration 改变总时长。加载后重新执行 mirv_campath enabled 1。
若路径急转、穿墙或抖动,增加关键帧时间间隔,删除过密的点,避免突然反向;最后才考虑线性插值。CS2 绘制路径需要 DirectX 11 和 Shader Model 5.0 或更新版本。