你先得学会如何解包并修改参数,具体教程去百度一下...1 k0 q+ w B" n7 b2 D3 s4 @* F
以中型4联装20mm近防炮为例,它使用"zgn_20mmhulldefensegun"弹药,在x:\homeworld2\data\weapon\zgn_20mmhulldefensegun里,找到"zgn_20mmhulldefensegun.wepn"文件:
9 X7 |9 P) t y& E* E! ^' i5 N " N& S- g/ m3 ? P7 ? s, J5 q! }
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) Q, y) W0 H2 _- M( R) \
AddWeaponResult(NewWeaponType,"Hit","DamageHealth","Target",5,5,"")( i" [/ Q4 R" t! F X$ M+ L
setPenetration(NewWeaponType,15,1,{8 v$ w. I& w; d6 W: g2 a
PlanetKillerArmour = 0,
3 o$ K% n- R6 H: s- j$ g3 N! `+ H})$ Z: l, O7 B, X: n, r! X
setAccuracy(NewWeaponType,1,{1 _; T0 R3 N3 F$ ^2 Y [ R. k
Fighter = 0.15,9 C/ ~ p0 \ @# Y! m
},{
, v1 Q7 H8 R' M4 P6 W" y Corvette = 0.2,
$ p, u' u: [' A* x8 N3 e},{8 ?/ ]- M* `9 i1 m5 ]7 S
munition = 0.2,6 L+ d9 Y5 i A. s; ~. F- X! g' Y
},{ r j2 n5 H7 E; q) r; m2 O# A
Frigate = 0.8,
7 _, L9 y$ `& Z damage = 1,
& }0 p, o F% v6 r$ ` d, r1 h},{4 ^1 v- \2 C0 ?
Resource = 0.3,
$ H% X4 G' d3 }% d% C' Z( [ damage = 1,
% H& k3 u7 `2 U+ _},{
# \# L& \) K; h! V1 W, f SmallCapitalShip = 0.6,
% K4 |/ f: L3 Y" } damage = 1, B! B+ `4 L& C6 e2 V- P
},{) X- y; i6 q8 l4 H# h
BigCapitalShip = 0.6,
6 ?; N D9 N3 v* v Q damage = 1,# y Z+ x) ~8 m$ b6 M9 S- K* L
},{' g) I7 h2 h( ^/ _
Mothership = 0.6,
* B, C6 C5 S; X& ]& R damage = 1,
/ m" f8 } t) y. Z},{5 P- g0 r; r4 z( ?- s
ResourceLarge = 0.6,
3 e. F# r: w# O4 b0 ] damage = 1,
% h, [1 U( P& g# v})
4 w0 R0 _8 h7 msetAngles(NewWeaponType,00,-170,170,0,60)
* v4 M$ i3 T1 A A; c3 ~setMiscValues(NewWeaponType,1,0)
0 N1 k# Q- w& z% ^0 s4 J, D. l
6 s H0 W* P. n# w- m- W' l, V战舰什么的被20mm炮弹击中基本是挠痒,可以把红色部分那些小数改成0(就是不攻击),当然只想打导弹的话可以把战斗机和护航艇后面的小数也改成0。
6 b7 f$ h& m: q' M
e6 D. J+ |. r2 _0 X然后就是修改舰船,攻击优先级只能修改舰船本身而不是某个炮台,上面修改的只是让你攻击敌人战舰的时候,防空炮会空闲下来打打飞机导弹神马的。) t$ A+ }$ g7 {, K0 i! u9 [
x:\homeworld2\data\ship\zgn_xxxship(小型、中型、大型从属舰/战术舰,巨型战术舰是zgn_hugeship)文件夹里,找到相应的"*.ship"文件:0 y- ?, z# p. ]. v. u' ?
找到"addAbility(NewShipType,"CanAttack",1,1,0,0,0.35,1.2,"Munition, Corvette, Fighter……"这一行,那一串数字后面的英文就是攻击优先级,越前面的优先级越高,Munition就是弹药(导弹)了。' d" v* Y. R2 U: M, r
' Y/ y4 K7 T7 u# z. m' \
这样改有个弊端,就是你的战舰没有手动选择目标时,会自动从弹药的优先级开始往下搜索目标。当被导弹围攻时,如果不管它,就会出现导弹不清光,重型武器不会开火的情况。当然,多用框选多目标攻击就能解决。: z$ W* X7 y7 r) A [+ a
9 X. x9 w) K; {多找找相关的教程,适当修改小型武器(比如57mm炮弹)的射速、射程、精度(往低的调)数据,还可以做出天女散花般的弹幕效果,很壮观。 |