你先得学会如何解包并修改参数,具体教程去百度一下...
; @/ z& j: O2 F4 a$ s. g以中型4联装20mm近防炮为例,它使用"zgn_20mmhulldefensegun"弹药,在x:\homeworld2\data\weapon\zgn_20mmhulldefensegun里,找到"zgn_20mmhulldefensegun.wepn"文件:
0 Q ]$ f! h0 Y ' n6 W; E! z9 d9 G
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)& w! l9 F( A! Y7 R% p) J
AddWeaponResult(NewWeaponType,"Hit","DamageHealth","Target",5,5,"")8 O& j: n* G# C- N
setPenetration(NewWeaponType,15,1,{- I6 m9 Z, I7 j; B; g5 B0 M
PlanetKillerArmour = 0,
6 a5 S7 c2 W9 x0 E) P" V})
' a3 O, _3 l% ?8 H8 O9 O4 XsetAccuracy(NewWeaponType,1,{- ~8 E$ \/ n6 ]8 o
Fighter = 0.15,
5 X n$ h; z% v8 s},{: Y* t' p0 `$ g
Corvette = 0.2,
9 l' X: [# {' J, q7 B+ K+ r6 \/ _ B+ Q},{
( f, V. y* P+ B. Z- ^ d2 Y munition = 0.2,
4 |; k# p( |! n4 W9 t0 r! a0 R# s},{/ W/ m) l3 z9 T) R0 M
Frigate = 0.8,
1 N; D! Y. J" {. s: D! _+ p1 v damage = 1,; r$ r- Q2 M1 u# B% E3 B3 g
},{
% P5 |9 v# `5 [, h Resource = 0.3,, `, g4 p+ N, V! b( S3 v# U _2 V
damage = 1,
- G0 g5 m. J v},{
5 m5 @( m8 O% _! I- Q9 ~ SmallCapitalShip = 0.6,1 _% `5 f0 J. {5 M# w
damage = 1,
3 U- }5 A! m' f/ Z: G5 s! N# ~},{0 a4 z/ E* d# e, h ^( G) I
BigCapitalShip = 0.6,% D( g5 i& u, \( x' r
damage = 1,
7 q! y6 i0 j2 w$ g! C7 x},{
' d2 c d0 o1 u9 |6 o: I' k- w Mothership = 0.6,
. `& l8 G( p" u( Z5 B& G$ a damage = 1,. A/ U1 b/ c5 d0 y, b0 a0 T
},{
3 Y* L, J7 N8 z4 _ ResourceLarge = 0.6,
% _+ H- a( d( T7 a$ D' R damage = 1,
" x% c( ?, v X9 r# ^})
2 r" @# U* ^2 t' @/ d, ]% v6 r6 VsetAngles(NewWeaponType,00,-170,170,0,60)
$ e0 ?8 W# ^% H3 j% NsetMiscValues(NewWeaponType,1,0)6 g2 D! A( U$ d% e
/ i7 g1 E4 b, |; ?8 A
战舰什么的被20mm炮弹击中基本是挠痒,可以把红色部分那些小数改成0(就是不攻击),当然只想打导弹的话可以把战斗机和护航艇后面的小数也改成0。4 |8 w9 Y' b$ J2 u$ {4 M
# g) N, _; P% T' O. ?. ~$ Z然后就是修改舰船,攻击优先级只能修改舰船本身而不是某个炮台,上面修改的只是让你攻击敌人战舰的时候,防空炮会空闲下来打打飞机导弹神马的。1 l) |. ]: q0 j, ^5 [
x:\homeworld2\data\ship\zgn_xxxship(小型、中型、大型从属舰/战术舰,巨型战术舰是zgn_hugeship)文件夹里,找到相应的"*.ship"文件:
4 K3 s9 e7 `! j0 G, [8 ^9 j* Z找到"addAbility(NewShipType,"CanAttack",1,1,0,0,0.35,1.2,"Munition, Corvette, Fighter……"这一行,那一串数字后面的英文就是攻击优先级,越前面的优先级越高,Munition就是弹药(导弹)了。7 |5 H( y0 t6 u' S8 m
9 l: p% a, {0 Y9 U3 d a2 T
这样改有个弊端,就是你的战舰没有手动选择目标时,会自动从弹药的优先级开始往下搜索目标。当被导弹围攻时,如果不管它,就会出现导弹不清光,重型武器不会开火的情况。当然,多用框选多目标攻击就能解决。
, }+ J1 X# V Z5 b7 v: `2 }. S) \
, S, [/ \3 J+ W% u& u多找找相关的教程,适当修改小型武器(比如57mm炮弹)的射速、射程、精度(往低的调)数据,还可以做出天女散花般的弹幕效果,很壮观。 |