你先得学会如何解包并修改参数,具体教程去百度一下...
H$ i* p" c! l+ I. i r以中型4联装20mm近防炮为例,它使用"zgn_20mmhulldefensegun"弹药,在x:\homeworld2\data\weapon\zgn_20mmhulldefensegun里,找到"zgn_20mmhulldefensegun.wepn"文件:
3 Q c# A# B9 b9 D7 N
( S- G" B9 \& A9 h. {; |! WStartWeaponConfig(NewWeaponType,"AnimatedTurret","Bullet","hdefense","Normal",2500,2200,0,0,0,0,1,1,0,0.1,0,0,1,1,60,60,0.1,"Normal",1,0,0)
3 S) J. [ |- r7 z- \1 P5 _+ oAddWeaponResult(NewWeaponType,"Hit","DamageHealth","Target",5,5,"")
$ h+ h- Q4 Z6 O/ {setPenetration(NewWeaponType,15,1,{% i3 W/ E" V' C! |/ b/ F0 u$ {3 P
PlanetKillerArmour = 0,. m( F/ x, o1 a- v
})2 U! Z% {9 I7 o) |( a6 K) K
setAccuracy(NewWeaponType,1,{. R6 d+ b! O" m8 p; c
Fighter = 0.15,9 _) ?8 H1 P( L) O! ?7 `
},{& Z% b+ _( _' B. d5 {5 J
Corvette = 0.2,
& y5 ~3 r! A; I" B. E' B% {8 t},{
/ k8 U; ^# f# u* U1 D) b- `, l$ O h munition = 0.2,2 {& V: ?# Y. x3 b
},{" O5 ^5 Z- p! N
Frigate = 0.8,3 ]6 |5 R( I! b5 N
damage = 1,1 [$ w# x/ c, a) o
},{: @# H2 h8 T8 `5 u+ d
Resource = 0.3,5 e7 i, J/ O a/ f! S3 v8 @
damage = 1,* j2 D* v4 ~4 u1 f
},{
7 k1 [: P5 k3 U5 y4 U @# m7 z1 J0 E SmallCapitalShip = 0.6,
2 s# a" c0 `- G1 z. ~( r damage = 1," u4 \* d) k" R: f/ t
},{
) X: X$ ]7 Q3 d BigCapitalShip = 0.6,
h1 j# X! E( f; s* @ damage = 1,
7 P( X% A# e' r8 ^1 V- \' P+ |1 X7 o},{" U- f- ]- p: A/ D
Mothership = 0.6,
9 v& F T V$ G) w damage = 1, ?. V9 |7 O7 z# J6 E8 Q) z
},{
/ v5 P& u8 a& f+ d: v, G ResourceLarge = 0.6,6 Y9 j- S: |4 y
damage = 1,; r: o; w H1 w: K* E' A
}), m/ G i( r) h9 C
setAngles(NewWeaponType,00,-170,170,0,60); W6 h5 E# l$ i. M- i2 b- a* q0 `
setMiscValues(NewWeaponType,1,0)! F, e7 U% d+ g0 ]
% I0 q, o3 S6 I5 F% U v1 {战舰什么的被20mm炮弹击中基本是挠痒,可以把红色部分那些小数改成0(就是不攻击),当然只想打导弹的话可以把战斗机和护航艇后面的小数也改成0。
$ a4 |6 v1 v. [
! m7 I/ y) ~: T然后就是修改舰船,攻击优先级只能修改舰船本身而不是某个炮台,上面修改的只是让你攻击敌人战舰的时候,防空炮会空闲下来打打飞机导弹神马的。) ~3 }' z2 B' j: W
x:\homeworld2\data\ship\zgn_xxxship(小型、中型、大型从属舰/战术舰,巨型战术舰是zgn_hugeship)文件夹里,找到相应的"*.ship"文件:! B; h% H3 T, C
找到"addAbility(NewShipType,"CanAttack",1,1,0,0,0.35,1.2,"Munition, Corvette, Fighter……"这一行,那一串数字后面的英文就是攻击优先级,越前面的优先级越高,Munition就是弹药(导弹)了。4 B" a, |5 q* @
, |9 `7 l. z$ t1 Z- b, x9 P这样改有个弊端,就是你的战舰没有手动选择目标时,会自动从弹药的优先级开始往下搜索目标。当被导弹围攻时,如果不管它,就会出现导弹不清光,重型武器不会开火的情况。当然,多用框选多目标攻击就能解决。
8 [1 ]( v; g0 l1 S+ A! r ( Q, A( ]3 f) R+ f' N+ M# d6 b' d3 z
多找找相关的教程,适当修改小型武器(比如57mm炮弹)的射速、射程、精度(往低的调)数据,还可以做出天女散花般的弹幕效果,很壮观。 |