泰坦帝国

 找回密码
 加入帝国

QQ登录

只需一步,快速开始

查看: 1789|回复: 5

[教程文章] [代码]missile导弹,鱼雷文件参数说明

[复制链接]
发表于 2009-8-16 19:54:50 | 显示全部楼层 |阅读模式
[代码]missile导弹,鱼雷文件参数说明

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
missile文件说明
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
作者:家园唯一高手
出处:家园官方论坛

NewShipType = StartMissileConfig()
NewShipType.displayedName=“$1558“
NewShipType.sobDescription=“$1559“
NewShipType.TOScale=1
NewShipType.TODistanceFade0=7000
NewShipType.TODistanceDisappear0=5000
NewShipType.TODistanceFade1=350
NewShipType.TODistanceDisappear1=300
NewShipType.TODistanceFade2=25000
NewShipType.TODistanceDisappear2=12000
NewShipType.TOGroupScale=1
NewShipType.TOGroupMergeSize=0
NewShipType.mouseOverMinFadeSize=0.045
NewShipType.mouseOverMaxFadeSize=0.1
NewShipType.maxhealth=40---------------------------------------装甲
NewShipType.regentime=0
NewShipType.sideArmourDamage=1---------------------------------侧面伤害系数
NewShipType.rearArmourDamage=1---------------------------------背面伤害系数
NewShipType.maxShield=0
NewShipType.shieldRechargeTime=0
NewShipType.nlips=0.0004
NewShipType.nlipsRange=75000
NewShipType.nlipsFar=0.0005
NewShipType.nlipsFarRange=100000
NewShipType.SMRepresentation=“Invisible“
NewShipType.meshRenderLimit=4000
NewShipType.dotRenderLimit=4000
NewShipType.minLOD=0.2
NewShipType.upLOD=300------------------------------------------拉近开启LOD1的距离
NewShipType.upLOD=500------------------------------------------拉近开启LOD2的距离
NewShipType.downLOD=305----------------------------------------拉远开启LOD1的距离
NewShipType.downLOD=500----------------------------------------拉远开启LOD2的距离
NewShipType.minimumZoomFactor=0.55
NewShipType.selectionPriority=30
NewShipType.weaponName=“Hgn_TorpedoLauncher“-------------------名称描述(唯一的)
NewShipType.lifeTime=20----------------------------------------发射之后的生存时间
NewShipType.launchTime=0---------------------------------------发射的时间
NewShipType.detectionDistance=1000-----------------------------失去目标后的搜索范围
NewShipType.clusterDistance=750--------------------------------距离目标多远处释放下一级导弹
NewShipType.numberSubMunitions=4-------------------------------下一级导弹的数量
NewShipType.subMunitionName=“Hgn_ClusterTorpedoB“--------------下一级导弹的名称
NewShipType.clusterAngle=65
NewShipType.proximityDetonationDist=85--------------------------爆炸范围
NewShipType.sobDieTime=0.5
NewShipType.density=1
NewShipType.thrusterMaxSpeed=250-------------------------------侧移最大速度
NewShipType.mainEngineMaxSpeed=250-----------------------------直行最大速度
NewShipType.rotationMaxSpeed=260-------------------------------转向速度,每秒多少度
NewShipType.thrusterAccelTime=3--------------------------------侧移加速到全速的时间
NewShipType.thrusterBrakeTime=3--------------------------------侧移减速到0的时间
NewShipType.mainEngineAccelTime=3------------------------------直行加速到全速的时间
NewShipType.mainEngineBrakeTime=3------------------------------直行减速到0的时间
NewShipType.rotationAccelTime=0.6------------------------------转向加速到全速的时间
NewShipType.rotationBrakeTime=0.6------------------------------转向减速到0的时间
NewShipType.thrusterUsage=0.5
NewShipType.accelerationAngle=60-------------------------------加速度
NewShipType.mirrorAngle=30
NewShipType.maxBankingAmount=85
NewShipType.descendPitch=0
NewShipType.goalReachEpsilon=5
NewShipType.controllerType=“Missile“
NewShipType.slowdownFactor=0.5
NewShipType.tumbleStaticX=0
NewShipType.tumbleStaticY=0
NewShipType.tumbleStaticZ=0
NewShipType.tumbleDynamicX=0
NewShipType.tumbleDynamicY=0
NewShipType.tumbleDynamicZ=0
NewShipType.tumbleSpeed=0
NewShipType.targetAngle=5------------------------------------------弹体摆动幅度
NewShipType.spiralsPerSecondMin=0.5
NewShipType.spiralsPerSecondMax=0.6
NewShipType.BuildFamily=“NotBuildable“
NewShipType.AttackFamily=“UnAttackable“----------------------------攻击类型
NewShipType.DockFamily=“CantDock“
NewShipType.AvoidanceFamily=“DontAvoid“
NewShipType.DisplayFamily=“Munition“
NewShipType.AutoFormationFamily=“Fighter“
NewShipType.ArmourFamily=“Unarmoured“------------------------------装甲类型
LoadHODFile(NewShipType,1);
setEngineTrail(NewShipType,0,15,“trail_ribbon.tga“,0.2,0.5,0.025,8);-----------------尾焰参数
setEngineBurn(NewShipType,15,0.5,1,15,0,0.7,0.2,25);
loadShipPatchList(NewShipType,“data:sound/sfx/ship/hiigaran/NonMilitary/Engines/“,0,“HTorpedoEng“);

注:导弹拖尾效果的长度和setEngineTrail(NewShipType,0,10,“trail_ribbon.tga“,0.2,0.5,0.025,8)里面第3个参数有关,例如上面那个10。8 雾化效果
发表于 2009-11-26 06:39:02 | 显示全部楼层
受教了!!~謝謝分享,我有問題時再提問,研究研究看看!!~[s:132]
发表于 2010-8-12 17:28:25 | 显示全部楼层
鱼雷。。。是鱼雷护卫舰放出来的那个
发表于 2011-4-24 12:37:56 | 显示全部楼层
謝謝分享!!!!!
发表于 2012-2-7 00:35:36 | 显示全部楼层
受教了~~~现在还在研究中。。。。
您需要登录后才可以回帖 登录 | 加入帝国

本版积分规则

Archiver|手机版|小黑屋|泰坦帝国  

GMT+8, 2019-1-18 08:02 , Processed in 0.037151 second(s), 9 queries , Gzip On, Redis On.

Powered by Discuz! X3.2 Designed by 999test

© 2001-2013 Comsenz Inc.

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