随便打开一个文件吧,例如 data/ship/hgn_interceptor.ship
这就是希格拉的拦截机的ship文件:
下面就来一个一个的解释
NewShipType = StartShipConfig() -------------定义文件头,以后如果要自己写ship的文件的话就一定注意不要丢掉这句
上海市最低工资标准NewShipType.displayedName = "$1502" -------------定义你在游戏中舰船显示的名字,可以直接在引号里输入汉字,注意不要把引号弄丢了,否则在载入的时候会跳出
NewShipType.sobDescription = "$1503" -------------定义舰船的说明,例如惧怕XXX克制XXX之类,注意事项同上
NewShipType.maxhealth = 30 -------------定义单艘舰船的装甲值,要注意的是,因为一个拦截机中队有五艘船,所以在游戏中的装甲值是它们的总和
ime = 0 -------------定义舰船的修复到满血的时间,0就表示不修理
NewShipType.minRegenTime = 0 -------------修复到满血的时间系数,作用未知= =
NewShipType.sideArmourDamage = 1 -------------定义侧面装甲的伤害系数
arArmourDamage = 1 -------------定义后面装甲的伤害系数
NewShipType.isTransferable = 1 -------------能否在对战中把单位送给友军
NewShipType.uEngagementRanges = 0
NewShipType.unitCapsNumber = 3
NewShipType.SquadronSize = 5 -------------每组单位的数量,也就是一个拦截机中队的数量
NewShipType.formationSpacing = 30 -------------编队之间的间隔距离
NewShipType.passiveFormation = "Broad" -------------被动模式下的阵形
NewShipType.defensiveFormation = "Delta" -------------防御模式下的阵形
NewShipType.aggressiveFormation = "Claw" -------------攻击模式下的阵形
NewShipType.mass = 10 -------------定义舰船的质量,用途未知,而且游戏对其的判定也有bug
llisionMultiplier = 3 -------------碰撞系数,与碰撞判定有关,普通情况下无用
NewShipType.thrusterMaxSpeed = 325 -------------舰船最大侧移速度
NewShipType.mainEngineMaxSpeed = 325 -------------舰船最大直行速度
ationMaxSpeed = 105 -------------转向速度,单位是 °/s结婚纪念
NewShipType.thrusterAccelTime = 2 -------------侧移加速到全速的时间
NewShipType.thrusterBrakeTime = 1 -------------侧移减速到0的时间
NewShipType.mainEngineAccelTime = 2 -------------直行加速到全速的时间
NewShipType.mainEngineBrakeTime = 1 -------------直行减速到0的时间
ationAccelTime = 0.6 -------------转向加速到全速的时间
ationBrakeTime = 0.3 -------------转向减速到0的时间
NewShipType.thrusterUsage = 0.25
NewShipType.accelerationAngle = 170 -------------加速度
NewShipType.mirrorAngle = 30
daryTurnAngle = 90
NewShipType.maxBankingAmount = 85
NewShipType.descendPitch = 0
alReachEpsilon = 5 -------------报告达到目的地时的距离,若设置的太大会出现舰船不移动的情况
NewShipType.slideMoveRange = 0
llerType = "Ship" -------------定义该单位能否被玩家控制
NewShipType.tumbleStaticX = 10
NewShipType.tumbleStaticY = 20
NewShipType.tumbleStaticZ = 5
NewShipType.tumbleDynamicX = 2
NewShipType.tumbleDynamicY = 10
NewShipType.tumbleDynamicZ = 5 -------------以上6条是该单位在静止和移动中的颠簸范围
NewShipType.tumbleSpecialDynamicX = 800
幼儿园区域布置NewShipType.tumbleSpecialDynamicY = 1000腊月的天气歇后语
动名词是什么NewShipType.tumbleSpecialDynamicZ = 700 -------------以上3条是该单位在使用特殊能力时的颠簸范围
lativeMoveFactor = 6 -------------定义相邻两艘船在移动时的距离
NewShipType.swayUpdateTime = 2
NewShipType.swayOfftRandomX = 10
NewShipType.swayOfftRandomY = 10
NewShipType.swayOfftRandomZ = 10
NewShipType.swayBobbingFactor = 0.05
NewShipType.swayRotateFactor = 0.1 ------------- 以上6条定义该单位摇摆的幅度和偏移范围
NewShipType.dustCloudDamageTime = 160 -------------定义在星尘中的生存时间,若数字太大会失效,建议不超过15000
bulaDamageTime = 30 -------------定义在辐射星云中的生存时间,同上
NewShipType.MinimalFamilyToFindPathAround = "SuperCap"
NewShipType.mirrorAboveManeuver = "ImmelMann_speedy, OneEightyDegRightTurn, OneEightyDegLeftTurn, ImmelMann_speedy, ImmelMann_speedy, ImmelMann_speedy"
NewShipType.mirrorBelowManeuver = "Split_S_speedy, OneEightyDegRightTurn, OneEightyDegLeftTurn, Split_S_speedy, Split_S_speedy, Split_S_speedy"
NewShipType.specialTurnLeftManeuver = "NinetyDegLeftTurn, None, None"
NewShipType.specialTurnRightManeuver = "NinetyDegRightTurn, None, None"刺猬皮
stManeuver1 = "RollCW"
stManeuver2 = "RollCCW"
stManeuver3 = "Loop"卡加梅
NewShipType.BuildFamily = "Fighter_Hgn" -------------建造类别
NewShipType.AttackFamily = "Fighter" -------------被攻击时当作什么单位,与武器的对不同单位的命中率有关
NewShipType.DockFamily = "Fighter" -------------停泊类别
情的组词NewShipType.AvoidanceFamily = "Strikecraft"
NewShipType.DisplayFamily = "Fighter" -------------点击舰船后显示的类别
NewShipType.AutoFormationFamily = "Fighter" -------------编队类别
NewShipType.CollisionFamily = "Small" -------------碰撞等级