3GO模拟飞行网|3GO Cyber Air Force

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 910|回复: 2

TO-----214

[复制链接]
发表于 2004-11-20 09:06:51 | 显示全部楼层 |阅读模式
<P>请告说我你的后座视野如何改动,你以前告说我的,改了没用的.麻烦你再告说我一下,或者干脆上传在后面</P>
<P><FONT color=#421ae6>视角问题全搞定   config/view
现在要什么视角有什么视角
此主题相关图片如下:</FONT></P>
<P><FONT color=#421ae6>配置文件view.lua中
externalmouse = true
externalmousespeedslow = 1.0
externalmousespeednormal = 5.0
externalmousespeedfast = 20.0
externalviewanglemin = 3.0
externalviewanglemax = 170.0
-- if externalviewangledefault is not set here then cockpit value is used
-- remove comment "--" in the next line and set your custom value:
--externalviewangledefault = 60.0
externalkeyboardzoomacceleration = 30.0
externalkeyboardzoomacceleratetimemax = 1.0
cameraterrainrestriction = false
explosionexpotime = 4.0
externalairobjectslockdistance = 10000.0</FONT></P>
<P><FONT color=#421ae6>-- don't change existing values, they are requested from ?+!
-- use these indices in snap and cockpitlocalpoint tables.
planeindex = {
isu_27 = 1,
isu_33 = 2,
isu_25 = 3,
isu_39 = 4,
imig_29 = 5,
imig_29k = 6,
ia_10 = 7,
if_15 = 8,
}</FONT></P>
发表于 2004-11-20 10:34:31 | 显示全部楼层
<P>再cockpit.lua中</P><P>-- Copyright (C) 2004, Eagle Dynamics.
-- Cockpit view scripts (F1, Ctrl-F1, Alt-F1)
-- Uses SnapViews.lua and Serialize.lua</P><P>CockpitMouse = false
CockpitMouseSpeedSlow = 1.0
CockpitMouseSpeedNormal = 10.0
CockpitMouseSpeedFast = 20.0
CockpitKeyboardAccelerationSlow = 5.0
CockpitKeyboardAccelerationNormal = 30.0
CockpitKeyboardAccelerationFast = 80.0
CockpitViewAngleMin = 20.0
CockpitViewAngleMax = 120.0
-- If CockpitViewAngleDefault is not set here then option value is used
-- Remove comment "--" in the next line and set your custom value:
--CockpitViewAngleDefault = 60.0
CockpitKeyboardZoomAcceleration = 300.0
DisableSnapViewsSaving = true
UseDefaultSnapViews = false
CockpitPanStepHor = 45.0
CockpitPanStepVert = 30.0
CockpitNyMove = true
CockpitHAngleOrigin = 0.0
CockpitVAngleOrigin = -9.5
CockpitHAngleAccelerateTimeMax = 0.15
CockpitVAngleAccelerateTimeMax = 0.15
CockpitZoomAccelerateTimeMax = 0.2
HAngleMaxDefault = 180.0
VAngleMinDefault = -65.0
VAngleMaxDefault = 115.0
HAngleMaxSu25 = 180.0
VAngleMinSu25 = -65.0
VAngleMaxSu25 = 115.0
HAngleMaxF15 = 180.0
VAngleMinF15 = -65.0
VAngleMaxF15 = 115.0</P><P>
CockpitLocalPoint = {}
CockpitLocalPoint[PlaneIndex.iSu_27] = {8.05, 1.35, 0.0}
CockpitLocalPoint[PlaneIndex.iSu_33] = {8.35, 1.35, 0.0}
CockpitLocalPoint[PlaneIndex.iSu_25] = {3.0, 0.276, 0.0}
CockpitLocalPoint[PlaneIndex.iSu_39] = {3.0, 0.276, 0.0}
CockpitLocalPoint[PlaneIndex.iMiG_29] = {4.76, 1.284, 0.0}
CockpitLocalPoint[PlaneIndex.iMiG_29K] = {4.9, 1.254, 0.0}
CockpitLocalPoint[PlaneIndex.iA_10] = {3.991, 1.507, 0.0}
CockpitLocalPoint[PlaneIndex.iF_15] = {6.4, 1.218, 0.0}</P><P>function GetCockpitLocalPoint(iType)
local p = CockpitLocalPoint[iType]
return p[1], p[2], p[3]
end</P><P>function NaturalHeadMoving(tang, roll, omz)
local r = roll
if r &gt; 90.0 then
  r = 180.0 - r
elseif roll &lt; -90.0 then
  r = -180.0 - r
end
local hAngle = -0.25 * r
local vAngle = math.min(math.max(0.0, 0.4 * tang + 45.0 * omz), 90.0)
return hAngle, vAngle
end</P><P>function GetSnapAngles(iPlane, iKey)
local s = Snap[iPlane][iKey]
return s.hAngle, s.vAngle, s.viewAngle
end</P><P>function SetSnapAngles(iPlane, iKey, hAngle, vAngle, viewAngle)
local s = Snap[iPlane][iKey]
s.hAngle = hAngle
s.vAngle = vAngle
s.viewAngle = viewAngle
end</P><P>function WriteSnapViews(fileName)
local file = io.open(fileName, "w")
if file then
  io.output(file)
  local t = {}
  Serialize("Snap", Snap, t)
  io.close(file)  
end
end</P><P>function ReadSnapViews(fileName)
dofile(fileName)
end
</P>
 楼主| 发表于 2004-11-20 10:47:34 | 显示全部楼层
<P>搞好了.谢谢</P>[em02]
[此贴子已经被作者于2004-11-20 10:56:25编辑过]

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

本版积分规则

QQ|小黑屋|手机版|3GO模拟飞行网|3GO Cyber Air Force ( 沪ICP备08002287号|沪ICP备14050587号 )

GMT+8, 2024-11-23 15:03

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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