海盗社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
查看: 18772|回复: 0

修改高空clu控件

[复制链接]

93

主题

97

帖子

406

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
406
发表于 2018-5-10 16:35:45 | 显示全部楼层 |阅读模式
我以110客户端来作比例(1.36、1.38、10110的可以参照.)
                                     (高手福利。菜鸟看不明白的,请不要照抄。)

<独立显卡最小没有512MB的朋友,最好不要调试(很高的高空)>


(如果你要修改,不可以复制以下代码。要根椐你原来的,进行修改以下数字就行了。)

1.打开客户端\\scripts\\lua........下CameraConf1024.clu

        正常下的设置高空clu
=================================
C_NORMAL    = 0  --正常模式   
C_NEAR      = 1  --偏近模式  距离比正常模式偏近
C_HIGHSPEED = 2  --高速模式  固定镜头, 不可旋转
C_SHIP      = 3  --海上模式  在船上, 距离很远

CLU_Call("CameraRangeXY", C_NORMAL, 38, 39.5)
CLU_Call("CameraRangeZ", C_NORMAL, 10.5, 36)
CLU_Call("CameraRangeFOV", C_NORMAL, 17, 20)
CLU_Call("CameraEnableRotate", C_NORMAL, 1)
CLU_Call("CameraShowSize1024", C_NORMAL, 63, 63)

CLU_Call("CameraRangeXY", C_NEAR, 28, 39.5)
CLU_Call("CameraRangeZ", C_NEAR, 10.5, 36)
CLU_Call("CameraRangeFOV", C_NEAR, 17, 20)
CLU_Call("CameraEnableRotate", C_NEAR, 0)
CLU_Call("CameraShowSize1024", C_NEAR, 51, 51)

CLU_Call("CameraRangeXY", C_HIGHSPEED, 40, 45)
CLU_Call("CameraRangeZ", C_HIGHSPEED, 25, 43)
CLU_Call("CameraRangeFOV", C_HIGHSPEED, 6, 26)
CLU_Call("CameraEnableRotate", C_HIGHSPEED, 0)
CLU_Call("CameraShowSize1024", C_HIGHSPEED, 63, 63)

CLU_Call("CameraRangeXY", C_SHIP, 40, 45)
CLU_Call("CameraRangeZ", C_SHIP, 25, 43)
CLU_Call("CameraRangeFOV", C_SHIP, 6, 26)
CLU_Call("CameraEnableRotate", C_SHIP, 1)
CLU_Call("CameraShowSize1024", C_SHIP, 81, 81)

--重新读取镜头参数配置文件
function LoadCameraConfig()

end

=================================


        不正常下的设置高空clu (非常高)
=================================
C_NORMAL    = 0  --正常模式   
C_NEAR      = 1  --偏近模式  距离比正常模式偏近
C_HIGHSPEED = 2  --高速模式  固定镜头, 不可旋转
C_SHIP      = 3  --海上模式  在船上, 距离很远

CLU_Call("CameraRangeXY", C_NORMAL, 75, 35)
CLU_Call("CameraRangeZ", C_NORMAL, 10, 50)
CLU_Call("CameraRangeFOV", C_NORMAL, 12, 35)
CLU_Call("CameraEnableRotate", C_NORMAL, 1)
CLU_Call("CameraShowSize1024", C_NORMAL, 60, 60)

CLU_Call("CameraRangeXY", C_NEAR, 50, 35)
CLU_Call("CameraRangeZ", C_NEAR, 10, 50)
CLU_Call("CameraRangeFOV", C_NEAR, 12, 35)
CLU_Call("CameraEnableRotate", C_NEAR, 1)
CLU_Call("CameraShowSize1024", C_NEAR, 60, 60)

CLU_Call("CameraRangeXY", C_HIGHSPEED, 50, 35)
CLU_Call("CameraRangeZ", C_HIGHSPEED, 10, 50)
CLU_Call("CameraRangeFOV", C_HIGHSPEED, 12, 35)
CLU_Call("CameraEnableRotate", C_HIGHSPEED, 1)
CLU_Call("CameraShowSize1024", C_HIGHSPEED, 60, 60)

CLU_Call("CameraRangeXY", C_SHIP, 50, 35)
CLU_Call("CameraRangeZ", C_SHIP, 10, 50)
CLU_Call("CameraRangeFOV", C_SHIP, 12, 35)
CLU_Call("CameraEnableRotate", C_SHIP, 1)
CLU_Call("CameraShowSize1024", C_SHIP, 60, 60)

--重新读取镜头参数配置文件
function LoadCameraConfig()

end

=================================

(正常适中的高空)

------------------------------------------------------------------------------------
C_NORMAL    = 0  --正常模式   
C_NEAR      = 1  --偏近模式  距离比正常模式偏近
C_HIGHSPEED = 2  --高速模式  固定镜头, 不可旋转
C_SHIP      = 3  --海上模式  在船上, 距离很远

CLU_Call("CameraRangeXY", C_NORMAL, 38, 39.5)
CLU_Call("CameraRangeZ", C_NORMAL, 10.5, 36)
CLU_Call("CameraRangeFOV", C_NORMAL, 15, 30)
CLU_Call("CameraEnableRotate", C_NORMAL, 1)
CLU_Call("CameraShowSize1024", C_NORMAL, 60, 60)

CLU_Call("CameraRangeXY", C_NEAR, 28, 39.5)
CLU_Call("CameraRangeZ", C_NEAR, 10.5, 36)
CLU_Call("CameraRangeFOV", C_NEAR, 17, 20)
CLU_Call("CameraEnableRotate", C_NEAR, 0)
CLU_Call("CameraShowSize1024", C_NEAR, 34, 34)

CLU_Call("CameraRangeXY", C_HIGHSPEED, 40, 45)
CLU_Call("CameraRangeZ", C_HIGHSPEED, 25, 43)
CLU_Call("CameraRangeFOV", C_HIGHSPEED, 6, 26)
CLU_Call("CameraEnableRotate", C_HIGHSPEED, 0)
CLU_Call("CameraShowSize1024", C_HIGHSPEED, 42, 42)

CLU_Call("CameraRangeXY", C_SHIP, 40, 45)
CLU_Call("CameraRangeZ", C_SHIP, 25, 43)
CLU_Call("CameraRangeFOV", C_SHIP,  6, 30)
CLU_Call("CameraEnableRotate", C_SHIP, 1)
CLU_Call("CameraShowSize1024", C_SHIP, 60, 60)

--重新读取镜头参数配置文件
function LoadCameraConfig()

end
------------------------------------------------------------------------------------



=================================




如下图所示。

修改设置高空clu控件

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|海盗社区

GMT+8, 2019-12-6 02:02 , Processed in 0.048035 second(s), 19 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表