你先得学会如何解包并修改参数,具体教程去百度一下...
) }. E% Y5 N1 k$ {: i1 V以中型4联装20mm近防炮为例,它使用"zgn_20mmhulldefensegun"弹药,在x:\homeworld2\data\weapon\zgn_20mmhulldefensegun里,找到"zgn_20mmhulldefensegun.wepn"文件:
8 A3 ~) l" g; q 3 h s# b- a- u5 i# ^& p
StartWeaponConfig(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)* `$ S* D' H3 j! @) _: X/ @
AddWeaponResult(NewWeaponType,"Hit","DamageHealth","Target",5,5,"")0 q, o* z& O/ l/ q
setPenetration(NewWeaponType,15,1,{
- q7 }$ e) L/ x/ @! K4 L PlanetKillerArmour = 0,% h f, P' D4 b
}), G' o; F' T- u
setAccuracy(NewWeaponType,1,{0 o1 b/ v) v" d: j
Fighter = 0.15,) @$ L# O3 X) I" `+ N
},{% k6 k+ L2 o; Y0 y0 v J4 @6 P
Corvette = 0.2,, ?: z, @5 s) {5 ^9 g
},{
1 y& m0 I8 _3 b! n munition = 0.2,
0 q. D1 X- Y! ^0 C},{
5 L5 T4 [0 p7 u- G2 V+ {8 W) C Frigate = 0.8,( q0 Z7 [7 U1 V! a6 d
damage = 1,3 N* K# T4 p4 ]% |* z- R- `' \
},{; \% ]# M1 j2 Z1 f( u% v
Resource = 0.3,
2 c3 _2 O2 i% i C6 y damage = 1,
# k: N- P6 E# Y _# r},{
& f% p$ i, Z0 U1 a K1 i SmallCapitalShip = 0.6,4 A+ {$ o o' ^! v# g# F
damage = 1,8 V4 O4 O' {$ N7 @4 T% ]
},{
' k& n! e; ]) s/ i BigCapitalShip = 0.6,
. C0 k+ H9 c4 U$ f& d) ?# l6 ^2 W damage = 1,
, r' p* F! N- ~* Y! S- G},{
) X: k$ q" l' q! q) z Mothership = 0.6," d: w* |7 `* v7 a7 |3 U
damage = 1,6 J& C9 E1 k/ U3 D( J3 T$ _/ }$ J
},{
( Q# X8 m# H7 N4 P2 c2 X4 ? ResourceLarge = 0.6,) a+ u6 h0 u- `5 W2 O1 ^. W
damage = 1,# A! w) z0 Z5 J2 [; @
})
5 l! i( w# k3 u1 m1 I3 R N4 d1 CsetAngles(NewWeaponType,00,-170,170,0,60)
! ]! e L6 d+ O0 {setMiscValues(NewWeaponType,1,0)
' V. Z4 `. S. d9 B M ( Y$ _6 g! Z8 }- j
战舰什么的被20mm炮弹击中基本是挠痒,可以把红色部分那些小数改成0(就是不攻击),当然只想打导弹的话可以把战斗机和护航艇后面的小数也改成0。0 V- C; `3 q' k3 ^+ K; {9 X
& E: D+ W; q1 l7 y! ^$ g+ R: K
然后就是修改舰船,攻击优先级只能修改舰船本身而不是某个炮台,上面修改的只是让你攻击敌人战舰的时候,防空炮会空闲下来打打飞机导弹神马的。
v. E k) A9 s" Y) Z8 ?$ i) W vx:\homeworld2\data\ship\zgn_xxxship(小型、中型、大型从属舰/战术舰,巨型战术舰是zgn_hugeship)文件夹里,找到相应的"*.ship"文件:( S: x: Q7 t# p0 S, p( I
找到"addAbility(NewShipType,"CanAttack",1,1,0,0,0.35,1.2,"Munition, Corvette, Fighter……"这一行,那一串数字后面的英文就是攻击优先级,越前面的优先级越高,Munition就是弹药(导弹)了。
9 V5 R) b5 e/ c: U! W3 U0 n
: @# p; d7 r2 N这样改有个弊端,就是你的战舰没有手动选择目标时,会自动从弹药的优先级开始往下搜索目标。当被导弹围攻时,如果不管它,就会出现导弹不清光,重型武器不会开火的情况。当然,多用框选多目标攻击就能解决。& A4 E; `9 @! [0 o# Q
6 ^ d/ O6 M" r4 V, S# L5 T5 _9 C, {
多找找相关的教程,适当修改小型武器(比如57mm炮弹)的射速、射程、精度(往低的调)数据,还可以做出天女散花般的弹幕效果,很壮观。 |