你先得学会如何解包并修改参数,具体教程去百度一下...
! o( k6 @/ I+ v! m( w以中型4联装20mm近防炮为例,它使用"zgn_20mmhulldefensegun"弹药,在x:\homeworld2\data\weapon\zgn_20mmhulldefensegun里,找到"zgn_20mmhulldefensegun.wepn"文件:8 @0 g1 Z" S. S# L# Q
8 w; ]9 i) ~' G( `, g1 s
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)
$ _+ g+ @4 c: n j, X4 n7 V5 Y8 \ lAddWeaponResult(NewWeaponType,"Hit","DamageHealth","Target",5,5,"")
+ I& V* f7 u1 K8 LsetPenetration(NewWeaponType,15,1,{
2 F+ R7 v9 t1 V7 Q' c PlanetKillerArmour = 0,
; t; B% }( R: w3 l# L})! R6 o- L; d" o! o! ~/ o: q4 `
setAccuracy(NewWeaponType,1,{
6 j# {; @* E1 [7 b+ } Fighter = 0.15,1 C q/ l' Q" m: K( J' h9 l: F
},{
- s1 h$ c8 ~( {" u Corvette = 0.2,4 S5 P: F. l/ h n9 F1 l; g. _
},{" j0 `# L5 A, {* V/ ?6 k5 B3 u
munition = 0.2,
& F7 F+ w. ]3 [/ X' R0 R, b},{" S' M R$ N7 X: P: j# s3 E
Frigate = 0.8,' b8 _' e5 J" S
damage = 1," H2 M8 }) d0 z3 G0 U6 r
},{! H/ |" K9 Q3 L! y$ b! A) B! X9 p
Resource = 0.3,
8 V E+ H3 @# M9 n. G' k damage = 1,; j2 s7 j0 |* M3 T
},{0 O$ ]3 e. Y1 D* h% h8 b+ Y
SmallCapitalShip = 0.6,
6 n* N+ C" z2 l0 o1 D damage = 1,
, G- t2 B7 H$ j4 h},{# P$ J+ e3 \: t$ y `. S; p
BigCapitalShip = 0.6,1 R2 S( M1 B8 r
damage = 1,
: D6 n' R9 }3 y+ M b},{- I1 L* k2 `6 T! _( l7 {5 \
Mothership = 0.6,
' u( X8 j- ?+ F/ L+ f: k' { damage = 1,
2 k4 t+ B) w9 ]' E2 k& I},{- @, x/ H' t7 ?3 @
ResourceLarge = 0.6,
" p' i j+ |2 g; |0 A1 l( [; b damage = 1,/ W: n; F* N! q" B6 `
})# l" j( Z J: P' j
setAngles(NewWeaponType,00,-170,170,0,60)
" E3 y4 q5 j+ T6 ~5 t* s! isetMiscValues(NewWeaponType,1,0)! d7 |. t$ ^ s5 p; D4 H, }
; [5 q" Y) M- A+ U3 ?
战舰什么的被20mm炮弹击中基本是挠痒,可以把红色部分那些小数改成0(就是不攻击),当然只想打导弹的话可以把战斗机和护航艇后面的小数也改成0。! D, ]- M! I9 a2 v o0 b- C
' J( A& I5 v( a1 s- n) O% C1 x) i然后就是修改舰船,攻击优先级只能修改舰船本身而不是某个炮台,上面修改的只是让你攻击敌人战舰的时候,防空炮会空闲下来打打飞机导弹神马的。
' [2 \5 }9 o' i1 W" ]' T0 W$ Jx:\homeworld2\data\ship\zgn_xxxship(小型、中型、大型从属舰/战术舰,巨型战术舰是zgn_hugeship)文件夹里,找到相应的"*.ship"文件: B( y$ t- [ a
找到"addAbility(NewShipType,"CanAttack",1,1,0,0,0.35,1.2,"Munition, Corvette, Fighter……"这一行,那一串数字后面的英文就是攻击优先级,越前面的优先级越高,Munition就是弹药(导弹)了。
$ m5 ^: U+ U% j1 I' [& {4 X
+ d' {: s7 s/ g5 q0 t" {) ~这样改有个弊端,就是你的战舰没有手动选择目标时,会自动从弹药的优先级开始往下搜索目标。当被导弹围攻时,如果不管它,就会出现导弹不清光,重型武器不会开火的情况。当然,多用框选多目标攻击就能解决。, u# h" g5 b8 w
! }" c8 O2 n3 ?多找找相关的教程,适当修改小型武器(比如57mm炮弹)的射速、射程、精度(往低的调)数据,还可以做出天女散花般的弹幕效果,很壮观。 |