你先得学会如何解包并修改参数,具体教程去百度一下...4 t& r8 f+ `& _, Q
以中型4联装20mm近防炮为例,它使用"zgn_20mmhulldefensegun"弹药,在x:\homeworld2\data\weapon\zgn_20mmhulldefensegun里,找到"zgn_20mmhulldefensegun.wepn"文件:
" W- Z7 t9 H$ r- R. T% x
: a& a$ ~2 U7 G$ [. c" hStartWeaponConfig(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)8 A! T- U' G" _% ~& f U* J
AddWeaponResult(NewWeaponType,"Hit","DamageHealth","Target",5,5,"")# U/ a. K% u x' X- ]
setPenetration(NewWeaponType,15,1,{. x- V; {+ e% B" G
PlanetKillerArmour = 0,) \; h2 D F* d' v* N, B7 x! |( ^
})
. P" a2 p/ W6 |' x6 y r: ZsetAccuracy(NewWeaponType,1,{
& n( Q5 I( O7 l! w+ D Fighter = 0.15,
' t2 r3 w, p1 u( f7 j. \) V$ k},{
_# {7 ^0 d; Q0 y& A8 _6 Y9 r3 ` Corvette = 0.2,
* d3 b9 N" `2 M1 ~8 v& x},{ [4 w& y/ v6 A, ~" M; d
munition = 0.2,
. K U& d; d' v$ m: S( F" I: Z},{
6 L: Z |" k" `: w! `" N' t Frigate = 0.8,
/ I# a8 Y' _. a! D7 c damage = 1,9 }: v! B- I% H! U- _5 e
},{
; _$ t7 V1 ?" m1 N/ k# F. k Resource = 0.3,- V: M2 r2 Y' i& S$ x8 v
damage = 1, A5 N$ D% I9 V. l+ K7 d2 p
},{- }2 X! m8 s$ Y+ q) _% s$ H
SmallCapitalShip = 0.6,$ q& b. |* p4 w) c) @( N
damage = 1,
! ?$ i& \2 B' ^},{6 `$ Z+ k7 r# O4 v+ f+ _. O
BigCapitalShip = 0.6,; x. ]# r' I# H- u! l2 L, P& Z+ |
damage = 1,
1 M F$ B, O: X% f},{4 I$ S5 u) D# X$ B2 ~
Mothership = 0.6,. G$ `5 R. J6 [# r0 G3 ~$ N: b& x
damage = 1,. p: ?3 f; b' Y
},{
+ K2 t3 E! j9 r/ Q* v1 b/ U ResourceLarge = 0.6,5 B% S4 e" |$ u; i+ }
damage = 1,
0 H/ B& G2 ^5 x& l})
% {( U% t. c! q' P i6 [setAngles(NewWeaponType,00,-170,170,0,60)$ [( V) x5 `; I) V7 J4 W
setMiscValues(NewWeaponType,1,0)5 {: ]8 Z$ n' I9 L
% z, N) i8 N' B9 G
战舰什么的被20mm炮弹击中基本是挠痒,可以把红色部分那些小数改成0(就是不攻击),当然只想打导弹的话可以把战斗机和护航艇后面的小数也改成0。
, U6 {: a+ Z- E: _ 7 z% u: l; J, R3 k- [5 G" \, ~6 \) ^
然后就是修改舰船,攻击优先级只能修改舰船本身而不是某个炮台,上面修改的只是让你攻击敌人战舰的时候,防空炮会空闲下来打打飞机导弹神马的。
( Y) K+ Q6 q2 z9 zx:\homeworld2\data\ship\zgn_xxxship(小型、中型、大型从属舰/战术舰,巨型战术舰是zgn_hugeship)文件夹里,找到相应的"*.ship"文件:
7 v: z* b, o) S9 C* U找到"addAbility(NewShipType,"CanAttack",1,1,0,0,0.35,1.2,"Munition, Corvette, Fighter……"这一行,那一串数字后面的英文就是攻击优先级,越前面的优先级越高,Munition就是弹药(导弹)了。4 _+ C; x. R$ I3 j8 l# Q+ E
+ s! c/ f* f- i这样改有个弊端,就是你的战舰没有手动选择目标时,会自动从弹药的优先级开始往下搜索目标。当被导弹围攻时,如果不管它,就会出现导弹不清光,重型武器不会开火的情况。当然,多用框选多目标攻击就能解决。. y; ~8 L1 [" `, C
4 H- Q2 x% M5 Z) Q: z2 @ J3 Z
多找找相关的教程,适当修改小型武器(比如57mm炮弹)的射速、射程、精度(往低的调)数据,还可以做出天女散花般的弹幕效果,很壮观。 |