你先得学会如何解包并修改参数,具体教程去百度一下...
/ M$ f# L3 x/ D以中型4联装20mm近防炮为例,它使用"zgn_20mmhulldefensegun"弹药,在x:\homeworld2\data\weapon\zgn_20mmhulldefensegun里,找到"zgn_20mmhulldefensegun.wepn"文件:
, j! m% _1 o6 v * ]* b$ u- {1 r5 N& \4 ?8 Q7 X. i7 L
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)7 @9 y* l# n2 _; ~0 r4 w. I
AddWeaponResult(NewWeaponType,"Hit","DamageHealth","Target",5,5,"")
# M* |; O9 D& x$ G! f# GsetPenetration(NewWeaponType,15,1,{
& A1 u8 O; D( S" W9 [) P& w PlanetKillerArmour = 0,) n2 j/ d0 P: V
}). V# ^& [3 l r5 b9 k2 c
setAccuracy(NewWeaponType,1,{9 Y8 v- x( d" a- m2 S6 m
Fighter = 0.15,
c+ i# L" d) S; E3 N8 V4 ^+ z},{
: K% l6 `$ [% q( { v& m Corvette = 0.2,
# f* X6 W) X- Y8 i+ k/ W- p# o},{
/ I8 ]4 W2 P) L munition = 0.2,
% e& h. K3 O* N1 A b1 n+ w},{
- K7 O1 z% R# l3 `% f; K% b: Z Frigate = 0.8,% j8 r p! a5 J- v8 M, R
damage = 1,
, a d( [* A- r3 M- J},{
7 S% P( M1 ~2 N% P- f Resource = 0.3,
/ s" ~" Q2 a- k( @& e' k% ^ damage = 1,2 i! B) ~' e/ E+ w
},{
* Q+ g, h- X. O& h! O SmallCapitalShip = 0.6,
+ X5 d, |4 R9 g* { damage = 1,
9 j A Q% L/ c/ q0 t5 h2 x},{
% {' r8 c$ Y( K' } BigCapitalShip = 0.6,' z7 n% L* |% h6 h. t9 l( y5 T
damage = 1,( O" m9 H5 F( D: ]7 K6 ^( ]
},{# X: T$ c1 {, k- W& h' K
Mothership = 0.6,
+ K ^, S- J, F- t _' b. ? damage = 1,
/ v9 q% l* S. Y0 \# u},{
8 |6 x% T' O$ ^# D$ g1 r, a ResourceLarge = 0.6,/ T* L- e, `/ f! }
damage = 1,- G3 m! X4 x& Q
})
5 @; G `3 w, {; v: WsetAngles(NewWeaponType,00,-170,170,0,60)
) X/ W T d! m1 p% `- @0 w, |# [" jsetMiscValues(NewWeaponType,1,0)) r, ]8 h% S+ ^ ~0 k% N
! b5 d! u& H7 w7 |
战舰什么的被20mm炮弹击中基本是挠痒,可以把红色部分那些小数改成0(就是不攻击),当然只想打导弹的话可以把战斗机和护航艇后面的小数也改成0。" p' l0 E; u1 _, X, J% {$ e
( N* j! m9 s% }5 @) W6 V5 R& ]然后就是修改舰船,攻击优先级只能修改舰船本身而不是某个炮台,上面修改的只是让你攻击敌人战舰的时候,防空炮会空闲下来打打飞机导弹神马的。
+ j* e$ v& I4 G- C- }$ i3 h1 e' n& Ux:\homeworld2\data\ship\zgn_xxxship(小型、中型、大型从属舰/战术舰,巨型战术舰是zgn_hugeship)文件夹里,找到相应的"*.ship"文件:0 N7 j0 s2 _9 W8 T6 M) x- S
找到"addAbility(NewShipType,"CanAttack",1,1,0,0,0.35,1.2,"Munition, Corvette, Fighter……"这一行,那一串数字后面的英文就是攻击优先级,越前面的优先级越高,Munition就是弹药(导弹)了。
( s6 Y8 t ~8 { , w# O2 f' W( a9 W
这样改有个弊端,就是你的战舰没有手动选择目标时,会自动从弹药的优先级开始往下搜索目标。当被导弹围攻时,如果不管它,就会出现导弹不清光,重型武器不会开火的情况。当然,多用框选多目标攻击就能解决。; J& Q6 `! l4 ?% z$ |
c3 s0 P O/ N5 D- ?6 M: f# ^
多找找相关的教程,适当修改小型武器(比如57mm炮弹)的射速、射程、精度(往低的调)数据,还可以做出天女散花般的弹幕效果,很壮观。 |