游侠NETSHOW论坛

标题: 飞机一些性能修改(更新)。 [打印本页]

作者: luoyanze    时间: 2009-5-24 11:10:29     标题: 飞机一些性能修改(更新)。

刚研究了一下飞机性能的修改,自己动手测试了一下修改有效,先放出一些来。以YF23为例。
1,在DATA2.PAK里把Physics文件夹单独解压出来。在目录Data文件夹里也建一个Physics文件夹,如我的目录E:\Tom Clancy's H.A.W.X\Data\Physics。

2,把你要修改的飞机文件 如yf23.lua和yf23expert.lua(对应两种操作方式)从解压出来的Physics里复制到E:\Tom Clancy's H.A.W.X\Data\Physics下,如果你的操作方式是NORMAL就只修改yf23.lua,如果用的是expert 就改第二个文件.

用记事本打开文件,找到一下。
-- thrust values IGNORE
thrustNormalMin = 70                -- minimum thrust power (at the end of the speed interval)   IGNORE
thrustNormalMax = 100        -- maximum thrust power (at the start of the speed interval) IGNORE

thrustAfterburnerMin = 100          -- minimum afterburner power  IGNORE
thrustAfterburnerMax = 140        -- maximum afterburner power  IGNORE
把上述的四个参数(飞机加速)尽量往大改,我是给后面都加了两个零。

maxVelocity = 1600                -- max velocity    这个看是最大速度,实际上是加速度。如果改到16000就是10倍加速度。很重要
maxAltitude = 10000                 高度可以不改,没什么用

VectorialThrustForce=也200000    改大一些(这个是矢量推力,只有矢量发动机的飞机才有这个参数。AV8B好像也有这个参数

以上就是飞机 加速和极速的修改。保存进入游戏,按住加速用不了几秒飙到3600KM/H了,还有飞机失速了往下掉,不用按油门和持续拉起飞机。直接一拉就起来了
PS经测试 单人任务有效,  竞舞台 联机合作模式有效 , 多人没有试验。再奉劝一句联机最后不要用

要撤销修改 吧那个文件夹 删除了就行 ,解压麻烦些 我直接把解压的原始文件传上来吧

[ 本帖最后由 luoyanze 于 2009-5-24 12:22 编辑 ]
作者: luoyanze    时间: 2009-5-24 11:12:43

FricCoefY_AP = 1000                -- acceleration + low pitch
FricCoefY_NA_P_DRIFT = 60        -- no acceleration + pitch + drift
FricCoefY_NA_P = 450                -- no acceleration + pitch (no drift)
FricCoefY_NA_NP = 950                -- no acceleration + no pitch


FricCoefY_BR_DRIFT = 25         -- Brake + Drift           这个是按住减速 时漂移,转弯性能。
FricCoefY_DRIFT = 350                -- Drift       巡航速度下的 急转弯  越小越好
FricCoefY_A_DRIFT = 500        -- Acceleration + drift   这个是加速时的转弯性能

[ 本帖最后由 luoyanze 于 2009-5-24 12:26 编辑 ]
作者: FLZ012    时间: 2009-5-24 11:15:52

function ThrustFormula (currentThrustValue,thrustPercentage,thrusterScale,planeVelocity,planeMass,fricForce)
        local thrustForce = 0
        gplaneVelocity = planeVelocity
        if (gplaneVelocity < 1200) then
            thrustForce = (thrustPercentage - 50) * 0.02 * currentThrustValue * planeMass

        else
        if (gplaneVelocity) then
                            local thrustDiv = Lerp (0,1,(gplaneVelocity/maxVelocity_used))
--                        print (gplaneVelocity,maxVelocity_used,thrustDiv)       
                        if (thrustDiv <= 0.2) then
                                thrustDiv = 0.2
                        end
                        if (thrustDiv > 1) then
                                thrustDiv=1
                        end

                            thrustForce = (thrustPercentage - 50) * 0.02 * thrustDiv * currentThrustValue * planeMass


        end -- if gplanevelocity
--        end -- if PlayerAssistance
        end -- if gplaneVelocity
      
        
    if(thrustForce < 0) then
        thrustForce = 0
    end
        return thrustForce
end

等等等等
以上是飞机的常规推力函数 你来分析一下
还有阻力函数控制函数等等等等等等等等等等 包括动作函数都有

文件就是在物理文件夹之中 十分欢迎有爱人士还原重建其数学模型
作者: luoyanze    时间: 2009-5-24 11:19:05

这是那个function 文件里面的把。看不懂哎,召唤达人
作者: cym104    时间: 2009-5-24 14:28:56

看起来好像BASIC哦......
作者: keithlong    时间: 2009-5-24 16:24:45

不错··正需要·············································
作者: y3a8n0g8    时间: 2011-1-21 19:20:29     标题: 鹰击长空的飞行速度慢了 不知道改那个文件

鹰击长空的飞行速度慢了 不知道改那个文件  修改器用不了 怎么办 那个朋友能不能告诉我在那个文件里面或者发个文件给我 不要修改器  谢谢
作者: HKM4    时间: 2011-1-22 15:31:09

FricCoefY_AP = 1000                -- acceleration + low pitch
FricCoefY_NA_P_DRIFT = 60        -- no acceleration + pitch + drift
FricCoefY_NA_P = 450                -- no acceleration + pitch (no drift)
FricCoefY_NA_NP = 950                -- no acceleration + no pitch
请问楼主,这个又是什么?
作者: x-37b    时间: 2011-1-24 00:27:45

顶上去!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
作者: cshantian    时间: 2011-2-14 11:08:19

解压的时候发现需要密码,,,怎么回事?..
作者: ︵St〇p...﹏    时间: 2013-7-6 08:21:04

我的咋没见这个DATA2.PAK文件
作者: ︵St〇p...﹏    时间: 2013-7-6 08:23:57

]




欢迎光临 游侠NETSHOW论坛 (https://game.ali213.net/) Powered by Discuz! X2