cools 发表于 2009-1-6 19:56:33

HWC,HW1舰船配置文件.shp参数说明

转自:hw.hiigara.net
作者:CQD(致敬!)
注:做了一点小小修改,见谅。


我们以库沈的重巡洋舰作为例子:

? ?这里就是舰船的内部调用名称(就是你要在跳关脚本里写的舰船名字)

;Source Files
;=----------=

pMexData? ? ? ? ? ? ? ? ? ? ? ? ? ?kHeavyCruiser\Rl0\LOD0\kHeavyCruiser.mex
LODFile? ? ? ? ? ? ? ? ? ? ? ? ? ? kHeavyCruiser.lod
设定相对应的mex和lod的位置,不过建议不要动这两个设定

;Ship Physics
;=----------=
mass? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?10000? ?;船只的质量
momentOfInertiaX? ? ? ? ? ? ? ? ? ?10000? ?;X方向的转动惯量
momentOfInertiaY? ? ? ? ? ? ? ? ? ?10000? ?;Y方向的转动惯量
momentOfInertiaZ? ? ? ? ? ? ? ? ? ?10000? ?;Z方向的转动惯量
转动惯量的设定会影响到船只受外力时容不容易旋转,越大越不容易转
不过船本身的移动和此无关

至于转动惯量到底是什么,请参考高中物理课本
maxvelocity? ? ? ? ? ? ? ? ? ? ? ? 250? ? ?;船舰的极速
maxrot? ? ? ? ? ? ? ? ? ? ? ? ? ? ?10? ? ? ;最大旋转速度,不得大于10
thruststrength? ? ? ? ? ?39? ? ? ;向上平移的加速度
thruststrength? ? ? ? ?39? ? ? ;向下平移的加速度
thruststrength? ? ? ? 39? ? ? ;向右平移的加速度
thruststrength? ? ? ? ?39? ? ? ;向左平移的加速度
thruststrength? ? ? 39? ? ? ;前进的加速度
thruststrength? ? ? ? ?39? ? ? ;后退的加速度
rotstrength? ? ? ? ? ?0.36? ? ;左转的加速度,单位是(公尺/秒^2)
rotstrength? ? ? ? ? 0.36? ? ;右转的加速度
rotstrength? ? ? ? ? ?0.06? ? ;舰首抬高的加速度
rotstrength? ? ? ? ?0.06? ? ;舰首压低的加速度
rotstrength? ? ? ? ?0.06? ? ;左滚翻的加速度
rotstrength? ? ? ? ? 0.06? ? ;右滚翻的加速度
turnspeed? ? ? ? ? ? ? ? 0.2? ? ?;船只左右转的最大速度
turnspeed? ? ? ? ? ? ? 0.2? ? ?;舰首上下移动的最大速度
turnspeed? ? ? ? ? ? ? ?0.2? ? ?;船只滚翻的最大速度
这里的设定相当于引擎的调整.不论这艘船多重,只要maxvelocity是1000
船的极速就是1000.适当的调整还能为船只营造出厚重或轻盈的质感


;Basic Ship Stats
;=--------------=
shipclass? ? ? ? ? ? ? ? ? ? ? ? ? CLASS_HeavyCruiser
以地动来说,船舰的等级有
CLASS_Micro? ? ? ? ? CLASS_Fighter? ? ? CLASS_Corvette
CLASS_Frigate? ? ? ? CLASS_Destroyer? ? CLASS_Carrier
CLASS_HeavyCruiser? ?CLASS_Resource? ? ?CLASS_Noncombat
CLASS_MotherShip? ? ?CLASS_Component

其中的component class指的是指挥舰的各模块(舰桥,引擎,等等....)以及研究过反动波科技后会出现在超努舰腹的半球型dreadnought cannon
isCapitalShip? ? ? ? ? ? ? ? ? ? ? TRUE? ? ;是否为主力舰(TURE/FALSE)
buildCost? ? ? ? ? ? ? ? ? ? ? ? ? 3700? ? ;建造所需要的RU
buildTime? ? ? ? ? ? ? ? ? ? ? ? ? 420? ? ?;多少秒可以做好
supportUnits? ? ? ? ? ? ? ? ? ? ? ?30? ? ? ;所需的SU(支持单位)
providesSU? ? ? ? ? ? ? ? ? ? ? ? ?0? ? ? ?;建造好以后会提供的SU(支持单位)
TimeShockedByEMP? ? ? ? ? ? ? ? ? ?0.75? ? ;这个数值乘上放出EMP攻击的ACV数量,就是这艘船被EMP攻击时被瘫痪的秒数
maxhealth? ? ? ? ? ? ? ? ? ? ? ? ? 90000? ?;最大生命值
groupSize? ? ? ? ? ? ? ? ? ? ? ? ? 1? ? ? ?;size of group ships of this type tend to form <= 用途不明
repairTime? ? ? ? ? ? ? ? ? ? ? ? ?5? ? ? ?;非战斗时每隔这么多秒
repairDamage? ? ? ? ? ? ? ? ? ? ? ?320? ? ?;(接上)补多少血
repairCombatTime? ? ? ? ? ? ? ? ? ?10? ? ? ;战斗时每隔这么多秒
repairCombatDamage? ? ? ? ? ? ? ? ?100? ? ?;(接上)补多少血
以地动天惊来说,若是还没有自我修复的科技的话,单位的生命值是完全不会回复的
repairDroids? ? ? ? ? ? ? ? ? ? ? ?20? ? ? ;维修机器人的数量,除了好看以外没有其他用途
externalBuild? ? ? ? ? ? ? ? ? ? ? FALSE? ?;决定船只是否在指挥舰的外部建造(Ture/False)若是的话,松涛的指挥舰必须要有Hanger Module才能建造此艘船
fowRadius? ? ? ? ? ? ? ? ? ? ? ? ? 9000
forceFieldProtectionDistanceScale? 1.1
approxcollmodifier? ? ? ? ? ? ? ? ?1.0? ? ?; use only % of collspheresize for rough approximations
avoidcollmodifier? ? ? ? ? ? ? ? ? 0.8? ? ?; use only % of collspheresize for collision avoidance
这四个我不清楚他的用途,推测跟碰撞的判定有关
blastRadiusShockWave? ? ? ? ? ? ? ?1.0? ? ?;被打爆时震波的伤害范围,不过用的单位比游戏中的公尺大
blastRadiusDamage? ? ? ? ? ? ? ? ? 125? ? ?;在爆炸范围内的单位受到的伤害有多大
minimumZoomDistance? ? ? ? ? ? ? ? 825? ? ?;摄影机可以拉到多近的距离

;Special
;=------=
Overlay_Selection_Scalar? ? ? ? ? ?1.35? ? ;scale the tactical overlay by this amount
RKOEatMeTime? ? ? ? ? ? ? ? ? ? ? ?60? ? ? ;纳格洛克号吃掉这艘船要花多少秒
RKOGetsMissiles? ? ? ? ? ? ? ? ? ? 5? ? ? ?;number of missiles? the RKO will get while eating <= 用途不明
; Pilot View
;=---------=
pilotViewOffsetX? ? ? ? ? ? ? ? ? ?50.0
pilotViewOffsetY? ? ? ? ? ? ? ? ? ?0.0
pilotViewOffsetZ? ? ? ? ? ? ? ? ? ?800.0
设定"驾驶舱视野"时摄影机相对于船的质心的位置.
X是上下,Y是左右,Z是前后

--------------------------------------------------------------------
注:这个虽然是HWC的shp文件说明。但是HW1的也基本可以参考。
待会儿放个HW1的...

cools 发表于 2009-1-6 20:08:22

HW1舰船配置文件.shp参数说明

转自:西亚加拉宇宙载具改装中心

*.shp格式文件位于Homeworld根目录下的homeworld.big文件的r1和r2子目录中,其中r1为Kushan族,r2为Taidan族。可用Bigviewer提取,文件将自动保存在相应目录。


;Source Files 文件来源
;=----------=
pMexData HeavyCruiserRl0LOD0HeavyCruiser.mex
LODFile HeavyCruiser.lod
;Ship Physics 物理性质
;=----------=
mass 10000.0 ; ship mass 质量
momentOfInertiaX 10000.0 ; resistance to rotation 抵抗X轴旋转
momentOfInertiaY 10000.0 ; 抵抗Y轴旋转〔战斗机为1〕
momentOfInertiaZ 10000.0
avoidcollmodifier 0.8
maxvelocity 250.0 ; 最大速度〔战斗机为1000〕
maxrot 10.0 ; maximum rotation speed 最大旋转速度〔不能大于10〕
;Basic Ship Stats 舰船基本数据
;=--------------=
shipclass CLASS_HeavyCruiser ;舰船级别〔当前为重巡洋舰级,这种级别的舰船会在感应器中直接显示〕
isCapitalShip TRUE
buildCost 3700 ; resource units to build 建造消耗资源
buildTime 420 ; time in seconds to build 建造时间〔单位:秒〕
maxhealth 90000 ; hit points 撞击损伤〔生命值和撞击敌舰产生的破坏力〕
groupSize 1 ; size of group ships of this type tend to form 自动集结团体数
repairTime 5 ; every this many seconds 平时维修单位时间
repairDamage 320 ; this much damage is repaired平时每个单位时间修复的损伤
repairCombatTime 10 ; every this many seconds 战斗时维修单位时间
repairCombatDamage 100 ; this much damage is repaired战斗时单位时间修复的损伤
blastRadiusShockWave 1.0 ;舰船爆炸产生冲击波范围
blastRadiusDamage 125 ;舰船爆炸产生冲击波杀伤
;Moving Around 机动性
;=-----------=
thruststrength 39.0 ; acceleration (m/s^2) 向上加速度〔1~1000〕
thruststrength 39.0 ;向下加速度
thruststrength 39.0 ;向右加速度
thruststrength 39.0 ;向左加速度
thruststrength 39.0 ;向前加速度
thruststrength 39.0 ;向后加速度
rotstrength 0.36 ; rotational acceleration (deg/s^2) 向左偏航加速度〔0.01~1.0〕度/秒^2
rotstrength 0.36 ;向右偏航加速度
rotstrength 0.06 ;向上倾斜加速度
rotstrength 0.06 ;向下倾斜加速度
rotstrength 0.06 ;向右翻滚加速度
rotstrength 0.06 ;向左翻滚加速度
turnspeed 0.20 ; speed at which ship tries to turn (1=standard)舰船转动速度
turnspeed 0.20 ;舰船倾斜速度
turnspeed 0.20 ;舰船滚动速度

;Weapons 武器
;=------=
canTargetMultipleTargets TRUE ;是否可以同时瞄准多个目标〔TRUE为是,FALSE为否〕
rotateToRetaliate TRUE ;是否可以转向反击〔TRUE为是,FALSE为否〕
passiveRetaliateZone 7000.0 ;取消反击范围〔攻击本舰的敌舰离你的距离超过本距离后,本舰停止反击追击〕
NUMBER_OF_GUNS 10 ;武器数量,如果对以下武器设置有所增减,务必将此属性修改为对应值

下面是一个光线武器的范例

;This is the large Ion Cannon turret on TOP - the first gun is slaved to the second
GUN 0
//Desired Range = 6000
//ADD this amount: 690 to compensate for centrepoint
//ADD this amount:1058 to compensate for stopping distance
{ Type GUN_NewGimble ;武器类型
SoundType GS_LargeIonCannon ;具体型号〔本舰为LargeIonCannon,大型离子炮〕
BulletType BULLET_Beam ;子弹类型〔本舰为Beam,光线性武器〕
DamageLo 30 ;最低伤害〔每0.1秒照射造成的最低伤害〕
DamageHi 33 ;最高伤害〔每0.1秒照射造成的最高伤害〕
BulletLength 7748.0 ;子弹长度〔显示子弹的长度,设置成1,可以产生隐形弹药的效果〕
BulletRange 7748.0 ;武器射程〔子弹的射程〕
BulletSpeed 0.0 ;子弹速度,光线武器没有这个概念
BulletLifeTime 2.2 ;子弹存在时间,超过这个时间后,子弹将消失〔如,地雷在一定时间后会消失〕
BulletMass 0.0 ;子弹质量。质量越大,对舰船造成的偏转越厉害
FireTime 6.0 ;射速 (每秒多少发)
TriggerHappy 7.0
minturnangle -85.0 ; degrees 武器平台〔本舰的本武器为旋转式双联离子炮塔〕旋转角度〔X旋转角度〕
maxturnangle 85.0
mindeclination -1.0 ;武器平台最小旋转角〔Y旋转角度,“-“值为向下,“+”值为向上〕
maxdeclination 13.0 ;武器平台最大旋转角〔Y旋转角度,“-“值为向下,“+”值为向上〕
maxanglespeed 360.0 ; degrees/s 武器平台最大旋转角速度〔武器平台X轴机动性〕
maxdeclinationspeed 360.0 ;武器平台最大倾斜角速度〔武器平台Y轴机动性〕
angletracking 1.5 ;旋转轨迹
declinationtracking 1.5 ;倾斜轨迹
BarrelLength 82.0 ;平台长度
OffsetX 0.01 ;X轴后座偏转
OffsetY -19 ;Y轴后座偏转
}

下面是一个动能武器的范例

;Very Large Energy Cannon - Right side of ship, top
GUN 1
//Desired Range = 4000
//ADD this amount: 723 to compensate for centrepoint
//ADD this amount:1058 to compensate for stopping distance
{ Type GUN_NewGimble ; type of gun - either GUN_Fixed or GUN_Gimble
SoundType GS_VeryLargeEnergyCannon ;具体型号〔本舰为VeryLargeEnergyCannon,超大型炮塔,即重炮〕
DamageLo 100 ;最小伤害值
DamageHi 125 ; 最大伤害值
BulletLength 18.0 ; 子弹长度,仅仅显示
BulletRange 5781.0 ; 子弹射程
BulletSpeed 2800.0 ; 子弹速度(米/秒),这个是弹道武器子弹必须的
BulletMass 1.2
FireTime 3.7 ; 射速 (每秒多少发)
TriggerHappy 5.0
minturnangle -180.0 ; degrees
maxturnangle 15.0
mindeclination -5.42
maxdeclination 40.0
maxanglespeed 360.0 ; degrees/s
maxdeclinationspeed 360.0
angletracking 1.5
declinationtracking 1.5
BarrelLength 49
RecoilLength 14.0
}
NUMBER_OF_SALVAGE_POINTS 6 ;救援舰救援停泊点:6
NUM_NEEDED_FOR_SALVAGE 5 ;number of ships needed to capture a craft捕获本舰必要的救援舰数量
NEED_BIGR1 TRUE
NEED_BIGR2 TRUE
WILL_FIT_CARRIER FALSE ;能否进入运载舰进行改装〔TRUE为是,FALSE为否〕
; format: name,type
SalvagePoint Point1,AttachPoint
SalvagePoint Point2,AttachPoint
SalvagePoint Point3,AttachPoint
SalvagePoint Point4,AttachPoint
SalvagePoint Point5,AttachPoint
SalvagePoint Point6,AttachPoint
NUMBER_OF_NAV_LIGHTS 6;舰船信号灯:6。更改本设置,务必增减以下数据
; format is NavLight 名称, 类型, 闪烁频率 (以秒计算), 大小 (以米计算), min LOD, 文件名称
NavLight antenna1, NAVLIGHT_Default, 2, 1, 0, 8, 2, etgtexturesglow32
NavLight antenna2, NAVLIGHT_Default, 1.5, 1, 0, 7, 2, etgtexturesglow32
NavLight sideright1, NAVLIGHT_Default, 0.5, 1, 1, 9, 2, etgtexturesglow32
NavLight sideright2, NAVLIGHT_Default, 0.5, 1, 0, 9, 2, etgtexturesglow32
NavLight sideleft1, NAVLIGHT_Default, 0.5, 1, 1, 9, 2, etgtexturesglow32
NavLight sideleft2, NAVLIGHT_Default, 0.5, 1, 0, 9, 2, etgtexturesglow32
;Explosions爆炸
;=--------=
explosionType ET_CarrierExplosion ;爆炸类型〔本舰为主力舰级型,〕有ET_CorvetteExplosion,ET_ResourcerExplosion等
;GUN BINDINGS: ;武器装订,但有必要修改武器类型时,务必修改以下信息
//Very Large Energy Cannon, Top turret, left side
BindGun HeavyCruiserTurret(3) Gun4,Azimuth,Recoil,Frequency 1
//Very Large Energy Cannon, Top turret, right side
BindGun HeavyCruiserTurret(4) Gun5,Azimuth,Recoil,Frequency 1
//Very Large Energy Cannon, Left wing,
BindGun HeavyCruiserTurret(1) Gun8,Azimuth,Recoil,Frequency 1
//Very Large Energy Cannon, Right wing,
BindGun HeavyCruiserTurret(2) Gun9,Azimuth,Recoil,Frequency 1
//Very Large Energy Cannon, Bottom turret, left side
BindGun HeavyCruiserTurret(5) Gun7,Azimuth,Recoil,Frequency 1
//Very Large Energy Cannon, Bottom turret, right side
BindGun HeavyCruiserTurret(6) Gun6,Azimuth,Recoil,Frequency 1
//bottom ion cannon turret
BindGun HeavyCruiserIon(1) Gun0,Azimuth,Declination,Frequency 1
//BindGun HeavyCruiserIon(1) Gun1,Declination,Frequency 1
//BindGun HeavyCruiserIon(1) Gun0,Azimuth,Declination,Frequency 1
//BindGun HeavyCruiserIon(1) Gun0,Declination,Frequency 1
//top ion cannon turret
BindGun HeavyCruiserIon(2) Gun2,Azimuth,Declination,Frequency 1
//BindGun HeavyCruiserIon(2) Gun3,Declination,Frequency 1
//BindGun HeavyCruiserIon(2) Gun2,Azimuth,Declination,Frequency 1
//BindGun HeavyCruiserIon(2) Gun2,Declination,Frequency 1
;Engine Glow 尾焰
;=---------=
trailWidth 270.0? ;尾焰宽度
trailHeight 310.0 ;尾焰高度
trailLength 300.0 ;尾焰长度
minimumZoomDistance 825
Overlay_Selection_Scalar 1.35 ; 战术标识以这个比例缩放

germanynacui 发表于 2010-8-9 21:45:18

是家园1的吗、没弄过。试试

hanghangasdf 发表于 2010-8-9 21:48:18

回复 3# germanynacui


    是家园1与家园灾难的

怜月枫 发表于 2010-8-13 02:03:39

你们两个蛋疼么。。。整天挖坟,,。
--------------------------------------------
fowRadius? ? ? ? ? ? ? ? ? ? ? ? ? 9000
forceFieldProtectionDistanceScale? 1.1
approxcollmodifier? ? ? ? ? ? ? ? ?1.0? ? ?; use only % of collspheresize for rough approximations
avoidcollmodifier? ? ? ? ? ? ? ? ? 0.8? ? ?; use only % of collspheresize for collision avoidance
这几个代码类似于HW2里面神谕采集那里。藏在一定的地方敌人无法侦察
页: [1]
查看完整版本: HWC,HW1舰船配置文件.shp参数说明