你先得学会如何解包并修改参数,具体教程去百度一下...! O8 N) Y, z5 I& |2 R' J
以中型4联装20mm近防炮为例,它使用"zgn_20mmhulldefensegun"弹药,在x:\homeworld2\data\weapon\zgn_20mmhulldefensegun里,找到"zgn_20mmhulldefensegun.wepn"文件: z3 K& p8 n9 n( n6 c# U
2 v' `2 h) E J6 [, c5 FStartWeaponConfig(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)- l7 [* F4 i8 P G8 N& T: K8 i+ G
AddWeaponResult(NewWeaponType,"Hit","DamageHealth","Target",5,5,"")" Z- c4 Z j2 h& G" B& h" s
setPenetration(NewWeaponType,15,1,{) `8 k/ w b# J* t A
PlanetKillerArmour = 0,
6 @+ u6 h" k0 Z$ C})( K0 U0 F8 s8 H7 ]$ d
setAccuracy(NewWeaponType,1,{
2 N1 |5 ^( p$ g5 C Fighter = 0.15,& R ]1 D* ^) v) C* [/ l$ V
},{
- }) B4 @$ s2 A/ \) B6 I% d' N Corvette = 0.2,
/ D' j# r8 G8 }" @0 U9 i u9 p},{
0 C' e1 l8 D' x+ z munition = 0.2,
- }1 ]/ A* x9 O7 }% w. s+ Q},{/ |' x1 L8 J' f0 a
Frigate = 0.8,
0 N/ @3 i/ r. E1 ~0 K7 s$ w damage = 1,
6 ?7 u. F+ \1 i5 t$ h},{
: Z4 L5 u/ |, b, t; O' W# Q Resource = 0.3,
f" F% ]) r6 Y damage = 1,- J! |6 J, ` U$ U) x
},{' Y J" ?' k# O- h
SmallCapitalShip = 0.6,
2 H2 |+ t0 }; L; l8 G damage = 1,
' |2 v$ c! U' I" { g) n! r},{
- Z8 q9 a" T0 r& L4 S: C BigCapitalShip = 0.6,5 f8 |: a$ v0 |+ Z
damage = 1,. m" S* W5 \6 H2 D) S3 o* H0 q0 b
},{
. }; }. |# U' |) C7 x S Mothership = 0.6,
0 B; R/ X$ Q; M4 G$ O damage = 1,
1 |3 I( V3 |. f: c},{
, e' J; F" R! r4 t ResourceLarge = 0.6,
% `! q w+ k" d3 a2 g" U damage = 1,* q7 _6 K4 k& r/ t% z1 L* `
})
/ I2 ~8 S. s0 c3 d8 C* [setAngles(NewWeaponType,00,-170,170,0,60)6 E' I8 e6 P9 W
setMiscValues(NewWeaponType,1,0)
9 g: u1 [! R$ @3 G& V/ n9 R
! \7 `4 N% W4 |0 C战舰什么的被20mm炮弹击中基本是挠痒,可以把红色部分那些小数改成0(就是不攻击),当然只想打导弹的话可以把战斗机和护航艇后面的小数也改成0。
! |. V7 C7 k0 i( P
8 _5 N2 z. J/ E( W" O然后就是修改舰船,攻击优先级只能修改舰船本身而不是某个炮台,上面修改的只是让你攻击敌人战舰的时候,防空炮会空闲下来打打飞机导弹神马的。$ h- O5 o# ?2 n4 }/ C. K
x:\homeworld2\data\ship\zgn_xxxship(小型、中型、大型从属舰/战术舰,巨型战术舰是zgn_hugeship)文件夹里,找到相应的"*.ship"文件:3 Z3 G) w: V; R4 d" N
找到"addAbility(NewShipType,"CanAttack",1,1,0,0,0.35,1.2,"Munition, Corvette, Fighter……"这一行,那一串数字后面的英文就是攻击优先级,越前面的优先级越高,Munition就是弹药(导弹)了。
: j, J# u3 m$ Q1 K' r
" G" K- \ o5 W; |( H6 b" A( w. m7 R这样改有个弊端,就是你的战舰没有手动选择目标时,会自动从弹药的优先级开始往下搜索目标。当被导弹围攻时,如果不管它,就会出现导弹不清光,重型武器不会开火的情况。当然,多用框选多目标攻击就能解决。- B1 ~. d7 q7 h: G
1 X$ q& J) z6 z7 b/ D6 I+ L多找找相关的教程,适当修改小型武器(比如57mm炮弹)的射速、射程、精度(往低的调)数据,还可以做出天女散花般的弹幕效果,很壮观。 |